Issue Updating currentHash in API Request: No Errors, But Data Not Updated

I’m working on a workflow in n8n where I need to synchronize a currentHash value between two entities. The flow executes without errors, but the target field does not update as expected. I’ve followed the API documentation and tried different payload structures but haven’t been able to resolve the issue.

My workflow:

The output I get:

"status": null,

"isMaintenance": false,

"projectNumber": null,

"createdAt": "2024-12-09T14:12:38.060Z",

"updatedAt": "2024-12-10T15:26:42.186Z",

"entityMetaData": {

"currentHash": "XRIDYlRYjQs/HWZaKO9e1bALaqIptIouxKAgLh0a7xM=",

"deleted": false,

"createdAt": "2024-12-09T14:12:38.017Z",

"updatedAt": "2024-12-10T15:24:02.831Z",

"synchronizedEntity": {

"ActimageGmbH": {

"id": 2,

"partnerId": "1",

"partnerTag": "ActimageGmbH",

"craftmenCompanyId": null,

"currentHash": null,

"createdAt": "2024-12-09T14:11:45.039Z",

"updatedAt": "2024-12-10T08:18:55.040Z",

"metaData": [

]

}

}

}

}

]

While it should be:

"status": null,

"isMaintenance": false,

"projectNumber": null,

"createdAt": "2024-12-09T14:12:38.060Z",

"updatedAt": "2024-12-10T15:26:42.186Z",

"entityMetaData": {

"currentHash": "XRIDYlRYjQs/HWZaKO9e1bALaqIptIouxKAgLh0a7xM=",

"deleted": false,

"createdAt": "2024-12-09T14:12:38.017Z",

"updatedAt": "2024-12-10T15:24:02.831Z",

"synchronizedEntity": {

"ActimageGmbH": {

"id": 2,

"partnerId": "1",

"partnerTag": "ActimageGmbH",

"craftmenCompanyId": null,

"currentHash": "XRIDYlRYjQs/HWZaKO9e1bALaqIptIouxKAgLh0a7xM=",

"createdAt": "2024-12-09T14:11:45.039Z",

"updatedAt": "2024-12-10T08:18:55.040Z",

"metaData": [

]

}

}

}

}

]

I verified the API documentation and tested another payload, which resulted in a “The service was not able to process your request:
metaData is not iterable” error. Here the other version of the last node:

And the error returned by this version of the node:

{
  "errorMessage": "The service was not able to process your request",
  "errorDescription": "metaData is not iterable",
  "errorDetails": {
    "rawErrorMessage": [
      "500 - \"{\\\"data\\\":null,\\\"error\\\":{\\\"status\\\":500,\\\"name\\\":\\\"InternalServerError\\\",\\\"message\\\":\\\"metaData is not iterable\\\"}}\""
    ],
    "httpCode": "500"
  },
  "n8nDetails": {
    "nodeName": "Sync Flow Hash 2",
    "nodeType": "n8n-nodes-base.httpRequest",
    "nodeVersion": 4.2,
    "itemIndex": 0,
    "time": "10/12/2024 16:57:19",
    "n8nVersion": "1.67.1 (Self Hosted)",
    "binaryDataMode": "default",
    "stackTrace": [
      "NodeApiError: The service was not able to process your request",
      "    at Object.execute (C:\\Users\\VictorSanzovo\\AppData\\Roaming\\npm\\node_modules\\n8n\\node_modules\\n8n-nodes-base\\nodes\\HttpRequest\\V3\\HttpRequestV3.node.ts:707:15)",
      "    at processTicksAndRejections (node:internal/process/task_queues:105:5)",
      "    at Workflow.runNode (C:\\Users\\VictorSanzovo\\AppData\\Roaming\\npm\\node_modules\\n8n\\node_modules\\n8n-workflow\\src\\Workflow.ts:1383:8)",
      "    at C:\\Users\\VictorSanzovo\\AppData\\Roaming\\npm\\node_modules\\n8n\\node_modules\\n8n-core\\src\\WorkflowExecute.ts:1160:27",
      "    at C:\\Users\\VictorSanzovo\\AppData\\Roaming\\npm\\node_modules\\n8n\\node_modules\\n8n-core\\src\\WorkflowExecute.ts:1880:11"
    ]
  }
}

I’ve reviewed the API documentation and confirmed that the structure of the payload matches. I’m unsure if this is an issue with the API, my payload structure, or n8n’s handling of the request. Could someone help me troubleshoot this or suggest other debugging steps?

  • n8n version: 1.67.1
  • Database: PostgreSQL
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via npm, n8n
  • Operating system: Kafka

It looks like your topic is missing some important information. Could you provide the following if applicable.

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

Welcome to the community @Victor_Sanzovo !

Tip for sharing information

Pasting your n8n workflow


Ensure to copy your n8n workflow and paste it in the code block, that is in between the pairs of triple backticks, which also could be achieved by clicking </> (preformatted text) in the editor and pasting in your workflow.

```
<your workflow>
```

That implies to any JSON output you would like to share with us.

Make sure that you have removed any sensitive information from your workflow and include dummy or pinned data with it!


It sounds like the remote service does not undestand the payload your send implying you did not configure it correctly.

Two things I noted

  • You might not need to stringify the JSON as it would be done automatically
  • I do not see any metadata in your request / response and the error says “metaData is not iterable”, which is a reasonable statement as you do not have it, there is no iterable value for metaData.
2 Likes

Thanks for your reply!

Adding the metaData indeed solved my problem, thanks! I didnt realized it was needed.
For the stringify, I already tried to remove the JSON.stringify but got an error “JSON parameter needs to be valid JSON”. Since its working while I use it, I rather keep it.

Thanks again for your help.

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