When migrating contact record to Salesforce I hit this error: "Email: data value too large: (max length=80)".

What should I do if one of my emails is longer than 80 characters?


1 Answer 1


You are stuck -- You'll need to get aliases created for these emails before they can go into Contact.email.

As a workaround for the hopefully 99% valid (<=80 char email) contacts, You could import the 'email' field to a custom field: Contact.imported_email__c and then use workflows to copy that to Contact.email if length <=80

Then, the too long emails could be dealt with later.

Note Idea - https://success.salesforce.com/ideaview?id=08730000000BpGHAA0 where PM (admittedly 5 years ago) says that SFDC can't reliably deliver to email addresses longer than 80 chars

Of course, SFDC itself generates inbound email service addresses that are way longer than 80 characters so they obviously expect other MTAs to be able to send such emails.

  • Interestingly the addresses for apex email services are reliably greater than 80 characters. Apr 25, 2014 at 1:25
  • 1
    URL fields are also similarly limited. You can have arbitrarily long URLs, but salesforce.com can't store them.
    – sfdcfox
    Apr 25, 2014 at 2:54
  • Per IETF, the valid emails are limited to 254 chars. Maybe Salesforce should adhere to it soon. Refer stackoverflow.com/questions/386294/…
    – markgarg
    Jun 2, 2016 at 15:09

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.