- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-03-2023 08:54 PM
Hi, whenever I am trying to submit a new catalog item request it is giving me the error on browser "Unique Key violation detected by database ((conn=2340976) Duplicate entry '3454b5a31b65b910cfe2a827bd4bcb8a' for key 'PRIMARY')"
I haven't created aby business rules for this item but the drop down values for variables on form are coming from the table. Can anyone help me with the resolution of this error? Because of this error even the flow is not executing which I created for this item.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-03-2023 09:25 PM
@Appu2 ,
Look for all the before business rules runs on sc_req_item and sc_request check for current.insert or current.update in the script logic.
Easy way to find is :
Go to >business rules,
Filter conditions:
when -before
table - sc_req_item or sc_request
script contains>update or insert
verify if any BR exist, if you find deactivate and verify.
Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-03-2023 10:15 PM
Sure I was about to do that.
It was because of a BR only which was written on sc_req_item table, before insert/update was selected and in the script they were using .update() because of that it was throwing the error. Once I deactivated it then no error came up.
It was the resolution which you mentioned so that helped me figuring it out. Thanks alot!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-03-2023 10:17 PM
One quick ques: What can be used in the script other than .update() if that BR which I deactivated is needed for some reason?