Join us Dec. 16 for The Community Hour, our first global virtual User Group event!

Invalid Insert when trying create a new account

Release: Australia
Thato Masingi
Tera Contributor

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,

2 REPLIES 2

vaishali231
Mega Sage

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:

  1. 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.
  2. Check Data Policies: Verify whether any mandatory fields or field-level validations are preventing the record from being saved.
  3. Check System Logs: Navigate to System Logs → All and review any errors generated at the time of the failed insertion.
  4. Check Dictionary Overrides: Verify whether mandatory field configurations or dictionary overrides are causing validation failures.
  5. 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.
  6. 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





NagaChandaE
Mega Sage

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).