Debug Log

I am getting the error seen in the above log. Why am I getting this error while trying to create a Account record from a Visualforce Page?

System.DmlException: Insert failed. First exception on row 0; first error: DUPLICATES_DETECTED

  • Please share your code, but by the above screenshot it displays that your validation is checking for the comma in Name and the entered record contains a comma so this error is thrown. – C. Praveenkumar Nov 8 '16 at 13:24
  • Please edit your post to include any relevant text. -1 for image only log. – Adrian Larson Nov 8 '16 at 13:31
  • @C.Praveenkumar validation is pass.no issuse with the validation. – Satya Nov 8 '16 at 13:38

Salesforce's standard duplicate rule feature causes that issue.
You can see the name of the rule as Standard Account Duplicate ....... in the middle of the debug.

Let me give you the id of that rule : 0Bm36000001v4Wb :)

quick find

here is the rules

deactivate button

  • can we edit the rule,can we ,made it inactive – Satya Nov 8 '16 at 13:34
  • If you have privilage Yes. It has deactivate button on detail view. – umithuckan Nov 8 '16 at 13:39
  • can u tell me the name of the button. – Satya Nov 8 '16 at 13:40
  • You can see the screenshots under my first answer – umithuckan Nov 8 '16 at 13:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.