0

We were going to start sending email campaigns in production and discovered that in EXM if we go into a message tab the Preview does not work. It just shows An internal error has occurred. This is happening with our custom base email template, as well as the out of the box sample newsletter.

Using Sitecore 9.1.1, SXA 1.8.1.

There is nothing obvious as to what the internal error is in the log files or in application insights. I also tried using fiddler but the response of the failed request just has the same message as appears in the body field below.

All other environments are fine - it's just production. I have checked all the things published (templates, renderings, email root).

enter image description here

If you click into the body the Experience Editor loads fine with the modules all ok. Saving and closing just leave it in an error state on this screen and in the Content editor preview tab.

UPDATE

Have discovered that accessing this CSS file is erroring:

/sitecore%20modules/shell/EmailCampaign/UI/Editors/MessagePreview.css

Although still unsure why this file is not accessible via web browser.

  • Check EXM and Sitecore logs. Usually there you will find more details – Peter Procházka Nov 19 '19 at 9:30
  • @PeterProcházka checked them - nothing found when the error occurs. We have our EXM configured to log to application insights where I've checked traces and exceptions. The general log file also has nothing. It's like the exception is being swallowed or potentially there's something specific I should be searching for in the log file that I'm missing. – Jen Nov 20 '19 at 3:17
  • @PeterProcházka Seems to be a problematic CSS in Azure. :| – Jen Nov 20 '19 at 5:19
2

This turned out to be caused by a handler added as part of the Sitecore recommended security practices outlined here.

Adding the following line to the root Web.config as per the Security Tasks was the cause:

<add path="*.xml" verb="*" type="System.Web.HttpForbiddenHandler" name="xml (integrated)" preCondition="integratedMode"/>

Turning on errorMode="Detailed" in the httpErrors section of Web.config (see below) showed a duplicate key with the same entry in the \sitecore modules\Shell\EmailCampaign\web.config file which caused an HTTP 500.19 error.

<system.webServer>
    <httpErrors errorMode="Detailed"></httpErrors>
</system.webServer>

Commenting out the handler in the EmailCampaign\web.config fixed the problem.

|improve this answer|||||

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.