Error when using AWS Textract - SerializationException

Describe the problem/error/question

I’m getting an error when using the AWS Textract node with a png uploaded via the submission form

What is the error message (if any)?

Bad request - please check your parameters
400 - "{\"__type\":\"SerializationException\"}"

Please share your workflow

{
  "nodes": [
    {
      "parameters": {
        "binaryPropertyName": "Upload_File",
        "simple": false
      },
      "type": "n8n-nodes-base.awsTextract",
      "typeVersion": 1,
      "position": [
        40,
        0
      ],
      "id": "bee12754-96af-4d8f-9b75-11c440c40369",
      "name": "AWS Textract",
      "credentials": {
        "aws": {
          "id": “test”,
          "name": “test”
        }
      }
    },
    {
      "parameters": {
        "formTitle": "Test",
        "formDescription": "Test",
        "formFields": {
          "values": [
            {
              "fieldLabel": "Upload File",
              "fieldType": "file",
              "multipleFiles": false
            }
          ]
        },
        "options": {
          "appendAttribution": false
        }
      },
      "type": "n8n-nodes-base.formTrigger",
      "typeVersion": 2.2,
      "position": [
        -220,
        0
      ],
      "id": "86961357-7ead-4c2b-9961-be5576e28bce",
      "name": "On form submission",
      "webhookId": "0979e123-dc40-45a5-bd30-efa0f8382d69"
    }
  ],
  "connections": {
    "AWS Textract": {
      "main": [
        []
      ]
    },
    "On form submission": {
      "main": [
        [
          {
            "node": "AWS Textract",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "pinData": {},
  "meta": {
    "templateCredsSetupCompleted": true,
    "instanceId": "871dea955771f6251354afdb3ac7d491c3e014fb164b094b21849c0c1b31fe3a"
  }
}

Share the output returned by the last node

Bad request - please check your parameters
400 - "{\"__type\":\"SerializationException\"}"

Information on your n8n setup

  • n8n version: 1.100.1
  • Database (default: SQLite): cloud
  • n8n EXECUTIONS_PROCESS setting (default: own, main): cloud
  • Running n8n via (Docker, npm, n8n cloud, desktop app): n8n cloud
  • Operating system: cloud

Hey @Daniel_Navarrete welcome to the community.

So you’re getting an error with the AWS Textract node when uploading a PNG file?

The error message says “Bad request, please check your parameters” with a SerializationException. This might be due to the way the file is being passed to the Textract node.

Can you double-check that the binaryPropertyName in the Textract node is set to “Upload_File”, which is the property name from the form trigger? Sometimes, a small mismatch can cause issues like this.

If that’s not the problem, try testing the workflow with a different PNG file to see if it’s specific to that file. Also, make sure your AWS credentials are set up correctly.

feel free to share more details.

Hey @Zelite thanks!

Yeah, when trying to use the node on a file uploaded. This is just a test flow, but in reality the file will be coming from another node, not manually uploaded.

I’m not seeing any binaryPropertyName field inside the Textract node, it’s only showing Input Data Field Name, where I’m putting exactly “Upload_File”. I have tested other aws services with the credentials and they are working as expected, and testing other files produces the same error. Sharing below the config of how I’m seeing it in the node.

Thanks in advance for your help

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.