Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Issue with Data Stream in Flow Designer (Could not retrieve snapshot for test)

Tomko
Tera Expert

I have built and successfully executed a REST Action that pulls server data from an external application (CloudCheckr).

While I could build an action to parse the JSON that is being returned, it seems like a better approach would be to use a Data Stream.

I've built a Data Stream with no preprocessing, no paging, and the same REST message and configuration as the standalone REST action mentioned previously, but when I run this Action in a flow that doesn't do anything else, I am immediately getting:

There was an error executing the flow:Internal Server Error

My logs show the stack trace below.

I'm not even sure where to start troubleshooting this. 

Could not retrieve snapshot for test
com.glide.flow_trigger.engine.FlowSnapshotPlanRetriever.retrieve(FlowSnapshotPlanRetriever.java:33)
com.snc.process_flow.engine.serialization.PlanProxy.plan(PlanProxy.java:43)
com.snc.process_flow.engine.PFContext.init(PFContext.java:275)
com.snc.process_flow.engine.GlideProcessAutomation._init(GlideProcessAutomation.java:400)
com.snc.process_flow.engine.GlideProcessAutomation.lambda$runAsUserSync$1(GlideProcessAutomation.java:210)
com.snc.process_flow.engine.GlidePFSession.runPlanAsUserSession(GlidePFSession.java:40)
com.snc.process_flow.engine.GlideProcessAutomation.runAsUserSync(GlideProcessAutomation.java:205)
com.snc.process_flow.engine.GlideProcessAutomation.messageFlow(GlideProcessAutomation.java:242)
com.snc.process_flow.engine.GlideProcessAutomation._start(GlideProcessAutomation.java:364)
com.snc.process_flow.engine.GlideProcessAutomation.access$400(GlideProcessAutomation.java:82)
com.snc.process_flow.engine.GlideProcessAutomation$StartBuilder.start(GlideProcessAutomation.java:898)
com.glide.flow_trigger.engine.TestButtonTriggerRunner.run(TestButtonTriggerRunner.java:168)
com.glide.flow_trigger.engine.TestButtonTriggerRunner.test(TestButtonTriggerRunner.java:172)
com.glide.flow.providers.FlowGlideProvider.testFlow(FlowGlideProvider.java:992)
com.glide.flow_design.rest.FlowService.testRunFlow(FlowService.java:573)
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:290)
com.glide.processors.AProcessor.runProcessor(AProcessor.java:553)
com.glide.processors.AProcessor.processTransaction(AProcessor.java:240)
com.glide.processors.ProcessorRegistry.process0(ProcessorRegistry.java:177)
com.glide.processors.ProcessorRegistry.process(ProcessorRegistry.java:166)
com.glide.ui.GlideServletTransaction.process(GlideServletTransaction.java:31)
com.glide.sys.Transaction.run(Transaction.java:2192)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
java.lang.Thread.run(Thread.java:748)
3 REPLIES 3

Ashutosh Munot1
Kilo Patron
Kilo Patron

Hi,

can you check this:

https://hi.service-now.com/kb_view.do?sysparm_article=KB0854481

 

Thanks,
Ashutosh

Tomko
Tera Expert

Thanks Ashutosh - 

That gives me someplace to start.

Nice