Unable to change Problem State from "New" to "Assess"

sameer S
Tera Contributor

Hi, 

I am trying to update the problem state from new to access through script and I am getting below error.

"Invalid state transition. Can not update from state 'Assess' to state '(-4)' with given values.

I tried changing the value to 102. It doesn't give error but it doesn't change the state either.There is one more value 152 for Assess . Tried that and it throws error. 

Please advise

Thanks & Regards,

Sameer Sudan

5 REPLIES 5

Alberto Consonn
ServiceNow Employee
ServiceNow Employee

Hi,

you need to check the State Model, please refer to the solution proposed here:

https://community.servicenow.com/community?id=community_question&sys_id=25a83473dbecb7041cd8a345ca96...

If I have answered your question, please mark my response as correct and/or helpful.

Thank you very much

Cheers
Alberto

sachin_namjoshi
Kilo Patron
Kilo Patron

Check business rule 'task closer' is running on problem which restricts state transition.

You can see code in this business rule for your error.

 

Regards,

Sachin

I disabled this "task closer" BR . Its still throwing the same error

Don't disable this OOB business rule since it may break other functionality.

For your issue, you should deactivate state transition rule for your state.

 

https://docs.servicenow.com/bundle/orlando-platform-administration/page/administer/state-model/task/...

 

Regards,

Sachin