Node output is truncated

Describe the problem/error/question

What is the error message (if any)?

node output is truncated in code node. updating n8n to the latest stable version is not helping. any idea why?

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

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

Hey @Tamir_Atzil,
Welcome to the community,

on n8n Cloud this is usually just a UI/display limit, not your Code node actually “losing” data. When the JSON gets big (large objects/arrays or lots of nested fields), the editor will truncate what it renders so the UI doesn’t freeze, even on the latest version. The full payload is typically still in the execution data,

Do this:

  1. Don’t view/store the whole thing via the node output panel
  2. return a small summary from the Code node (counts/ids)
  3. write the full object somewhere else (Postgres/Data Store/S3) or convert it to a file (JSON/PDF) and store/download it.
1 Like

Hi @Tamir_Atzil Welcome to the community!
I actually did not fully understood your issue please provide more information regarding what exactly is your problem, also with the image attached i think what you are returning in the code node is shown as is in the output so what exact issue are you facing in this? Currently it returns 2 arrays which are results and errors and one variable which is num_of_errors, what exactly is the issue here?

1 Like

@Tamir_Atzil you check if data is actually there

Add a Code node after your truncated output:

// Check actual data size
const itemCount = $input.all().length;
const firstItem = $input.first();

return [{
  json: {
    totalItems: itemCount,
    firstItemKeys: Object.keys(firstItem.json),
    dataSize: JSON.stringify($input.all()).length
  }
}];

This will tell you if the data exists but is just not displayed.

Hi, thank you for replying :slight_smile:
output JSON is short as you see. all data is there. my issue the right side of screen (in gray) hiding the OUTPUT part (for example, i cant access pin button)

Hi, thank you for replying :slight_smile:
my issue the right side of screen (in gray) hiding the OUTPUT part (for example, i cant access the pin button)

1 Like

@Tamir_Atzil It is actually a bit hard to see what is the issue like you literally cannot access the pin button? Just blur the sensitive data and let us have the look at your exact problem.

Hi Anshul
I have no sensitive data in here. this is an image of my full screen. the issue is with the UI. to your question - no. I now see that I can access the ‘pin’ button if i scroll the output section all the way right. but I still have an issue - the screen is smaller because of this gray area in the right, and I cannot change the dimensions of INPUT / OUTPUT / CODE boxes - they are stuck in this state that you see in the image.
let me know if there is other way besides print screen to let you look at the exact problem.
Thanks.

1 Like

Hi @Tamir_Atzil That was unexpected my bad! Just restart your n8n instance.

Hi
Restarting my workspace did not help.
issue happens only in code node.

1 Like

@Tamir_Atzil have you tried changing the version to the closest stable version? Just switch to latest stable