Test step works, test workflow and execute active workflow fails

<!-- Hey! The fastest way to find solutions is by using the 🔎 search function at the upper right.
If your question hasn't been asked before, please follow the template below. Skip the questions that are not relevant to you. -->

Describe the problem/error/question

I have a workflow that is reading emails with an .ics file attached, then eventually importing into Nextcloud calendar.

When I test the steps individually, they work fine. When I test the entire workflow, it fails at the Nextcloud step as the previous step doesn’t output the .ics at all.

I have an extract ics node that parses the ics content, then sends it to a Set node to format it for vcalendar. When I click on Execute step in the Set node edit window, the output is precisely how it should be.

Then in the http node for importing into Nextcloud, when I click on Execute step, the output is empty and the events show up in the Nextcloud calendar.

Then when I exit to the canvas and click on Execute workflow, it fails at the Nextcloud node. The Set node does not output the exact same ics file at all.

I added a Wait node 15 seconds to test if it was slow to process the ics. This didn’t help.

What is the error message (if any)?

This is from the Nextcloud http node.

{
“errorMessage”: “Your request is invalid or could not be processed by the service [item 0]”,
“errorDescription”: “\n<d:error xmlns:d=“DAV:” xmlns:s=“http://sabredav.org/ns\\”>\n <s:exception>Sabre\DAV\Exception\UnsupportedMediaType</s:exception>\n <s:message>This resource only supports valid iCalendar 2.0 data. Parse error: End of document reached prematurely</s:message>\n</d:error>\n”,
“errorDetails”: {
“rawErrorMessage”: [
“415 - “\n<d:error xmlns:d=\“DAV:\” xmlns:s=\“http://sabredav.org/ns\\\\\\”>\n <s:exception>Sabre\\DAV\\Exception\\UnsupportedMediaType</s:exception>\n <s:message>This resource only supports valid iCalendar 2.0 data. Parse error: End of document reached prematurely</s:message>\n</d:error>\n””
],
“httpCode”: “415”
},
“n8nDetails”: {
“nodeName”: “Send to Nextcloud”,
“nodeType”: “n8n-nodes-base.httpRequest”,
“nodeVersion”: 4,
“itemIndex”: 0,
“time”: “24/09/2025, 12:46:04”,
“n8nVersion”: “1.112.5 (Self Hosted)”,
“binaryDataMode”: “default”,
“stackTrace”: [
“NodeApiError: Your request is invalid or could not be processed by the service”,
" at ExecuteContext.execute (/usr/lib/node_modules/n8n/node_modules/n8n-nodes-base/nodes/HttpRequest/V3/HttpRequestV3.node.ts:847:16)“,
" at processTicksAndRejections (node:internal/process/task_queues:105:5)”,
" at WorkflowExecute.executeNode (/usr/lib/node_modules/n8n/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1254:8)“,
" at WorkflowExecute.runNode (/usr/lib/node_modules/n8n/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1428:11)”,
" at /usr/lib/node_modules/n8n/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1761:27",
" at /usr/lib/node_modules/n8n/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:2338:11"
]
}
}

Please share your workflow

Share the output returned by the last node

This is from the previous node, that is supposed to take the ics content and output it into the correct format. Again, Execute step, the output is perfect. Test workflow is when it fails.

[
{
"icsBody": 
"\n"
},
{
"icsBody": 
"\n"
}
]
Output when Execute step is run inside of the node:

[
{
"icsBody": 
"BEGIN:VCALENDAR\r\nVERSION:2.0\r\nPRODID:-//n8n//\r\nCALSCALE:GREGORIAN\r\nBEGIN:VEVENT\r\nUID:1758739796435@n8n-test\r\nSUMMARY:notrealsubjectline\r\nDESCRIPTION: Appointment Summary :   Booking ID : BL-22373        Service Info :  Service Name : notreal\r\nLOCATION:notreal.zohobookings.com/#/customer/4155908000004023002/invoice/458155ede65f86dd2757d3db734b69a0bb63a67e574c1ae963ecb4eeeed6d2b8\r\nDTSTART:20250925T220000Z\r\nDTEND:20250925T223000Z\r\nDTSTAMP:20250923T174325Z\r\nSTATUS:CONFIRMED\r\nEND:VEVENT\r\nEND:VCALENDAR\n"
},
{
"icsBody": 
"BEGIN:VCALENDAR\r\nVERSION:2.0\r\nPRODID:-//n8n//\r\nCALSCALE:GREGORIAN\r\nBEGIN:VEVENT\r\nUID:1758739796438@n8n-test\r\nSUMMARY:notrealsubjectline\r\nDESCRIPTION: Appointment Summary :   Booking ID : BL-22378        Service Info :  Service Name : notreal\r\nLOCATION:notreal.zohobookings.com/#/customer/4155908000004023002/invoice/f639df9063acad502091425a0fe0dc741e20bdb9a5cd7c6a86feab68c5398fea\r\nDTSTART:20250930T223000Z\r\nDTEND:20250930T230000Z\r\nDTSTAMP:20250924T004950Z\r\nSTATUS:CONFIRMED\r\nEND:VEVENT\r\nEND:VCALENDAR\n"
}
]

Information on your n8n setup

  • n8n version: 1.112.5 (Self Hosted) installed in a Proxmox LXC container from community scripts

  • Database (default: SQLite): SQLite

  • n8n EXECUTIONS_PROCESS setting (default: own, main): main?

  • Running n8n via (Docker, npm, n8n cloud, desktop app): Proxmox LXC installed from Proxmox VE Helper-Scripts

  • Operating system: Debian 12

    I forgot to mention that I hard refreshed the browser, logged out and in, tried different browsers, all failed. Did multiple combinations of this to be sure.

Hey, can you pin the data on all nodes that succeed and upload the .json to G Drive to share? Assuming the data is not sensitive of course.

Also, can you let me know - in a non-test execution, are the nodes before the set node outputting what they should?

The data would be sensitive. I’m not sure how to make a fake calendar event get sent to me… I’ll see if I can manually do one and make the contents fake for it.

”Also, can you let me know - in a non-test execution, are the nodes before the set node outputting what they should?”

>> If you mean when I click on Execute Workflow, then yes,

The workflow is active. All nodes prior logs into my email account, filters and find the emails, find the attachments, convert the ics to a vcal format, then attempts to send it to Nextcloud. The Set node prior to sending to Nextcloud is what doesn’t work when I execute the workflow when not running any test step or test workflow.

I see, yes, I was asking if when triggered normally (by the trigger), the nodes before Set Fields output what they should. From your answer I understand that they do.

Alright, I will try testing like this and update you how it goes on my end.

1 Like

I was able to send a fake event, and it’s mostly not sensitive data :slight_smile:

The first two nodes I can’t pin as they are binary data (ics file). So I’m not sure how this will work if it can’t pin the data on the first two..

Can you download the binary file and share it over G Drive? Another method is to convert them with binary to base64 node and pin that, then share the workflow to G Drive due to its size.

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