Assigning Javascript Error (e.g. NativeError) to action output causes serialization error and the flow to hangDescriptionA serialization error occurs when a script output cannot be serialized. String outputs should be treated as strings.Steps to Reproduce Install attached update set sys_remote_update_set_a02cee5bdbb91010542ae8cd13961901.xmlExecute CSTASK081198 Flow using the Test buttonYou'll see the execution is stuck at the Timer and the flow never completeserror updating the flow context: com.snc.process_flow.exception.ProcessAutomationException: error updating the flow context: com.snc.process_flow.engine.PFContext.updateContext(PFContext.java:464)com.snc.process_flow.engine.PFContext.savePlan(PFContext.java:196)com.snc.process_flow.engine.GlideProcessAutomation.persistPlan(GlideProcessAutomation.java:669)com.snc.process_flow.engine.ProcessAutomation.run(ProcessAutomation.java:71)com.snc.process_flow.engine.GlideProcessAutomation.runSync(GlideProcessAutomation.java:131)com.snc.process_flow.engine.GlideProcessAutomation.lambda$runAsUserSync$1(GlideProcessAutomation.java:219)com.snc.process_flow.engine.GlidePFSession.runPlanAsUserSession(GlidePFSession.java:26)com.snc.process_flow.engine.GlideProcessAutomation.runAsUserSync(GlideProcessAutomation.java:211)com.snc.process_flow.engine.GlideProcessAutomation.messageFlow(GlideProcessAutomation.java:248)com.snc.process_flow.engine.GlideProcessAutomation._start(GlideProcessAutomation.java:410)com.snc.process_flow.engine.GlideProcessAutomation.access$400(GlideProcessAutomation.java:84)com.snc.process_flow.engine.GlideProcessAutomation$StartBuilder.start(GlideProcessAutomation.java:1015)com.glide.flow_trigger.engine.TestButtonTriggerRunner.run(TestButtonTriggerRunner.java:216)com.glide.flow_trigger.engine.TestButtonTriggerRunner.test(TestButtonTriggerRunner.java:220)com.glide.flow.providers.FlowGlideProvider.testFlow(FlowGlideProvider.java:1014)com.glide.flow_design.rest.FlowService.testRunFlow(FlowService.java:573)WorkaroundEnsure that the script assigns string type script outputs to strings. For example: (function execute(inputs, outputs) {try { throw Error("something bad");} catch(e) { outputs.output_str = e;}})(inputs, outputs); The line: outputs.output_str = e; Should be: outputs.output_str = e.message; In other cases, you may need to do toString() or append an empty string (string + '').Related Problem: PRB1413974