flow designer workflow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2025 07:22 AM
Hi,
Please help with this issue error: Error: Cannot convert null to an object.,Detail: Cannot convert null to an object.
the workflow is not moving to the next step and creating a catalog task. i also cannot edit the workflow its "read only" how can I correct this?
Regards
CarolMa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2025 02:14 AM
I believe in that subflow it's checking nil value so the value part is not configured and when you keep it as empty then system tries to match it with empty string.
So it's designed as expected
Your IF condition has evaluated as false so did you check any other step in bottom has given any error?
You should check these steps at the bottom
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
04-23-2025 02:42 AM
issue no.1, I can't edit the flow its read only OOB is there a way of editing this? removing the read only condition?
resolving the issue is not a problem the issue is not being able to edit the workflow, and it looks like its read only by default OOB
regards
Carol
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2025 02:50 AM
yes it's readonly but you can make a copy of it and follow my earlier shared steps
Then make the changes to newly created subflow, publish it
Then you will have to copy the main flow as well "Step based request fulfillment"
Then in the newly created flow, attach your newly created subflow
Next you need to determine from where this main flow is getting invoked, there replace with your newly created flow
Set Up "Step Based Request Fulfillment" for Catalog Items
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
04-23-2025 03:40 AM
this is where the issue is se below, not sure how to resolve this error
i am not picking any issues with the code:
Encountered error executing instruction: OpInstruction{id=42, opClass=com.snc.process_flow.operation.script.InlineScriptOperation, io=ReadOnlyDefaultOutputsIo{input={_12__create_record_record_sys_id=FlowReference{value=c13i.__create_record}, flow_var_step_instances=FlowReference{value=flow_variable.step_instances}, required_run_time=StringValue{fValue='vanilla'}, _8__for_each_item=FlowReference{value=c8o.item}, script=StringValue{fValue='(function (inputs, outputs) {outputs.__result = (function (inputs)
Regards
CarolMa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2025 04:01 AM
So you got the step where it's failing
you will have to understand what that script does and where are the chances of failing
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