Invalid State transition in problem

siva ram1
Kilo Contributor

Hi,

I have a requirement to add a new state to problem. I have created the state model and edited the process flow and created a new ui button as per my requirement but still i am getting "invalid state transition error message". can anyone let me know why this is happening...?

 

find_real_file.png

 

 find_real_file.png

1 ACCEPTED SOLUTION

kindly test it. 

 

i just made the changes in ui action and status model condition for approval . 

View solution in original post

13 REPLIES 13

Can you provide the code of the UI Action what u guys made.

SaiRaviKiran Ak
Giga Guru

Hi,

Can you share the UI action code ?

 

Thanks

Ravi

function onApproval() {

g_form.setValue("state",'approval');
g_form.save();
}

warciech
Mega Contributor

Check the form view your modal is utilizing - chances are this error shows because there is no 'state' field on that view and the logic cannot read the state the record should transition too.