I have a workflow triggered by incoming emails (in Outlook). the 2nd node in the flow is an edit fields, to get and set values of the email vital info, to be later stored in an external Supabase. The Edit Fields node then connects to a Crypto node.
Most executions work properly, but I got a failed execution on a “The ‘JSON Output’ in item 0 contains invalid JSON” error. Looks like quotation marks were for some reason added to the errorFlowSendDateTime data, which broke the JSON structure. I’m not sure how/why this happened, as the original input does not have these quotations.
What is the error message (if any)?
The ‘JSON Output’ in item 0 contains invalid JSON
{ “errorFlowSender”: “[email protected]”, “errorFlowSubject”: " New Assignment | Translation + Editing | 2025_18430 CI-018YTWN -20250328-154022 | HE ▸ EN-US", “errorFlowSendDateTime”: “2025-03-“28T22”:“22”:37Z”, “errorFlowN8nExecutionID”: “1083” }; Original input: { “errorFlowSender”: “[email protected]”, “errorFlowSubject”: " New Assignment | Translation + Editing | 2025_18430 CI-018YTWN -20250328-154022 | HE ▸ EN-US", “errorFlowSendDateTime”: “2025-03-28T22:22:37Z”, “errorFlowN8nExecutionID”: “1083” }
Here are the first 3 nodes of the flow:
{
“nodes”: [
{
“parameters”: {
“pollTimes”: {
“item”: [
{
“mode”: “everyX”,
“value”: 10,
“unit”: “minutes”
}
]
},
“output”: “raw”,
“filters”: {
“foldersToInclude”: [
“AQMkAGM3MGE5NzFjLWU3MmMtNDVlMS05ZmNkLTY2ADhkMzA2NzRkYWQALgAAA2PYWihIdnJHgVqawr3RzcEBAEPIwGsDQypPkhNI7ssYblEAAAIBDAAAAA==”
]
},
“options”: {}
},
“type”: “n8n-nodes-base.microsoftOutlookTrigger”,
“typeVersion”: 1,
“position”: [
-1000,
-540
],
“id”: “85eaaab8-b7fd-4142-8210-0e6b77e0d127”,
“name”: “Microsoft Outlook Trigger”,
“credentials”: {
“microsoftOutlookOAuth2Api”: {
“id”: “dlQmSJbLcbrfP1dd”,
“name”: “[email protected] - Shared Inbox”
}
}
},
{
“parameters”: {
“type”: “SHA256”,
“value”: “={{ $(‘Microsoft Outlook Trigger’).item.json.subject }}{{ $(‘Microsoft Outlook Trigger’).item.json.body.content }}”,
“dataPropertyName”: “messageHash”,
“encoding”: “base64”
},
“type”: “n8n-nodes-base.crypto”,
“typeVersion”: 1,
“position”: [
-300,
-540
],
“id”: “9cef02d5-901a-4df5-8e41-5b3cd1fa5252”,
“name”: “Crypto - Create message hash”
},
{
“parameters”: {
“mode”: “raw”,
“jsonOutput”: “={\n "errorFlowSender": "{{ $json.from.emailAddress.address }}",\n "errorFlowSubject": "{{ $json.subject }}",\n "errorFlowSendDateTime": "{{ $json.receivedDateTime }}",\n"errorFlowN8nExecutionID": "{{ $executionId }}"\n}”,
“options”: {}
},
“type”: “n8n-nodes-base.set”,
“typeVersion”: 3.4,
“position”: [
-560,
-540
],
“id”: “61305d15-9e7e-4a74-9927-dc2c69916204”,
“name”: “Edit Fields”
}
],
“connections”: {
“Microsoft Outlook Trigger”: {
“main”: [
[
{
“node”: “Edit Fields”,
“type”: “main”,
“index”: 0
}
]
]
},
“Crypto - Create message hash”: {
“main”: [
]
},
“Edit Fields”: {
“main”: [
[
{
“node”: “Crypto - Create message hash”,
“type”: “main”,
“index”: 0
}
]
]
}
},
“pinData”: {},
“meta”: {
“templateCredsSetupCompleted”: true,
“instanceId”: “98f7f9ddb2c320c93d60209523d27b02dbf8cb34c49250cd009c51434f101b28”
}
}
Information on your n8n setup
- n8n version: 1.84.1 (cloud)
- Database (default: SQLite): Supabase
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via (Docker, npm, n8n cloud, desktop app): n8n cloud
- Operating system: