Invalid State Transition error message on Catalog Task

Lucky1
Tera Guru

Hello all,

 

Good day!!
I am getting an error message when I am closing the catalog task using UI action button "Close task".

But this error message is showing up in QA instance but NOT in dev instance.

Task is getting closed, but the error message is showing up.

 

So, what could be the problem??

Where did this error message configured in the system?

Lucky1_0-1743094217233.png

 

 

 

 

Regards,

Lucky

9 REPLIES 9

@Lucky1 

if both the places it's same then it should throw error in both or no error in both.

Try to raise a case with ServiceNow.

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

Chaitanya ILCR
Kilo Patron

Hi @Lucky1 ,

Check if state model is set for catalog task table

 

ChaitanyaILCR_0-1743095055456.png

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya

 

Hello Chaintanya,

 

Yes, I see there is a state model defined on the sc_task table.

 

 

Regards,

Lucky

Hi @Lucky1 

ChaitanyaILCR_0-1743095888539.png

 

check the state that you are trying to move the catalog task to looks like you are moving it closed

check if that state(closed?) is allowed from current state check the enter condition.

 

ChaitanyaILCR_0-1743096087593.png

Ex: in this case state asses is allowed form Only new state

you can update your state's enter condition with current state(work in progress?) against state you are trying to move the sctask to(closed?) open the close state and add work in progress in enter condition

 

that's what what is throwing that error that you have shared

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya

 

 

 

Yes Chaitanya,

 

I have checked the enter conditions both in dev and QA.

 

I opened the Closed Complete State transition record, and I see the State selected is Closed Complete and the Enter condition is:

State is one of Work in progress and Peer review.

 

I really wonder, why the error message is not showing up in dev and only showing up in QA.

 

 

Regards,

Lucky