- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2023 03:14 AM
Hello experts,
I am trying to prevent duplicate software entitlements. If a duplicate is found, I want the request to abort and an error to show up. However, the error is not showing up. I tried both below:
Below is the full business rule script:
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2023 01:10 AM
I would suggest to update the RITM with additional comments to update the user.
Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2023 01:02 AM
Empty condition is fine, then it runs at every update/insert.
Are you expecting this to be displayed when Flow Designer is updating/creating the records?
That is not going to work since flows run in their own context, not in your session.
The message should display when you update/insert it manually though.
Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2023 01:07 AM
ah I was expecting the error to display when I select Update or Close on an SCTASK. Is there any way to get an error to show when selecting those options? I'd like the user to be notified that the process was aborted and not leave them confused.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2023 01:10 AM
I would suggest to update the RITM with additional comments to update the user.
Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2023 01:18 AM
Thanks! I'll do that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2023 05:30 AM
Hello @Jiajie Li ,
Please make sure you are running your business rule on before. So that it will abort the submission of record before the record is inserted.
Best Regards,
Nayan Dhamane
ServiceNow Community Rising Star 2023.