Recursive Business Rule, How to Prevent Recursion?

jakegartenberg
Tera Expert

The following business rule is for one of our portal pages, it runs before update and on query. We found that it is running recursively, i figured this is because there is a query on the same table itself in the code.

 

I found a servicenow article that said by adding setWorkflow(false) to the code it would prevent the recursion but that does not seem to work. Any other solutions to preventing the recursion?

 

 

Snag_30cf6181.png

1 ACCEPTED SOLUTION
3 REPLIES 3

Bert_c1
Kilo Patron

Hi,

 

My guess is that business rule is part of a 3rd-party application, from Nuvolo. View XML for that record and see (check sys_package).  And if so, you'll need to use their support.

it is on a nuvolo table but was developed by a separate contractor, neither would be able to resolve the issue.

was hoping there is more information out there on how to stop recursion than this article: ServiceNow Developers

 

this setup would be considered a special circumstance to use the setWorkflow method but it doesnt seem to work

 

solved it, see solution

Snag_313f37c1.png