Flow Designer Error: Value of field record is not a GlideRecord

AdrianHolm
Tera Guru

Hello,

I'm currently configuring a Flow Designer for onboardning new employees, and the purpose of this Flow is to look up groups which are standard groups for a specific role on sys_user_group. The Flow shall then put the new employee (user) into each groups that are, for example, tag'ed with 'Main role'.

However, in action 'For Each Item XXXX' I get the error ''Value of field record is not a GlideRecord''. Here's the context;

Operation(1a2a4aa5db3470107438de0cd3961988.ae2a4aa5db3470107438de0cd39619b5.9d7227a473210300e4fd234ffff6a72e) failed with error: com.snc.process_flow.exception.OpException: Value of field record is not a GlideRecord
at com.snc.process_flow.operation.FieldValue.getGlideRecord(FieldValue.java:145)
at com.snc.process_flow.operation.CRUDOperation.getInputValidGlideRecord(CRUDOperation.java:52)
at com.snc.process_flow.operation.RecordUpdateOperation.run(RecordUpdateOperation.java:23)
at com.snc.process_flow.engine.Operation.execute(Operation.java:165)
at com.snc.process_flow.engine.ProcessEngine.executeOps(ProcessEngine.java:498)
at com.snc.process_flow.engine.ProcessEngine.run(ProcessEngine.java:414)
at com.snc.process_flow.engine.ProcessEngine.callBlock(ProcessEngine.java:213)
at com.snc.process_flow.engine.CallBlockOperation.callBlock(CallBlockOperation.java:79)
at com.snc.process_flow.engine.CallBlockOperation.run(CallBlockOperation.java:60)
at com.snc.process_flow.engine.Operation.execute(Operation.java:165)
at com.snc.process_flow.engine.ProcessEngine.executeOps(ProcessEngine.java:498)
at com.snc.process_flow.engine.ProcessEngine.run(ProcessEngine.java:414)
at com.snc.process_flow.engine.ProcessAutomation.run(ProcessAutomation.java:66)
at com.snc.process_flow.engine.GlideProcessAutomation.runSync(GlideProcessAutomation.java:158)
at com.snc.process_flow.engine.GlideProcessAutomation.runWithDomain(GlideProcessAutomation.java:261)
at com.snc.process_flow.engine.GlideProcessAutomation.lambda$runAsUserSync$1(GlideProcessAutomation.java:239)
at com.snc.process_flow.engine.PFSessionClone.run(PFSessionClone.java:58)
at com.snc.process_flow.engine.GlidePFSession.runPlanAsUserSession(GlidePFSession.java:42)
at com.snc.process_flow.engine.GlideProcessAutomation.runAsUserSync(GlideProcessAutomation.java:237)
at com.snc.process_flow.engine.GlideProcessAutomation.messageFlow(GlideProcessAutomation.java:292)
at com.snc.process_flow.engine.GlideProcessAutomation._start(GlideProcessAutomation.java:456)
at com.snc.process_flow.engine.GlideProcessAutomation.access$500(GlideProcessAutomation.java:106)
at com.snc.process_flow.engine.GlideProcessAutomation$StartBuilder.start(GlideProcessAutomation.java:1122)
at com.glide.flow_trigger.engine.TestButtonTriggerRunner.run(TestButtonTriggerRunner.java:220)
at com.glide.flow_trigger.engine.TestButtonTriggerRunner.test(TestButtonTriggerRunner.java:224)
at com.glide.flow.providers.FlowGlideProvider.testFlow(FlowGlideProvider.java:1161)
at com.glide.flow_design.rest.FlowService.testRunFlow(FlowService.java:601)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.glide.rest.handler.impl.ServiceHandlerImpl.invokeService(ServiceHandlerImpl.java:44)
at com.glide.rest.processors.RESTAPIProcessor.process(RESTAPIProcessor.java:287)
at com.glide.processors.AProcessor.runProcessor(AProcessor.java:596)
at com.glide.processors.AProcessor.processTransaction(AProcessor.java:266)
at com.glide.processors.ProcessorRegistry.process0(ProcessorRegistry.java:181)
at com.glide.processors.ProcessorRegistry.process(ProcessorRegistry.java:169)
at com.glide.ui.GlideServletTransaction.process(GlideServletTransaction.java:44)
at com.glide.sys.Transaction.run(Transaction.java:2275)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

Any idea of what it is?

 

Best regards,
Adrian H.

1 ACCEPTED SOLUTION

@Adrian H 

As you can see you did not select any task in the task field of Add Worknotes action. So the system is searching of that and it is not able to find the record you want to update worknote on.

Solution to this is to either remove the Add Worknote action from the flow or select the correct task in the task field. 

View solution in original post

9 REPLIES 9

find_real_file.pngfind_real_file.png

@Ravindranath Let me know if you need more 🙂

@Ravindranath Oh lord, I now see where the error is. How embarrassing. 

@Adrian H 

As you can see you did not select any task in the task field of Add Worknotes action. So the system is searching of that and it is not able to find the record you want to update worknote on.

Solution to this is to either remove the Add Worknote action from the flow or select the correct task in the task field. 

Hi,

you did not add the task record in the data pill here

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader