logo

NJP

Mike Bahr on LinkedIn: #servicenow #servicenowdev

Import · Dec 19, 2022 · article

Have you ever had a runaway ASYNC business rule? Me too! Here’s how to stop it dead in its tracks. 1. Deactivate the business rule and save it 2. Export the business rule to XML 3. Delete the business rule 4. Go to the sys_trigger table and look for ASYNC:
5. The number of jobs should be decreasing, once they are gone re-import the BR XML Questions: Why can’t I just deactivate it? A: The train has left the station. At the level the system is performing the operation(s) it doesn’t care. It's pointed to a record and it will try to run whatever it's told to run. What if I comment out my code temporarily? A: That ship has set sailed. As long as the sys_trigger is calling a valid sys_id it will keep running. When you temporarily delete the BR in question you break that reference which breaks that infinite loop.#servicenow #servicenowdev

View original source

https://www.linkedin.com/posts/michaelbahr_servicenow-servicenowdev-activity-7010050167122923520-Zjz5?utm_source=share&utm_medium=member_desktop