Flow works when testing from flow designer, but doesnt trigger when conditions are met.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2023 07:09 AM
Hello all,
I am trying to chase down why my flow wont trigger, i see this in the logs but dont know where to look:
Flow Designer: Failed to run flow trigger for 7f44a1d61b64ad50f968fc031d4bcb25 on record x_stx_jira_m2m_inc (3b7666d21b60e9107adfa71b234bcb0d): com.fasterxml.jackson.databind.exc.MismatchedInputException: No content to map due to end-of-input
at [Source: (com.snc.process_flow.engine.serialization.io.ChunkedPlanInputStream); line: 1, column: 0]
at com.fasterxml.jackson.databind.exc.MismatchedInputException.from(MismatchedInputException.java:59)
at com.fasterxml.jackson.databind.DeserializationContext.reportInputMismatch(DeserializationContext.java:1442)
at com.fasterxml.jackson.databind.ObjectReader._initForReading(ObjectReader.java:360)
at com.fasterxml.jackson.databind.ObjectReader._bindAndClose(ObjectReader.java:1704)
at com.fasterxml.jackson.databind.ObjectReader.readValue(ObjectReader.java:1228)
at com.glide.serialization.ChunkedJSONPersistor.getValue(ChunkedJSONPersistor.java:52)
at com.glide.flow_trigger.engine.RecordTriggerRunner.run(RecordTriggerRunner.java:87)
at com.glide.flow_trigger.engine.TriggerEngine.runEngine(TriggerEngine.java:98)
at com.glide.policy.AScriptEngine.process(AScriptEngine.java:34)
at com.glide.script.ScriptEngines.run(ScriptEngines.java:102)
at com.glide.script.GlideRecord.runScriptsAndEngines(GlideRecord.java:1361)
at com.glide.script.GlideRecord.postChange(GlideRecord.java:5173)
at com.glide.script.GlideRecord.postUpdate(GlideRecord.java:5141)
at com.glide.script.GlideRecord.updateWithoutResettingOperation(GlideRecord.java:4683)
at com.glide.script.GlideRecord.update(GlideRecord.java:4577)
at com.glide.script.GlideRecord.jsFunction_update(GlideRecord.java:4365)
at com.glide.script.fencing.ScopedGlideRecord.jsFunction_update(ScopedGlideRecord.java:203)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:138)
at org.mozilla.javascript.FunctionObject.doInvoke(FunctionObject.java:670)
at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:614)
at org.mozilla.javascript.ScriptRuntime.doCall(ScriptRuntime.java:2609)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1518)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:830)
at org.mozilla.javascript.InterpretedFunction.lambda$call$0(InterpretedFunction.java:152)
at com.glide.caller.gen.sys_script_include_478895db1bbd9810f968fc031d4bcb32_script.call(Unknown Source)
at com.glide.script.ScriptCaller.call(ScriptCaller.java:18)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:151)
at org.mozilla.javascript.ScriptRuntime.doCall2(ScriptRuntime.java:2678)
at org.mozilla.javascript.ScriptRuntime.doCall(ScriptRuntime.java:2617)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1518)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:830)
at org.mozilla.javascript.InterpretedFunction.lambda$call$0(InterpretedFunction.java:152)
at com.glide.caller.gen.sys_script_8c564befdb79d4103fb0cae3b99619a9_script.call(Unknown Source)
at com.glide.script.ScriptCaller.call(ScriptCaller.java:18)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:151)
at org.mozilla.javascript.ScriptRuntime.doCall2(ScriptRuntime.java:2678)
at org.mozilla.javascript.ScriptRuntime.doCall(ScriptRuntime.java:2617)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1518)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:830)
at org.mozilla.javascript.InterpretedFunction.lambda$call$0(InterpretedFunction.java:152)
at com.glide.caller.gen.sys_script_8c564befdb79d4103fb0cae3b99619a9_script.call(Unknown Source)
at com.glide.script.ScriptCaller.call(ScriptCaller.java:18)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:151)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:563)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3459)
at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:164)
at com.glide.script.ScriptEvaluator.execute(ScriptEvaluator.java:354)
at com.glide.script.ScriptEvaluator.evaluateString(ScriptEvaluator.java:177)
at com.glide.script.ScriptEvaluator.evaluateString(ScriptEvaluator.java:111)
at com.glide.script.Evaluator.evaluatePossiblePrefixedString(Evaluator.java:221)
at com.glide.job.RunScriptJob.evaluateScript(RunScriptJob.java:173)
at com.glide.job.RunScriptJob.runScript(RunScriptJob.java:128)
at com.glide.job.RunScriptJob.execute(RunScriptJob.java:91)
at com.glide.schedule.JobExecutor.lambda$executeJob$0(JobExecutor.java:129)
at com.glide.schedule.JobExecutor.executeJob(JobExecutor.java:132)
at com.glide.schedule.JobExecutor.execute(JobExecutor.java:116)
at com.glide.schedule_v2.SchedulerWorkerThread.executeJob(SchedulerWorkerThread.java:338)
at com.glide.schedule_v2.SchedulerWorkerThread.lambda$process$0(SchedulerWorkerThread.java:220)
at com.glide.worker.TransactionalWorkerThread.executeInTransaction(TransactionalWorkerThread.java:35)
at com.glide.schedule_v2.SchedulerWorkerThread.process(SchedulerWorkerThread.java:220)
at com.glide.schedule_v2.SchedulerWorkerThread.run(SchedulerWorkerThread.java:101)
: no thrown error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2023 11:25 AM
What input is it expecting? What input did you give it? What's the trigger?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2023 12:39 AM
Bump
Im facing the same issue. I have the flow contained in a scoped application containing a "main" flow that has an "application" trigger for a certain catalog item. The flow itself creates several catalog tasks on which the flow that causes pretty much the same error as OP described (although on sc_task).
I first suspected that domain separation causes the issue (the instance and flow is domain separated), but I haven't found an answer yet.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2023 05:03 AM
@orlando3 Could you please share the screenshot of your flow along with the trigger conditions. This might help to share further inputs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2023 08:56 AM
I was able to identify the root cause of the issue. It is due to an recent upgrade to Utah (my customer skipped Tokyo, so we upgraded from San Diego).
What was leading me to the solution was this article: https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0997550
Basically, the flow trigger depends on a record in the sys_json_chunk table. However this table was replaced with sys_flow_context_chunk.
(Reference: https://docs.servicenow.com/bundle/tokyo-application-development/page/administer/flow-designer/conce...)
My original problem was that flow was created/modified on a utah/tokyo instance while the target instance was still on san diego. Therefore the target instance was expecting a mapping on via sys_json_chunk, while my dev-instance was delivering a flow trigger mapping via sys_flow_context_chunk.