Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Answered

HTML: This message includes HTML content that contains too many characters.

Posted on by 215

Hello,

I am struggling with creating HTML E-Mails.

I can save the e-mail, but when checking for errors I get the error: "HTML: This message includes HTML content that contains too many characters.".

 

Does anybody have any idea what that error means?

Is there a limit in content length? Could not find any in the documentation.

 

Thanks for your help!

HTML-too-many-characters.JPG

  • cloflyMao Profile Picture
    cloflyMao 25,198 on at
    RE: HTML: This message includes HTML content that contains too many characters.

    Hi Simon,

    Thanks for sharing your using experience.

    Regards,

    Clofly

  • RE: HTML: This message includes HTML content that contains too many characters.

    Thanks for your support!

    By simplyfying the HTML and following some of the best practises already posted by you I was able to get far below the limit. Even very content rich emails are now below 50KB.

    Some lessons learned:

    Oulook optimization is mostly done when using Default Toolbox. Before we had a responsive html template with lots of nested elements. Also our design agency gave us HTML that already included Outlook Optimization Tags. So they were added twice. Once by us and another time in the html output.

    I recreated the template from scratch using the blank out of the box template. With Dynamics drag and drop tools and minor refinements in the html. Dynamics then adds outlook optimization into the output but still now much less.

  • Verified answer
    cloflyMao Profile Picture
    cloflyMao 25,198 on at
    RE: HTML: This message includes HTML content that contains too many characters.

    Hi Simon,

    I'm not clear about how does marketing email editor process HTML source code to HTML output,

    even thought I also found that output size is larger than source after test.

    As the definition described, final output might contains more contents than source code.

    pastedimage1576853606323v1.png

    here are some extra contents in output:

    <!--[if gte mso 9]>

    pastedimage1576853858647v2.png

    the snippet is used to render content properly in Outlook desktop client and it has been added automatically by CRM.

    In coclusion, you could do:

    1. Try to remove contentss you don't want in Output code.

    2. Make you original HTML source code more simplified.

    3. Share your HTML source code if possible, I'll try to find whether any element could be removed to get final size smaller than origin. 

    In addition, please kindly hide your org URL in sceenshot, which may cause privacy leak. Thanks.

    Regards,

    Clofly

  • RE: HTML: This message includes HTML content that contains too many characters.

    Still running into that issue.

    One of the problems that happen: In the HTML Editor window, I paste minified HTML (40 kB when saved to a file)

    But Dynamics manages to render that as 136 KB in the HTML output (see Screenshot). Hence the check fails because the 100kB are exceeded.

    What the heck?!

    pastedimage1576849955202v1.png

  • Verified answer
    cloflyMao Profile Picture
    cloflyMao 25,198 on at
    RE: HTML: This message includes HTML content that contains too many characters.

    Hi Simon,

    It seems that the error notification had been changed in wave 2 release,

    when my test email was larger that 100kb, then I also got the error as yours.

    I tried to reproduce your issue with text below to fill content text block:

    Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
    
    
    
    Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolorLorem ipsum magna aliquyam erat, magna aliquyam erat, magna aliquyam a b.

    pastedimage1572921062512v1.png 

    But I didn't encounter issue you met, below is my configuration:

    1. There were 5 elements in my email:

    Text -> Head

    Divider

    Text -> Content (Lorem..)

    Divider

    Text -> ContentSettings

    2. My final content has 74907 characters. (74.5kb)

    3. My final HTML size is 88.6kb.

    So had you added any other element on your marketing email ?

    Had you checked your final email size ?

    Regards,

    Clofly

  • RE: HTML: This message includes HTML content that contains too many characters.

    Thanks for the reply. Unfortunately my error message is slightly difderent. Content is not "too large" (66kB) but it says, that it has "too many characters". The error comes at arcound 72.000 characters, but I can not find a definitive limit for that

  • Verified answer
    cloflyMao Profile Picture
    cloflyMao 25,198 on at
    RE: HTML: This message includes HTML content that contains too many characters.

    Hi SImon,

    Reason that could causes the issue:

    1. Text content (include CSS rules) in your marketing email is larger than 100kb.

    2. An embedded base64 format image which is larger than 100kb on your marketing email

    100kb limitation documentation(in blue Important content box):

    https://docs.microsoft.com/en-us/dynamics365/customer-engagement/marketing/email-design#design-your-content

    There is a previous thread that the user had similar issue you met:

    https://community.dynamics.com/365/marketing/f/dynamics-365-for-marketing-forum/364936/email---this-message-has-html-content-which-is-too-large

    You could also find the answer and support documentation inside it.

    Regards,

    Clofly 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans