Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

CRM 2015 Report Wizard generates report with CRM 2011 references

Posted on by 172

Hello,

I was having trouble scheduling a report, it just would not run on the schedule. SSRS (this is on-prem) logs indicated:

processing!WindowsService_72!984!09/27/2016-15:54:01:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: , Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Exception of type 'Microsoft.ReportingServices.ReportProcessing.ReportProcessingException' was thrown.;
library!WindowsService_72!984!09/27/2016-15:54:01:: i INFO: Initializing EnableExecutionLogging to 'True'  as specified in Server system properties.
library!WindowsService_72!984!09/27/2016-15:54:01:: e ERROR: Schedule 1ff9c237-3fae-4b53-9080-d8fad593006c failed. Error Microsoft.ReportingServices.Diagnostics.Utilities.RSException: Failed to load expression host assembly. Details: Could not load file or assembly 'Microsoft.Crm.Reporting.RdlHelper, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) ---> Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Failed to load expression host assembly. Details: Could not load file or assembly 'Microsoft.Crm.Reporting.RdlHelper, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)


and found the solution on https://blogs.msdn.microsoft.com/emeadcrmsupport/2014/10/17/dynamics-crm-2013-microsoft-crm-reporting-rdlhelper-error-when-attempting-to-preview-a-crm-report-within-sql-data-tools/

It says "The most common reason for this error is that the report is referencing version 5.0.0.0 of Microsoft.Crm.Reporting.RdlHelper and your Report Authoring Environment actually utilises version 6.0.0.0"

I checked the RDL and sure enough, the reference is to 5.0.0.0:
<CodeModules><CodeModule>Microsoft.Crm.Reporting.RdlHelper, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35</CodeModule></CodeModules>

I edited the RDL to show 7.0.0.0 (we are on CRM 2015) and re-uploaded the report.

I then chose to Schedule Report from the Reports listing in CRM, which creates a copy of that report - this new copy had the 5.0.0.0 reference again!

I downloaded that RDL, edited to 7.0.0.0 and re-uploaded from within SSRS, and the scheduled report started coming off just fine.

So at least on my deployment, the Report Wizard is referencing the wrong version of the assemblies. Wondering if this can be somehow corrected, or if anyone else can reproduce the same issue?

*This post is locked for comments

  • Justin Dale Profile Picture
    Justin Dale 172 on at
    RE: CRM 2015 Report Wizard generates report with CRM 2011 references

    The report authoring extensions are installed on your workstation, not on the SQL or CRM servers - how would this help, since the only reports affected are those generated by the CRM server through Report Wizard?

  • Inogic Profile Picture
    Inogic 24,094 on at
    RE: CRM 2015 Report Wizard generates report with CRM 2011 references

    Hi Justin,

    We have not faced this issue before, make sure you have latest reporting extension installed at your end for CRM 2015.

    Thanks!

    Sam

  • Justin Dale Profile Picture
    Justin Dale 172 on at
    RE: CRM 2015 Report Wizard generates report with CRM 2011 references

    Hello, thanks for replying - It is indeed possible to send a report along with email using report scheduling in CRM 2015 on premise. This isn't a 2011-only feature. We are getting this error when SSRS attempts to snapshot the report at the scheduled time.

    It appears to affect reports generated using the Report Wizard, because my FetchXML based reports I created using BIDS do not even have this code reference to cause the problem. It would stand to reason then, there is something causing the CRM 2015 installation to generate reports referencing 2011 code. You're saying that reinstalling the latest rollup may correct this behavior?

  • Inogic Profile Picture
    Inogic 24,094 on at
    RE: CRM 2015 Report Wizard generates report with CRM 2011 references

    Hi Justin,

    To send report along with Email using report scheduling it is possible for CRM 2011 on premise only.

    It looks that you are getting this error while you are creating image for CRM report using Schedule Report.

    In that case you can reinstall the latest rollup for CRM 2015 and retry the process.

    Thanks!

    Sam

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans