Invalid Insert when trying create a new account
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
6 hours ago
Hello CSM Forum,
When I create a new account and try to save it, I get error message of "Invalid insert".
Kindly assist me to resolve the error.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
6 hours ago
Hey @Thato Masingi
The "Invalid insert" error generally indicates that the Account record is failing during the insert operation. I would recommend the following troubleshooting steps:
- Check Business Rules: Navigate to the Account table (customer_account) and review all active Before Insert Business Rules. Look for scripts that use current.setAbortAction(true) or contain validation logic that could prevent the record from being inserted.
- Check Data Policies: Verify whether any mandatory fields or field-level validations are preventing the record from being saved.
- Check System Logs: Navigate to System Logs → All and review any errors generated at the time of the failed insertion.
- Check Dictionary Overrides: Verify whether mandatory field configurations or dictionary overrides are causing validation failures.
- Check Customizations: If the Account table has been customized, review custom Business Rules and other server-side scripts. In a sub-production instance, temporarily disable suspected customizations one at a time and test again.
- Test with Admin: Try creating an Account using an admin account to determine whether the issue is related to ACLs or user permissions.
************************************************************************************************************************************
If this response helps, please mark it as Accept as Solution and Helpful.
Doing so helps others in the community and encourages me to keep contributing.
Regards
Vaishali Singh
Linkedin - https://www.linkedin.com/in/vaishali-singh-2273361bb
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
6 hours ago
Hi @Thato Masingi ,
Invalid insert" usually means one of two things: the user failed the create ACL on customer_account, or a before-insert business rule called current.setAbortAction(true).
1. Find which one it is
- Try the same insert as admin. If it works, it's a role/ACL issue.
- As the failing user, enable Debug Security Rules and Debug Business Rule (Details) under System Diagnostics → Session Debug, then save again. The output shows exactly what blocked it.
2. If it's the ACL
- CSM agents can't create accounts out of the box. The user needs sn_customerservice_manager or customer_admin.
3. If it's a business rule
- Check active before-insert business rules on customer_account for setAbortAction(true).