- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-21-2021 10:17 PM
Hi @Ankur Bawiskar,
I am getting this error "Error: Cannot read property "variables" from null,Detail: Cannot read property "variables" from null" in flow designer while using flow designer for creating new user.
code:
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-21-2021 11:33 PM
Hi,
Since yours is a custom action refer this link which would give you an understanding of input, output etc
Custom Action in ServiceNow Flow Designer
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-21-2021 10:44 PM
Hi Ankur,
1. Requested Item
2. Variable name employee_name.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-21-2021 10:49 PM
Hi,
what type of variable is employee_name?
Did you print the value in logs
var nameProvided = fd_data.trigger.request_item.variables.employee_name;
gs.info('nameProvided' + nameProvided);
var names = nameProvided.toString().split(' ');Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-21-2021 10:58 PM
Hi,
String
Error:
Flow Designer: Operation(Copy of Request New Hire Setup - AUTOMATED./start) failed with error: java.lang.IllegalArgumentException: variables.employee_name is not a valid dot-walk for record sc_req_item:0006a4f71b522450537edc25cc4bcb3f at com.snc.process_flow.val.transform.GRDotWalker.getElement(GRDotWalker.java:135) at com.snc.process_flow.val.transform.GRDotWalker.value(GRDotWalker.java:41) at com.snc.process_flow.val.transform.DotWalker.value(DotWalker.java:35) at com.snc.process_flow.val.InVal.valueReady(InVal.java:220) at com.snc.process_flow.val.OutVal.lambda$value$0(OutVal.java:61) at java.lang.Iterable.forEach(Iterable.java:75) at com.snc.process_flow.val.OutVal.value(OutVal.java:61) at com.snc.process_flow.engine.DirectiveOperation.lambda$run$0(DirectiveOperation.java:18) at com.google.common.collect.RegularImmutableMap.forEach(RegularImmutableMap.java:185) at com.snc.process_flow.engine.DirectiveOperation.run(DirectiveOperation.java:13) at com.snc.process_flow.engine.Operation.execute(Operation.java:165) at com.snc.process_flow.engine.ProcessEngine.executeOps(ProcessEngine.java:497) at com.snc.process_flow.engine.ProcessEngine.run(ProcessEngine.java:413) 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:1160) 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)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-21-2021 11:00 PM
Hi,
the variable name is incorrect or the variable doesn't exist for that catalog item
Did you check that
please share the flow screenshot and the step where this script is written
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-21-2021 11:04 PM