How to create SSRS reports for Dynamics CRM Online. Working with the BIDS add-on to Visual Studio; Creating a new report; connecting to a data source; creating a data set.
Here I am talking about an interesting issue while running Dynamics CRM Reports. When I faced this for first time it felt rare corner scenario but recently I worked with a couple of more customers who ran into same issue. This type of strange issues can take good amount of time to investigate/troubleshoot so worth sharing.
Running any CRM report fails with error stating Reporting Extensions (Data Connector) is not installed. Of course Reporting Extensions (Data Connector) is installed and in fact it’s been removed and reinstalled in attempt to fix the issue, but no difference in error. Below is how error reads/looks like:
Reporting Error
Crm 2013 Reporting Extensions Download
Reports cannot be run because the Connector for Microsoft SQL Server Reporting Services, a required component for reporting is not installed on the server that is running Microsoft SQL Server Reporting Services.
Looking deeper, SSRS Event logs reports failure loading CRM extension.
Log Name: Application
Source: Report Server (MSSQLSERVER)
Date: 7/10/2015 3:11:55 PM
Event ID: 108
Task Category: Extension
Level: Error
Keywords: Classic
User: N/A
Computer: SSRSBox
Description:
Report Server (MSSQLSERVER) cannot load the MSCRM extension.
Same event log error is there for other Report Server extensions as well. MSCRMFETCH, SQLPDW, TERADATA are other exception those fail to load within SSRS.
Microsoft Dynamics Crm Reporting Extensio…
Report Server Service log file also complains about not being able to load the file or missing files.
extensionfactory!ReportServer_0-1!9f8!07/08/2015-02:28:31:: e ERROR: Exception caught instantiating MSCRMFETCH report server extension: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.DllNotFoundException: Unable to load DLL 'SRSDataConnectorBootstrapper.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
at Microsoft.Crm.Reporting.DataExtensionShim.Common.NativeMethods.CreateManagedObject(String fullAssemblyPath, String assemblyName, String typeName, Object& obj)
extensionfactory!ReportServer_0-1!9f8!07/08/2015-02:28:31:: e ERROR: Exception caught instantiating TERADATA report server extension: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileNotFoundException: Could not load file or assembly 'Teradata.Client.Provider, Version=12.0.0.0, Culture=neutral, PublicKeyToken=76b417ee2e04956c' or one of its dependencies. The system cannot find the file specified.
File name: 'Teradata.Client.Provider, Version=12.0.0.0, Culture=neutral, PublicKeyToken=76b417ee2e04956c'
All the files being reported in above exceptions were present on expected path and Report Server service account was given adequate permissions. ProcMon comes to mind as handy tool for investigating file access issues. After good analysis of working and non-working logs could nail it down to VC++ runtime dlls missing or being wrong versions on non-working environment. VC++ runtime is a required component for SSRS extensions to load and function properly.
Once we knew its VC++ runtime fix was relatively easy and quick. Either replace the wrong file with appropriate version from working environment or remove and reinstall Visual C++ Redistributable Package from Microsoft download page. The Visual C++ Redistributable Packages that ships in Redist folder of Dynamics CRM installation media can also be used.
The file msvcr100.dll in C:WindowsSystem32 folder was missing in one of the environment, just placing this file from a working environment resolved the issue. After correcting missing/wrong file or reinstalling VC++ runtime, restarting SSRS, IIS on CRM server and clearing IE cache resolves the errors loading SSRS extensions and CRM Reports render w/o any issues.
Hope this helps! Cheers!
Bhavesh Shastri
I am trying to create SSRS report for MS CRM, I am unable to find Microsoft Dynamics CRM Fetch connection type or how to enable it, while searching over the internet, I found I have to install Microsoft CRM Report Authoring Extension. I installed the extension & now I am facing this issue (See the below pic).
My PC (windows 10) contains these software (may it help) :-
1- Visual Studio 2015.
2- SQL Server 2012.
3- SQL Server Data Tool (SSDT).
4- Business Intelligence (Analyst Services, Integration Services, Reporting Services) .
Any help in this regard will be highly appreciated and acknowledged.
Thanks ...