Getting error java.sql.BatchUpdateException:Duplicate entry for key account path
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-29-2022 09:44 PM
Hi,
When I am inserting records through transform map or rest api explorer then I am getting this error "java.sql.BatchUpdateException:Duplicate entry for key account path.
when we insert some records in accounts table (customer_account) i have seen there is some system property which is updating the account code value every time but still I am getting this error.
Can anyone help me on this..
Thanks in advance..
- Labels:
-
Customer Service Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-29-2022 09:50 PM
Hi,
in customer_account table are you inserting again a new record with same field value for unique field?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-29-2022 11:23 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-01-2022 11:44 AM
Hi,
This usually happens after a clone. The properties do not get cloned over and if that environment has fewer accounts the system will generate an existing code tree path. Copy the value of the com.snc.cs_base.last.generated.code.tree.path System Property to the cloned environment or get the path from the last inserted customer account record and update the property.
Additional info:
Set the account code property (servicenow.com)
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-01-2022 11:45 AM
Hi,
This usually happens after a clone. The properties do not get cloned over and if that environment has fewer accounts the system will generate an existing code tree path. Copy the value of the com.snc.cs_base.last.generated.code.tree.path System Property to the cloned environment or get the path from the last inserted customer account record and update the property.
Additional info:
Set the account code property (servicenow.com)
Hope this helps.