- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2023 11:54 AM
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?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2023 01:53 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2023 12:35 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2023 12:53 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2023 01:53 PM
solved it, see solution