Process plan JSON isn't serialized properly due to infinite recursion (gets truncated) and consequently there's an unexpected end-of-input when it's deserializedDescriptionSetting a script of output type String to something other than a string can cause infinite recursion in serialization (we've seen this with XMLDocument2 and Javascript dates). Steps to Reproduce Install attached update set sys_remote_update_set_74efc788db3d1010542ae8cd139619f1.xmlRun RecursiveSerializationFlow using the Test buttondemonightlyorlando: the flow gets stuck and doesn't indicate there's an error even though it's there in the logsdemonightlyus: flow does error out and error below is captured in the flow logs, but it would be more helpful if it actually told us where the error occurrederror updating the flow context: com.snc.process_flow.exception.ProcessAutomationException: error updating the flow context: com.snc.process_flow.engine.PFContext.updateContext(PFContext.java:434)com.snc.process_flow.engine.PFContext.savePlan(PFContext.java:200)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)...Caused by: com.fasterxml.jackson.databind.JsonMappingException: Infinite recursion (StackOverflowError) (through reference chain: org.mozilla.javascript.IdFunctionObject["prototype"]->org.mozilla.javascript.BaseFunction["parentScope"]->com.glide.script.RhinoScope["SNString"]->org.mozilla.javascript.IdFunctionObject["prototype"]->org.mozilla.javascript.BaseFunction["parentScope"]->com.glide.script.RhinoScope["SNString"]->org.mozilla.javascript.IdFunctionObject["prototype"]->org.mozilla.javascript.BaseFunction["parentScope"]->com.glide.script.RhinoScope["SNString"]->org.mozilla.javascript.IdFunctionObject["prototype"]->org.mozilla.javascript.BaseFunction["parentScope"]->com.glide.script.RhinoScope["SNString"]->org.mozilla.javascript.IdFunctionObject["prototype"]->org.mozilla.javascript.BaseFunction["parentScope"]->com.glide.script.RhinoScope["SNString"]->org.mozilla.javascript.IdFunctionObject["prototype"]->org.mozilla.javascript.BaseFunction["parentScope"]->com.glide.script.RhinoScope["SNString"]->org.mozilla.javascript.IdFunctionObject["prototype"]->org.mozilla.javascript.BaseFunction["parentScope"]->com.glide.script.RhinoScope["SNString"]->org.mozilla.javascript.IdFunctionObject["prototype"]->org.mozilla.javascript.BaseFunction["parentScope"]->com.glide.script.RhinoScope["SNString"]->org.mozilla.javascript.IdFunctionObject["prototype"]->org.mozilla.javascript.BaseFunction["parentScope"]->com.glide.script.RhinoScope["SNString"]->org.mozilla.javascript.IdFunctionObject["prototype"]->org.mozilla.javascript.BaseFunction["parentScope"]->com.glide.script.RhinoScope["SNString"]->org.mozilla.javascript.IdFunctionObject["prototype"]->org.mozilla.javascript.BaseFunction["parentScope"]->com.glide.script.RhinoScope["SNString"]->org.mozilla.javascript.IdFunctionObject["prototype"]->org.mozilla.javascript.BaseFunction["parentScope"]->com.glide.script.RhinoScope["SNString"]->org.mozilla.javascript.IdFunctionObject["prototype"]->org.mozilla.javascript.BaseFunction["parentScope"]->com.glide.script.RhinoScope["SNString"]->org.mozilla.javascript.IdFunctionObject["prototype"]->org.mozilla.javascript.BaseFunction["parentScope"]->com.glide.script.RhinoScope["SNString"]-WorkaroundForce the output to a string by changing: outputs.output1 = new Date(); to: outputs.output1 = new Date().toString();Related Problem: PRB1412686