Workflow conditions are not satisfied but the secondary approval is Triggered.

Tamilvanan T
Tera Contributor

As per the workflow, the secondary approval will be triggered when the variable "Server Name" is mentioned in the RITM and will triggered the approval to owner of the CI or else the approval will be skipped.

 

But now the secondary approval activity is getting executed and triggering approval to a particular user even when the conditions are not met. It somehow fetching one of the CI and triggering the approval to that owner of the CI.

The server name is not mentioned in the RITM's but when the request is submitted and once the manager approves, it somehow triggering the approval to the owner of that particular CI. couldn't able to figure out how it's fetching that CI even the Server name is not mentioned in the request.

 

There is no changes in the workflow or workflow versions and also it is working fine in the lower environments.

 

Please let us know if there's a way to resolve this issue

 

 

 

 

1 ACCEPTED SOLUTION

Hello @Tamilvanan T ,

 

Did you check if you have CI Relationships where the Child is empty? That would be the reason for the issue. As I mentioned before you would need to add a condition that skips the approval when the variable is empty.

 

Regards,

Robert

View solution in original post

8 REPLIES 8

Hello @Tamilvanan T ,

 

Did you check if you have CI Relationships where the Child is empty? That would be the reason for the issue. As I mentioned before you would need to add a condition that skips the approval when the variable is empty.

 

Regards,

Robert

@Tamilvanan T 

the image you shared is when you push the approver.

did you print what came in server_ci variable in logs?

gs.info('server selected in RITM is' + current.variables.server_ci);

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

I have checked by adding the info message the "server_ci" variable is empty. 

@Tamilvanan T 

did you add this exact line? share the variable config screenshot

gs.info('server selected in RITM is' + current.variables.server_ci);

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader