Flow error: Could not retrieve snapshot for the test

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-04-2021 08:16 AM
Hi guys,
I don't usually ask stuff here and rather try to figure them out by myself without bothering anyone else, but this time I can't seem to find a solution.
I've been working on a Flow for a while. A few days ago I added new items (a custom action that sends an specific notification and some logs) and it worked fine. Today I needed to add one more item, and before that I decided to test the flow but I'm getting an Internal Server error: Could not retrieve snapshot for the test.
I've been checking the changes performed and can't find the issue here. I even removed the actions I added last time but the issue persisted.
- Labels:
-
flow designer

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-04-2021 09:01 AM
Oh, I didn't know about that.
I got this log. There doesn't seem to be items there that indicate an error ocurring through any of the actionsthere, but rather the instance didn't find a Snapshot before beggining to process the content of it.
Flow Designer: Could not retrieve snapshot for test com.glide.flow_trigger.engine.FlowSnapshotPlanRetriever.retrieve(FlowSnapshotPlanRetriever.java:36) com.snc.process_flow.engine.serialization.PlanProxy.plan(PlanProxy.java:47) com.snc.process_flow.engine.PFContext.init(PFContext.java:402) com.snc.process_flow.engine.GlideProcessAutomation._init(GlideProcessAutomation.java:488) com.snc.process_flow.engine.GlideProcessAutomation.runWithDomain(GlideProcessAutomation.java:259) com.snc.process_flow.engine.GlideProcessAutomation.lambda$runAsUserSync$1(GlideProcessAutomation.java:239) com.snc.process_flow.engine.PFSessionClone.run(PFSessionClone.java:58) com.snc.process_flow.engine.GlidePFSession.runPlanAsUserSession(GlidePFSession.java:42) com.snc.process_flow.engine.GlideProcessAutomation.runAsUserSync(GlideProcessAutomation.java:237) com.snc.process_flow.engine.GlideProcessAutomation.messageFlow(GlideProcessAutomation.java:292) com.snc.process_flow.engine.GlideProcessAutomation._start(GlideProcessAutomation.java:456) com.snc.process_flow.engine.GlideProcessAutomation.access$500(GlideProcessAutomation.java:106) com.snc.process_flow.engine.GlideProcessAutomation$StartBuilder.start(GlideProcessAutomation.java:1122) com.glide.flow_trigger.engine.TestButtonTriggerRunner.run(TestButtonTriggerRunner.java:220) com.glide.flow_trigger.engine.TestButtonTriggerRunner.test(TestButtonTriggerRunner.java:224) com.glide.flow.providers.FlowGlideProvider.testFlow(FlowGlideProvider.java:1161) com.glide.flow_design.rest.FlowService.testRunFlow(FlowService.java:601) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.lang.reflect.Method.invoke(Method.java:498) com.glide.rest.handler.impl.ServiceHandlerImpl.invokeService(ServiceHandlerImpl.java:44) com.glide.rest.processors.RESTAPIProcessor.process(RESTAPIProcessor.java:287) com.glide.processors.AProcessor.runProcessor(AProcessor.java:596) com.glide.processors.AProcessor.processTransaction(AProcessor.java:266) com.glide.processors.ProcessorRegistry.process0(ProcessorRegistry.java:181) com.glide.processors.ProcessorRegistry.process(ProcessorRegistry.java:169) com.glide.ui.GlideServletTransaction.process(GlideServletTransaction.java:44) com.glide.sys.Transaction.run(Transaction.java:2275) java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) java.lang.Thread.run(Thread.java:748) : no thrown error |

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-04-2021 09:10 AM
Hi Ivar,
Did you followed the resolution steps mentioned? Your log seems different than we expect as per this post.
- Set the Flow Designer logs to Debug via the Flow Properties (specify log level field)
- Repeat the test and look for the same error (Could not retrieve snapshot for test). This is the end
- Look for the start: DEBUG: Flow Designer: Compiling flow <flow name>
- Remove everything else
- To make it more readable, you need to remove any references you don't need. References to Business Rules, activity on different threads, different users etc.
- What you should end up with is a around 30 lines of log lines which should explain what is happening. Read through it referencing the Flow in Flow Designer
Thank you
Prasad

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-04-2021 09:13 AM
Yes, I followed them exactly as expained in the article. I think it looks different since the logs in the article expect SN to at least process the flow (thus debugging the different actions), whereas in my case the processing is not starting due to the platform not finding a snapshot.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-04-2021 11:26 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-04-2021 02:58 PM
Indeed, all snapshots related to that flow in that table are blank, they contain nothing on the description field.