Error in a subflow while calling another subflow : Error While fetching Process plan for the subflow

kulbhusanazad
Tera Contributor

hi ,

In Tokyo Release,

Getting below error in a subflow which calls another subflow , the subflow being called does exist and is in published state , but not sure why the calling subflow fails with below error.

Please help or pointer or any Workaround to resolve this ?

 

failed with error: com.snc.process_flow.exception.OpException: Error While fetching Process plan for the subflow 150b2a31970415100efbb05e6253af82
at com.snc.process_flow.engine.subflow.StartFlowOperation.getSubflowPlanById(StartFlowOperation.java:136)
at com.snc.process_flow.engine.subflow.StartFlowOperation.getSubflowPlan(StartFlowOperation.java:212)
at com.snc.process_flow.engine.subflow.StartFlowOperation.run(StartFlowOperation.java:279)
at com.snc.process_flow.engine.Operation.execute(Operation.java:208)
at com.snc.process_flow.engine.restricted_caller_access.ExecuteWithCallerAccessTracking.executeWithMetaStack(ExecuteWithCallerAccessTracking.java:21)
at com.snc.process_flow.engine.ProcessEngine.executeOps(ProcessEngine.java:560)
at com.snc.process_flow.engine.ProcessEngine.runInternal(ProcessEngine.java:466)
at com.snc.process_flow.engine.ProcessEngine.run(ProcessEngine.java:452)
at com.snc.process_flow.engine.ProcessAutomation.run(ProcessAutomation.java:79)
at com.snc.process_flow.engine.GlideProcessAutomation.runSync(GlideProcessAutomation.java:137)
at com.snc.process_flow.engine.GlideProcessAutomation.runWithDomain(GlideProcessAutomation.java:252)
at com.snc.process_flow.engine.GlideProcessAutomation.lambda$runAsUserSync$1(GlideProcessAutomation.java:219)
at com.snc.process_flow.engine.PFSessionClone.run(PFSessionClone.java:70)
at com.snc.process_flow.engine.GlidePFSession.runPlanAsUserSession(GlidePFSession.java:42)
at com.snc.process_flow.engine.GlideProcessAutomation.runAsUserSync(GlideProcessAutomation.java:217)
at com.snc.process_flow.engine.GlideProcessAutomation.messageFlow(GlideProcessAutomation.java:312)
at com.snc.process_flow.engine.GlideProcessAutomation.messageFlow(GlideProcessAutomation.java:277)

10 REPLIES 10

Mudabir
Tera Contributor

Faced this error:

Error While fetching dynamic flow/sub-flow process plan for <sys_id of the subFlow>
In this case, the issue was because of a query business rule. The subflow for which error was being thrown was part of a different scope and the query BR restricted the access to all application files part of that scope. Modified the query BR and issue got resolved.