- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-29-2016 06:07 AM
I have a simple insert business rule with no condition on project table that doesn't get fired if user created a project from template. Is this by designed or bug?
Solved! Go to Solution.
- 3,072 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-02-2016 08:15 PM
Hi Patrick
The BRs don't fire while creating projects from templates. The reason why we have turned off is - if template is too big, our recalculation BR fires on insert of each task and the whole system might end up spinning for lot of time.
So we had turned it off by design.
Thanks,
Arun

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-29-2016 06:10 AM
Business rules get triggered on database operations. The limiting factor is the condition. There may be a condition on the business rule that says "don't run if this is being done from a template."
I recommend turning on business rule debugging *System Diagnostics> Debug Business Rule (details)" and try it again, then observe the output at the bottom of the screen to see which rules ran, which were skipped, etc.
Debugging Tools Best Practices - ServiceNow Wiki
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-29-2016 06:22 AM
Hey Chuck,
This BR is custom and has no condition. It's on insert and after.
Since the Template code is SNC, are you able to see if they have setWorkflow(false) on insert?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-29-2016 06:28 AM
This BR is custom and has no condition. It's on insert and after.
Doesn't matter.
Since the Template code is SNC, are you able to see if they have setWorkflow(false) on insert?
Not that I know of. That would break all kinds of things.
What did you see in the log after applying the template and saving the record?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-29-2016 06:33 AM