Script node timing out on large text inputs in architect flow

stuck on a weird issue with the script node in our architect flow. we are trying to inject a large block of text from a custom attribute into the script node for dynamic variable resolution. the flow fails silently after about 30 seconds. no error code in the logs just a timeout.

we have checked the queue performance dashboard and the handle times are normal for other flows. this is only happening when the text exceeds 2000 characters. is there a limit on the payload size for the script node? we are using the standard gen cloud platform version.

the error seems to be related to the dynamic variable injection. if we reduce the text size it works fine. we need to know if this is a known limitation or if we are doing something wrong. please advise on the best way to handle large text inputs in architect flows without hitting this timeout. thanks.

Have you tried splitting the large text payload into smaller chunks before passing it to the script node? The default timeout for inline scripting is quite aggressive, and processing strings over 2000 characters can exceed the execution window, especially if complex regex or string manipulation is involved.

When managing high-volume flows, I often see this silent timeout occur when the payload size triggers a backend serialization delay. It is not necessarily a hard character limit, but rather a processing time limit. Breaking the string into segments and processing them sequentially, or using a Webhook to handle the heavy lifting externally, usually resolves the issue. Check the script execution logs in the Admin portal; they sometimes show a truncated payload if the input was too large to serialize within the timeout window. This approach also helps isolate whether the issue is the input size or the logic complexity within the node.