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