flow designer workflow

CarolMa6
Tera Expert

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? 

 

CarolMa6_1-1745331730833.png

 

CarolMa6_0-1745331653811.png

Regards 

CarolMa

10 REPLIES 10

@CarolMa6 

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

AnkurBawiskar_0-1745399637770.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

@Ankur Bawiskar 

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

 

@CarolMa6 

yes it's readonly but you can make a copy of it and follow my earlier shared steps

AnkurBawiskar_0-1745401592331.pngAnkurBawiskar_1-1745401647092.png

 

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"

 

AnkurBawiskar_2-1745401732251.png

 

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.

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

@Ankur Bawiskar 

this is where the issue is se below, not sure how to resolve this error 

 

CarolMa6_0-1745404502307.png

i am not picking any issues with the code: 

CarolMa6_1-1745404568542.png

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

@CarolMa6 

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.

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