Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

CRM 2016 404 error before any report runs

Posted on by Microsoft Employee

When running any report in Chrome a 404 error shows up for a second or two before the report starts to render. The report runs fine after the 404 error but I haven't been able to find a reason as to what causes it. I ran fiddler and found that the error also happens in IE but does not display it like Chrome does. Issue is reproducible in Dynamics CRM 2016 On-Premise 8.1.0.359 and 8.2.1.176. This happens across multiple production and test environments.

URL: https://{crmorg}/crmreports/viewer/viewer.aspx?action=run&context=records&helpID={reportname}.rdl&id=%7b1c52a580-b9ef-402f-9869-c975a8f543f7%7d&records=%7b257F1F03-2C11-49EB-9DEA-EB8CB24E8C8E%7d&recordstype=1

Has anyone seen this before? If so, have you been able to fix it?

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: CRM 2016 404 error before any report runs

    Microsoft told us this was an acceptable workaround and is being fixed in 8.2.2.166

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: CRM 2016 404 error before any report runs

    Michael,

    Thank you very much for this suggestion. I tried it on two of our test environments and it worked! It looks like the change took effect immediately without the IISReset but I did that anyways for good measure.

    Thanks again,

    Robert

  • Verified answer
    Michael Steiner Profile Picture
    Michael Steiner 25 on at
    RE: CRM 2016 404 error before any report runs

    Hello,

    until yesterday we had the same problem. We are using MSCRM 2016 version 8.1.1.1005.

    Our system house contacted Microsoft and they gave us a work around with the following instructions:

    • On CRM server go to C:\Program Files\Microsoft Dynamics CRM\CRMWeb\CRMReports\viewer
    • On viewer.aspx on line 221, check the code. Is it the code oFrame.setAttribute('src', '" + Mscrm.CrmUri.create("/_static/blank.htm").toString() + "'); ?
    • If yes,
      • Delete
        • Frame.setAttribute('src', '" + Mscrm.CrmUri.create("/_static/blank.htm").toString() + "');
      • Add
        • Frame.setAttribute('src', Mscrm.CrmUri.create("/_static/blank.htm").toString());
    • Do an IIS reset

    We did that on test environment and in the meantime also on production environment and it works fine. The 404 error is no longer there.

    This is not a final solution. By making a system update we would loose the changes. It is not clear yet, if there will be a hotfix or something like that.

    I hope this helps you, too.

    Update: I forgot to tell that you have to delete the cache and cookies in web browser.

    Best regards,
    Michael

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: CRM 2016 404 error before any report runs

    I got the same error!

  • Hervé ROBILLARD Profile Picture
    Hervé ROBILLARD 615 on at
    RE: CRM 2016 404 error before any report runs

    Hello Pawel,

    For me the same. I put CRM traces and rs logs here : overshare.overlapgroupe.fr/.../fibaha

    Hervé

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: CRM 2016 404 error before any report runs

    Hi Radu,

    The server in which I'm doing all my testing is a single all in one (CRM Front End/Back End, SQL, Report services).

    Thanks,

    Robert

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: CRM 2016 404 error before any report runs

    Hi Pawel,

    I did check the CRM traces and report server logs but there are no errors logged there. However, when I tried running reports from the CRM server in Chrome I was able to get a more detailed error.

    This is the error:

    HTTP404Error2.png

    Per the suggestion on the error I tried setting 'allowDoubleEscaping' to true in the CRM application's web.config to see what would happen. Changing this option is not recommended since it opens up a security hole allowing code injection. Did an IISReset and restarted the report service. After this I started to receive a slightly different 404 error.

    HTTP404Error2.png

    Thanks,

    Robert

  • Radu Chiribelea Profile Picture
    Radu Chiribelea 6,667 on at
    RE: CRM 2016 404 error before any report runs

    Hi Robert,

    Are you using an NLB for your CRM Server? If so, can you please make sure that the affinity is set to single? See technet.microsoft.com/.../bb687542.aspx for more details. Different NLB use different naming for this.

    Thanks,

    Radu

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: CRM 2016 404 error before any report runs

    Hello , As pawel suggested ,please can you please put the CRM traces & reporting sever logs?

    best Regards,

    david

  • tw0sh3ds Profile Picture
    tw0sh3ds 5,600 on at
    RE: CRM 2016 404 error before any report runs

    Have you checked CRM Traces and Reporting Services logs?

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,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans