I'm getting a custom validation system errors. How to prevent them:

Error Email:

Origin: LeadEmailHandler (this is an apex class)

Error: Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, Found a duplicate record for [email protected]:
Patrick (Lead): http://na22.salesforce.com/: []

Link: https://na23.salesforce.com/

System Error:

enter image description here

what would be the reason for this emails?How to stop these system error coming to mail?

1 Answer 1


This link seems applicable: https://developer.salesforce.com/forums/?id=906F00000008ypdIAA.

Did you modify the ConsumerLeadEmailHandler class? It seems to be the culprit of your issue.

If you're the developer and are receiving the e-mails, I might suggest a rule to direct the e-mails to a specific directory in your inbox if you are looking to ignore them. Though, they are letting you know something bad is happening, so you might not want to blanket ignore them.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .