ERROR: Cannot create a string longer than 0x1fffffe8 characters
NodeOperationError: Cannot create a string longer than 0x1fffffe8 characters
at Object.execute (C:\Users\ricardo.vicari\AppData\Roaming\npm\node_modules\n8n\node_modules\n8n-nodes-base\nodes\SpreadsheetFile\v2\SpreadsheetFileV2.node.ts:216:12)
at Workflow.runNode (C:\Users\ricardo.vicari\AppData\Roaming\npm\node_modules\n8n\node_modules\n8n-workflow\src\Workflow.ts:1307:31)
at C:\Users\ricardo.vicari\AppData\Roaming\npm\node_modules\n8n\node_modules\n8n-core\src\WorkflowExecute.ts:1048:44
It is an environment variable that can be set on all n8n versions. As you are using NPM you would need to set it before you run the npm command unless you are using pm2 inwhich case you can add it to the the ecosystem file.
Set the environment variable as you normally would, Assuming you have set the webhook_url it would be the same as that. One way you can do this would be to run export N8N_DEFAULT_BINARY_DATA_MODE=filesystem then run n8n start but this can vary depending on your operating system of choice.
I would recommend using docker though as it makes this a alot easier.
@Jon I followed the steps you said, but I’m not making the same mistake.
ERROR: Cannot create a string longer than 0x1fffffe8 characters
Details
Time
18/01/2024, 15:35:32
Item Index: 0
Stack
NodeOperationError: Cannot create a string longer than 0x1fffffe8 characters
at Object.execute (C:\Users\ricardo.vicari\AppData\Roaming\npm\node_modules\n8n\node_modules\n8n-nodes-base\nodes\SpreadsheetFile\v2\SpreadsheetFileV2.node.ts:216:12)
at Workflow.runNode (C:\Users\ricardo.vicari\AppData\Roaming\npm\node_modules\n8n\node_modules\n8n-workflow\src\Workflow.ts:1307:31)
at C:\Users\ricardo.vicari\AppData\Roaming\npm\node_modules\n8n\node_modules\n8n-core\src\WorkflowExecute.ts:1048:44
It could be that set isn’t the correct option for Windows then, I thought it was but I am not a Windows user so had to rely on your knowledge of the platform for that.
It could be that the Spreadsheet node doesn’t support the new binary data option as well, Can you provide the file you are using and the workflow so we can test?
You need to change the delimeter in the Spreadsheet node to ; and change the format to CSV, I have tried running it but as the file is 1GB I don’t have a machine handy that can actually read it.