Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

We are not able to update the life cycle stage & status of the ci through flow action and got error

Kotaiah
Kilo Guru

Hi All,

 

I have the requirement once the change is moved to schedule flow needs to trigger and update the configuration item the life cycle stage & status as "Operational & In Maintenance". We are getting the below error following error "Error occured while updating record: null" please refer the following snapshots for more details.

 

koti_724_0-1725963822843.png

koti_724_1-1725964038302.png

 

But we are able to update the life cycle stage & status of the same ci from the form level.

 

Please help on this issue, any kind of help is really appreciate.

 

Regards,

Kotaiah Sadari 

3 REPLIES 3

Adahn
Tera Contributor

Hello, I ran into the same issue and yours, and this was the only post I found. I seemingly found a workaround.

Setting the values as you have, using the provided dropdown menus, did not appear to function. However, setting the fields via script, like so:

flow designer life cycle.JPG

 did the trick. Very strange, and possibly a bug on at least some level.

 

From some experimentation with server side scripts, the field doesn't seem to accept the sys_id values of the stages despite being a reference.

 

Hello @Adahn , 

 

I also updated in the same way..but it never changed for me.. it is not returning any value. Is there something that I am missing. I am not updating the values at the core table (cmdb_ci) or it is on specific class.

Peaxe
Tera Contributor

I now also find that this trick was described in an official knowledgebase article from ServiceNow:
"Create Record" Flow Action fails to set value for life_cycle_stage and life_cycle_stage_status - Kn...