Skip to content

bug: expression evaluation fails with large payloads in step input transforms (QuickJS) #8073

@ramlan442

Description

@ramlan442

Describe the bug

When running a Flow with large input payloads , any step that uses expression evaluation in step inputs fail during evaluation.

This error does not occur when the input data is small — the same flow and expressions run successfully with smaller payloads. The failure only appears once the input size becomes large.

To reproduce

  • Create a new Flow.
  • Add Step 1 (TypeScript) and execute the following JavaScript code inside the step code:
Array.from({ length: 1000000 }, (_, i) => [i, i + 1, i + 2]).flat()

Run the flow and confirm Step 1 completes successfully.

  • Add Step 2 (TypeScript).
    In the step input transform expression ( evaluated directly in the step input), use the same expression:

Run the flow again.

  • Observe that Step 2 fails with: QuickJS evaluation error: Exception generated by quickjs

Expected behavior

Both Step 1 (script execution) and Step 2 (expression evaluation in step inputs) should succeed and return the same flattened array output.

Screenshots

  1. Image
  2. Image
  3. Image

Browser information

No response

Application version

CE v1.641.0

Additional Context

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions