Approval getting auto cancelled in workflow?

suresh40
Tera Contributor

Hi All,

My group approval cancelled automatically in workflow please help me on this .

find_real_file.png 

7 REPLIES 7

Ravi9
ServiceNow Employee
ServiceNow Employee

when u hover on the cancelled context what do u see , can u share some screenshots ? 

suresh40
Tera Contributor

Hi Ravi,

Sure, i will share.

 

 

find_real_file.png

 

find_real_file.png

Michael Heilman
Tera Contributor

I had a similar thing happen and it turned out that my custom States, for a table that inherits from Task, were getting ignored.

 

I had six custom States configured in the dictionary entry of State for my custom table, with values of 1-6. There are over a 150 Choice values spread across a dozen or more tables, so this is a normal way of extending choices for a table that inherits from Task Here is what the values look like for just my custom table and for Task:

 

LabelValueTable
Planned1Audit Item [u_audit_item]
In Progress2Audit Item [u_audit_item]
Fulfilled3Audit Item [u_audit_item]
Departmental Approval4Audit Item [u_audit_item]
Coordinator Approval5Audit Item [u_audit_item]
Ready for Auditors6Audit Item [u_audit_item]
Sent to Auditors7Audit Item [u_audit_item]
Accepted8Audit Item [u_audit_item]
Pending-5Task [task]
Open1Task [task]
Work in Progress2Task [task]
Closed Complete3Task [task]
Closed Incomplete4Task [task]
Closed Skipped7Task [task]

 

Right before we get to the first approval step, I set the State value to '4,' Departmental Approval, however the workflow engine was reading a '4' as Closed Incomplete and was canceling the approval and ending the workflow. We fixed this by changing the values of the custom States, so they could no longer be confused with the default Task states:

 

Planned100Audit Item [u_audit_item]
In Progress200Audit Item [u_audit_item]
Fulfilled300Audit Item [u_audit_item]
Departmental Approval400Audit Item [u_audit_item]
Coordinator Approval500Audit Item [u_audit_item]
Ready for Auditors600Audit Item [u_audit_item]
Sent to Auditors700Audit Item [u_audit_item]
Accepted800Audit Item [u_audit_item]

 

This strikes me as a bug, that when referencing the State Choices table, ServiceNow should only be looking at the Choices for the table in question. In any case, easy to avoid.