Loading

Salesforce Outlook Integration Error: 'Your email was related, but truncated for size' - 32KB Limit

Udgivelsesdato: Oct 14, 2026
Beskrivelse

The email body size limit in Salesforce is 32KB. Salesforce Inbox truncates an email at this limit and displays the message "Your email was related, but truncated for size."

If you see this message while using Inbox with the Salesforce Outlook Integration and the email message appears to be less than the 32KB limit, document formatting XML in the email message could be increasing the HTML body size to over 32KB.

Løsning

This article explains how to fix the "Your email was related, but truncated for size" error in Salesforce Outlook Integration by removing document formatting XML that inflates the HTML email body past the 32KB limit.

Check for Document Formatting XML

Use these steps to confirm that document formatting XML is the reason the HTML body is larger than 32KB.

  1. View the truncated email message record in Salesforce and take note of the record ID.
  2. Use this query in Workbench to see the value saved in the HTML body field of the email message: Select ID, HTMLBody from EmailMessage where ID='EmailMessageID'
  3. Review the HTMLBody value for document formatting XML, as shown in the example below.

Example of Document Formatting XML in the HTMLBody Field

<w:LsdException Locked="false" Priority="0" QFormat="true" Name="Normal"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 1"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="true" UnhideWhenUsed="true" QFormat="true" Name="heading 2"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="true" UnhideWhenUsed="true" QFormat="true" Name="heading 3"/>

These lines are Microsoft Word formatting rules. They add size to the email but are not visible to the reader.

Enable "Reduce Message Size" in Outlook

Enabling the Outlook setting "Reduce message size by removing format information not necessary to display the image" removes the XML from future emails, reducing the HTML body size and allowing Inbox to add the email without truncation.

  • Open the Outlook mail settings: File | Options | Mail.
  • Scroll down to the Message format settings.
  • Enable the setting Reduce message size by removing format information not necessary to display the image.

Considerations When Reducing Message Size

When an HTML email uses a <style> tag with CSS rules, the "reduce message size by removing formatting" setting removes that <style> block on replies and forwards, which may affect the recipient's experience.

You can also make a request to Salesforce Support to increase the Email Body character limit from 32K characters to 131K characters for your org.

Vidensartikelnummer

000381937

 
Indlæser
Salesforce Help | Article