Skip to main content

Trying to trace an error message related to a bad email address.  We have a webform created with Aura Components.  The email field is pulled from a custom object.  If you type "john" or "john&" or even "John@" you get a standard message: "You have entered an invalid format. Enter a value."

 

But once you add a character after the "@" without completing the email address you get this:

 

{"message":"An error occurred while trying to update the record. Please try again.","detail":"","output":{"errors":[],"fieldErrors":{"Submitters_Email_Address__c":[{"constituentField":null,"duplicateRecordError":null,"errorCode":"INVALID_EMAIL_ADDRESS","field":"Submitters_Email_Address__c","fieldLabel":"Contact Email Address","message":"Contact Email Address: invalid email address: john@q"}]}},"error":{"status":400,"body":{"message":"An error occurred while trying to update the record. Please try again.","statusCode":400,"enhancedErrorType":"RecordError","output":{"errors":[],"fieldErrors":{"Submitters_Email_Address__c":[{"constituentField":null,"duplicateRecordError":null,"errorCode":"INVALID_EMAIL_ADDRESS","field":"Submitters_Email_Address__c","fieldLabel":"Contact Email Address","message":"Contact Email Address: invalid email address: john@q"}]}}},"headers":{}}}

 

Any thoughts?  I didn't write the code....I'm trying to figure out where this message is coming from so I can fix it.

 

Thanks!

0/9000