Cannot invoke com.glide.flow_design.action.model.FlowLogicDefinition.getType()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2025 12:03 PM
What does this error refer to? I created a Flow and set it to Run Once. I created a subflow to look up and return a Reference based on two string inputs. When I add the subflow to my flow and try to save I get:
Flow Designer: Cannot invoke "com.glide.flow_design.action.model.FlowLogicDefinition.getType()" because "definition" is null
com.glide.flow.data.FlowLogicGlideRepository.getChildBlockDefinition(FlowLogicGlideRepository.java:480)
com.glide.flow.data.FlowLogicGlideRepository.flowLogicInstanceFromRecord(FlowLogicGlideRepository.java:221)
com.glide.flow.data.FlowLogicGlideRepository.getFlowLogicInstancesByFlowSysId(FlowLogicGlideRepository.java:516)
com.glide.flow.data.FlowGlideRepository.getFlowBySysId(FlowGlideRepository.java:401)
com.glide.flow.providers.FlowGlideProvider.createFlowInstance(FlowGlideProvider.java:558)
com.glide.flow.providers.FlowGlideProvider.getFlow(FlowGlideProvider.java:400)
com.glide.flow.providers.FlowGlideProvider.updateFlowInformation(FlowGlideProvider.java:1034)
com.glide.flow.providers.FlowGlideProvider.updateFlow(FlowGlideProvider.java:892)
com.glide.flow.providers.FlowGlideProvider.updateFlowWithDomainValidation(FlowGlideProvider.java:1324)
com.glide.flow.providers.FlowGlideProvider.validateAndUpdateFlow(FlowGlideProvider.java:1315)
com.glide.flow_design.rest.FlowService.updateFlow(FlowService.java:597)
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.base/java.lang.reflect.Method.invoke(Method.java:569)
com.glide.rest.handler.impl.ServiceHandlerImpl.invokeService(ServiceHandlerImpl.java:44)
com.glide.rest.processors.RESTAPIProcessor.process(RESTAPIProcessor.java:345)
com.glide.processors.AProcessor.runProcessor(AProcessor.java:759)
com.glide.processors.AProcessor.processTransaction(AProcessor.java:313)
com.glide.processors.ProcessorRegistry.process0(ProcessorRegistry.java:187)
com.glide.processors.ProcessorRegistry.process(ProcessorRegistry.java:175)
com.glide.ui.GlideServletTransaction.process(GlideServletTransaction.java:58)
com.glide.sys.Transaction.run(Transaction.java:2734)
com.glide.ui.HTTPTransaction.run(HTTPTransaction.java:35)
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
java.base/java.lang.Thread.run(Thread.java:840)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2025 07:13 AM
Did you test the subflow and if it worked fine then did you publish it?
When you added the subflow are you passing the correct input to it?
Does your subflow have custom action? Did you publish that action?
Is that subflow from same scope as that of flow?
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-16-2025 09:42 PM
Hope you are doing good.
Did my reply answer your question?
If my response helped please mark it correct and close the thread so that it benefits future readers.
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-16-2025 10:18 PM
Hello @thomaskennedy
The error you're encountering, "Cannot invoke 'com.glide.flow_design.action.model.FlowLogicDefinition.getType()' because 'definition' is null," typically occurs when there is an issue with the subflow or its configuration in the main flow.
Now you can go with below some approach:
1. Do is ensure that the subflow is correctly configured and that all required inputs are properly defined. If any input is missing or incorrectly set, it can cause this error. he error suggests that the flow logic definition is null.
2. See if the subflow or one of its actions is not properly defined or if there is a missing or incorrect reference.
3. Sometimes, the Flow Designer cache can cause issues. Try clearing the cache or reloading the Flow Designer to see if that resolves the problem.
4. Try to test run the flow and see at what input is sent to subflow is it as per your requirement.
If my response has helped you hit helpful button and if your concern is solved do mark my response as correct.
Thanks & Regards
Viraj Hudlikar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2025 08:22 AM
Viraj,
Thank you for your response. I just deleted the flow and I will return to it later. I have a script-intensive import that I want to simplify, and the flow(s) are part of the solution, but I will come back to them later.