Troubleshooting reporting in Microsoft Dynamics CRM 3.0

Updated: November 26, 2007
**
**

Find answers to common questions about working with reporting in Microsoft Dynamics CRM. As we identify new solutions to common issues, we'll update this page. For additional assistance, visit the Microsoft Dynamics CRM community or the Microsoft CRM Sandbox.


General reporting issues

Q.Why isn't data in a report, even though I expect it to be there?
A.

There are several possible reasons why data you expect to be on a report does not appear:

Security. If you don't have permission in Microsoft Dynamics CRM to view a record, it will not appear in the report.

Data is not entered in Microsoft Dynamics CRM. The person entering data may have left fields empty. For information about where each field in a report comes from, see the Help topic for the report.

Data that does not match the criteria for the report. Many reports include a default filter that displays only active records, or you may have selected criteria that the record doesn't match.

You may be viewing a cached copy of the report. By default, data in Microsoft Dynamics CRM reports is pulled from the database each time you run a report. However, your system administrator may have changed a report to run from the cache. If data you entered recently is not included in the report, you may have an older version of the report from the cache. To refresh the report, on the Microsoft Dynamics CRM Report Viewer toolbar, click Refresh Icon.

Q.Why do one or more reports display slowly or stop responding?
A.

Most reports, on Microsoft Dynamics CRM systems with typical amounts of data, return results within thirty seconds to a minute. Some reports might take longer if the report includes a large number of records, or if the system usage is high.

If you are a user, try editing the filter before you run the report to select fewer records. If you need to run a summary report for a large number of records, such as the Account Distribution report, expect it to take a while to run and try to run it when system usage is low.

If you are a system administrator, you have several options:

Change the default filter on the report to be more restrictive.

Remove the report from on-demand use and use the Microsoft Dynamics CRM 3.0 Report Scheduling Wizard to schedule it to run when the system is less heavily used.

If the report is a custom report, see the Report Writers Guide section of the Microsoft CRM 3.0 Software Development Kit for suggestions on improving report performance.

If the problem occurs on a matrix table report, such as the Case Summary Table report, use Task Manager to see if the Web service process (w3wp.exe) on the report server is consuming all memory. If this is the problem, you can modify the MemoryLimit setting in Reporting Services. Reports are automatically stopped if they exceed the percentage of memory specified in this setting. By lowering this limit, you can cause the report to fail without consuming so much memory that the server is unusable. For more information, see the topic "RSReportServer Configuration File" in Reporting Services Books Online.

Identify whether you need to upgrade hardware or use a separate server for Reporting Services. For more information, see Chapter 24, "Managing Reports" in the Microsoft CRM 3.0 Implementation Guide.

Q.Why do I receive the "An error has occurred during report processing. Cannot create connection to data source CRM. Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'" error when I run any report?
A.

This error will occur if the Enable Integrated Windows Authentication check box is not selected in Microsoft Internet Explorer.

To fix this problem:

1.

On the Microsoft Internet Explorer Tools menu, click Internet Options.

2.

On the Advanced tab, in the Security section, select Enable Integrated Windows Authentication, and then click OK.

3.

Restart your computer.

Q.Why do I receive the "The maximum number of tables in a query (260) was exceeded" error when I try to run a Reporting Services report?
A.

This problem may occur if you use too many related record-types to filter the report. Try reducing the number of filter criteria for the report, and running the report again. If you are running the report from a view that uses several record-types in the view criteria, try running it from a simpler view instead.

If you are writing a new Reporting Services report, you may get this error if you have too many joins in the SELECT statement in your report. Try reducing the number of joins.

Q.Why do I receive the "Error: Too many characters in query" error when I try to run a Reporting Services report?
A.

This problem may occur if you use too many parameters to filter the report or select too many individual records to run a report on. This is due to a limit in Microsoft SQL Server 2000 Reporting Services: only 2048 characters can be included in the URL string.

Try reducing the number of filter criteria for the report or selecting fewer records, and running the report again.

This problem does not occur with Microsoft SQL Server 2005 Reporting Services.

Q.
A.

Printing and exporting issues

Q.When I try to print a Reporting Services report for the first time, why do I receive a security warning "Do you want to install this software?"
A.

This security warning occurs the first time you try to print a Microsoft SQL Server Reporting Services report from either Microsoft Dynamics CRM or Microsoft Dynamics CRM 3.0 client for Microsoft Office Outlook.

To print reports, you need a Reporting Services ActiveX control. To install the required control, click Install.

Q.When I try to print a Reporting Services report, why do I get an "Object doesn't support this property or method" error?
A.

This error occurs the first time you try to print a report from either Microsoft Dynamics CRM or Microsoft Dynamics CRM client for Outlook if you are not in the local administrators group on your computer. You need an ActiveX control that is required for printing reports, but do not have permission to install ActiveX controls on your computer.

To fix this problem:

Ask a system administrator or person with local administrator privileges on your computer to log on to your computer and follow these instructions:

1.

Use Microsoft Internet Explorer to go to http://<CRM_Server>.

2.

In the Navigation Pane, click Workplace and then under My Work, click Reports.

3.

Select a report, run the report, and then click Print.
The ActiveX control required for printing will be installed on your computer.

Q.Why do I get an "Error loading resource string" error when I try to print a Reporting Services report?
A.

This error might occur if the ActiveX control used for printing reports is an old version or is not installed correctly. To fix this problem:

1.

In Microsoft Internet Explorer, on the Tools menu, click Internet Options.

2.

On the General tab, in the Temporary Internet files section, click Settings.

3.

Click View Objects.

4.

Select RSClientPrint Class, and then on the Edit menu, click Delete.

5.

Try printing the report again.

Q.When I export a report containing a chart in Web archive format, why doesn't the chart display?
A.

Export the report a second time, and the chart will be displayed.

Q.When I export to a Microsoft Office Excel dynamic worksheet or PivotTable, why do I receive a "Connection failed. Reason: not associated with a trusted SQL connection" error?
A.

This error occurs if you are accessing Microsoft Dynamics CRM from a different domain than the domain that Microsoft Dynamics CRM is installed on.

To export a list of records to a dynamic Microsoft Office Excel worksheet (a file that refreshes data from the Microsoft Dynamics CRM database each time it is opened) or PivotTable, your computer must be on the same domain as the domain of the Microsoft Dynamics CRM server. If you are on a different domain, you can export a worksheet static (a file that does not change when data changes in Microsoft Dynamics CRM).

Q.
A.

Report management issues

Q.Why do users see an empty screen when they open Reporting Services Report Manager?
A.

To access Reporting Services Report Manager, in your Web browser enter the URL for Report Manager, which by default is: http://<Reporting_Services_Report_Server>/Reports, and browse to the folder for Microsoft Dynamics CRM reports.

Users who do not have permission to see the top-level folder in Report Manager will see an empty screen, and cannot browse to the folder for Microsoft Dynamics CRM reports. By default, only users with the local Administrator role on the report server can access the top-level folder.

Other users need to open the URL for the Microsoft Dynamics CRM reports folder, http://<Reporting_Services_Report_Server>/Reports/Organization_name. For example, if your organization name is "Adventure Works", you would open: http://<Reporting_Services_Report_Server>/Reports/Pages/Folder.aspx?ItemPath=/Adventure+Works_MSCRM.

Q.Why do I receive the error message "SRS soap exception: The permissions granted to user 'DOMAIN\User' are insufficient for performing this operation" when I try to download a report?
A.

In order to download a report from Microsoft Dynamics CRM, you must have:

The Report Manager System Administrator security role. By default, users in the local Administrators group on the report server have this role.

The Microsoft Dynamics CRM System Administrator or System Customizer security roles, or the Manage Reports privilege.

To download a report, log in as a user with the necessary roles. For more information about security roles in Reporting Services, see Reporting Services Books Online.

Q.Why do I receive the error message "Page not found" when I try to upload a report?
A.

This error can occur if you are trying to upload a file that is larger than 10 MB. Reports larger than 10 MB cannot be uploaded, because they will degrade performance for your users.

Q.Why do I receive the error message "The permissions granted to user 'NT AUTHORITY\NETWORK SERVICE' are insufficient for performing this operation" when I try to modify report properties, or upload or download a report?
A.

This error occurs if Microsoft Dynamics CRM and Reporting Services are installed on the same server, the server is running Windows Server 2003 or is a Microsoft Windows Small Business Server 2003, and Domain user was specified on the Specify Security Account page when Microsoft Dynamics CRM was installed.

To add the necessary permissions, make the following change in Reporting Services Report Manager.

1.

On the server running Microsoft Dynamics CRM, use Microsoft Internet Explorer to open Reporting Services Report Manager. By default, Report Manager is located at http://localhost/Reports. If you renamed the virtual directory for Report Manager when you installed Reporting Services, use the virtual directory name you used rather than Reports.

2.

Click Show Details.

3.

Click the icon in the Edit column next to the folder for your organization.

4.

Click Security.

5.

Click New Role Assignment.

6.

On the New Role Assignment page, in the Group or user name box, enter the value of the service account name for ASP.NET:

For English locales, enter NT Authority\.

For other locales, open the setup log file with Notepad. By default, this file is located at <systemdrive>:\Documents and Settings\User\Application Data\Microsoft\MSCRM\Logs\crm30svrsetup.log

1.

Search for ServerInstallInfo.AspNetServiceAccountName.

2.

Look at the value in this line, and enter this value in the box.

7.

Select the check box next to Publisher for Microsoft CRM.

8.

Click OK.

Q.
A.

System requirement issues

Q.Does reporting work with Internet-facing deployments of Microsoft Dynamics CRM?
A.

There are two ways to access Microsoft Dynamics CRM reports over the Internet:

Use a Virtual Private Network (VPN) connection to connect to your network, and then access Microsoft Dynamics CRM.

Use a partner-hosted version of Microsoft Dynamics CRM, rather than installing Microsoft Dynamics CRM at your location. For more information about hosted versions, see Microsoft Dynamics CRM gives you the power of choice with hosted CRM.

Q.Does Microsoft Dynamics CRM work with Microsoft Windows Small Business Server 2003 Release 2 (SBS 2003 R2)?
A.

SBS 2003 R2 includes Microsoft SQL Server 2005 Workgroup Edition. Microsoft Dynamics CRM works in this environment, although several reporting features are not available. You cannot use Reporting Services Report Manager, or the optional Microsoft Dynamics CRM Report Scheduling Wizard, to schedule reports, or export reports to DHTML, comma-separated value, or XML formats.

Q.Does Microsoft Dynamics CRM work with Microsoft SQL Server 2005 and SQL Server 2005 Reporting Services?
A.

When you install Microsoft Dynamics CRM, you can install SQL Server 2000 Reporting Services or connect to an existing instance of Reporting Services.

If you have Microsoft Dynamics CRM install Reporting Services, you must have Microsoft SQL Server 2000 installed on the server on which you install Reporting Services. SQL Server 2000 Reporting Services does not work with Microsoft SQL Server 2005.

If you connect to an existing instance of Reporting Services, you can connect to either SQL Server 2005 Reporting Services, which requires SQL Server 2005, or SQL Server 2000 Reporting Services, which requires SQL Server 2000.

If you use SQL Server 2005, and Microsoft Dynamics CRM and SQL Server are on the same computer, after you install Microsoft Dynamics CRM, verify that the Microsoft Dynamics CRM Web site uses Microsoft ASP.NET version 1.1. SQL Server 2005 uses Microsoft ASP.NET version 2.0.

1.

In Internet Information Services Manager on your computer running Microsoft Dynamics CRM, right-click the Microsoft Dynamics CRM Web site, and then click Properties.

2.

Click the ASP.NET tab. If version 1.1.4322 is not selected, select version 1.1.4322, and then click OK.

3.

On the Start menu, click Run, and then type iisreset.

Q.If I have already installed Microsoft Dynamics CRM using Microsoft SQL Server 2000 and SQL Server 2000 Reporting Services, can I upgrade to Microsoft SQL Server 2005?
A.

In most cases, yes. You can upgrade Microsoft SQL Server 2000 to Microsoft SQL Server 2005 on the server with the Microsoft Dynamics CRM databases, as well as on the reporting server. Reports written in Microsoft SQL Server 2000 Reporting Services work on Microsoft SQL Server 2005.

If you upgrade your Reporting Services server, any snapshots that you created by using the Report Scheduling Wizard will be lost. To make sure that you do not lose this important data, before you upgrade, open each snapshot, and save it as a .pdf file.

However, if you are using the Microsoft Dynamics CRM Connector for Microsoft Dynamics GP, and the Microsoft Dynamics CRM databases and the Integration server are on the same computer that is running SQL Server, you cannot upgrade to SQL Server 2005. The Microsoft Dynamics CRM Connector for Microsoft Dynamics GP uses Microsoft BizTalk Server 2004, which does not support SQL Server 2005.

Q.Can I use Microsoft SQL Server 2000 Reporting Services to write reports for use with Microsoft SQL Server 2005?
A.

Yes. Using a product from the Microsoft Visual Studio .NET 2003 family, you can write reports using Reporting Services 2000, and then publish these reports to a Microsoft Dynamics CRM installation that uses SQL Server 2005 for its reporting server.

Q.Can I use SQL Server 2005 Reporting Services to write reports for use on SQL Server 2000?
A.

No.

Q.What version of Visual Studio do I need to use with Microsoft SQL Server 2000 Reporting Services and Microsoft SQL Server 2005 Reporting Services?
A.

To use SQL Server 2000 Reporting Services, you must use a product from the Microsoft Visual Studio .NET 2003 family.

To use SQL Server 2005 Reporting Services, you can use a product from the Visual Studio .NET 2005 family or you can use SQL Server 2005 Report Builder without using Visual Studio. You cannot use Visual Studio .NET 2003 with SQL Services 2005 Reporting Services.

Q.
A.

Installation and configuration issues

Q.How do I troubleshoot my reporting problem?
A.

If reports don’t work after installing Microsoft Dynamics CRM, use the following questions to determine what the problem might be. If the suggestions below don’t help, include the answers to the questions when you contact support to help them solve the problem more quickly.

Can you view a list of reports from the Reports area in Microsoft Dynamics CRM? If yes, Microsoft Dynamics CRM is able to access the report server. If you can view a list of reports, but get an error when you run a report from the server, the problem is occurring when Reporting Services is accessing the Microsoft Dynamics CRM database on the server running Microsoft SQL Server.

Is Reporting Services set up on the same server as Microsoft Dynamics CRM?

If you are connecting to an existing instance of Reporting Services, was the same account used to install Microsoft Dynamics CRM as Reporting Services?

Did you upgrade from Microsoft CRM 1.2, or is this a new installation of Microsoft Dynamics CRM?

Do reports work for the local administrator on the Microsoft Dynamics CRM server, but not for other users?

Do reports work from the server, but not from one or more client computers?

Are you using host headers or Secure Sockets Layer (SSL) on your Microsoft Dynamics CRM Web site or Reporting Services Web site?

Q.After installing Microsoft Dynamics CRM with Reporting Services on a different computer than the Microsoft Dynamics CRM server, why do I get an error when run a report from any client computer?
A.

For details on additional steps, download the article Additional Setup Tasks Required if Reporting Services Is Installed on Different Server.

Q.When I make a change to system settings, why aren't my changes saved?
A.

If changes you make and save in the System Settings dialog box aren't saved when you return to that dialog box, you may have an error in your Reporting Services Report Manager installation. This error occurs when all of the following conditions are met:

Microsoft Dynamics CRM and Microsoft SQL Server Reporting Services are installed on the same server

The server is running Windows Server 2003 or Microsoft Windows Small Business Server 2003

Domain user was specified on the Specify Security Account page when you installed Microsoft Dynamics CRM

To add the necessary permissions, make the following change in Reporting Services Report Manager.

1.

On the server running Microsoft Dynamics CRM, use Microsoft Internet Explorer to open Reporting Services Report Manager. By default, Report Manager is located at http://localhost/Reports. If you renamed the virtual directory for Report Manager when you installed Reporting Services, use the virtual directory name you used rather than Reports.

2.

Click Show Details.

3.

Click the icon in the Edit column next to the folder for your organization.

4.

Click Security.

5.

Click New Role Assignment.

6.

On the New Role Assignment page, in the Group or user name box, enter the value of the service account name for Microsoft ASP.NET:

For English locales, enter NT Authority\Network Service.

For other locales, open the setup log file with Notepad. By default, this file is located at <systemdrive>:\Documents and Settings\User\Application Data\Microsoft\MSCRM\Logs\crm30svrsetup.log

1.

Search for ServerInstallInfo.AspNetServiceAccountName.

2.

Look at the value in this line, and enter this value in the Group or user name box.

7.

Select the check box next to Publisher for Microsoft CRM.

8.

Click OK.

Q.After we upgraded to Microsoft Dynamics CRM 3.0, why do users get this error when they run reports? “An error has occurred during report processing. (rsProcessingAborted) Query execution failed for data set 'UserInfo'. (rsErrorExecutingCommand).”
A.

Microsoft CRM 1.2 uses the UserGroup group in Microsoft Active Directory to determine who has access to reports. Microsoft Dynamics CRM 3.0 uses the ReportingGroup group in Active Directory. Sometimes the upgrade process does not transfer the members of UserGroup group to the ReportingGroup group. To solve this problem, manually add your Microsoft Dynamics CRM users to the ReportingGroup in Active Directory.

Q.When I install Microsoft Dynamics CRM on Microsoft Windows Small Business Server 2003 with Microsoft Internet Security and Acceleration Server 2004 installed, why do I get an error? “The Web site for installing SQL Reporting Services was not found.”
A.

See Knowledge Base article 913518, Error message when you try to install Microsoft Dynamics CRM 3.0: “The Web site for installing SQL Reporting Services was not found”.

Q.When I try to add a report, modify report properties, or download reports, why do I get the error message “The permissions granted to user ‘NT AUTHORITY\NETWORK SERVICE’ are insufficient for performing this operation”?
A.

This problem can occur when Microsoft Dynamics CRM and Microsoft SQL Server 2000 Reporting Services are installed on the same server, and when that server is running either Microsoft Windows Small Business Server 2003 or Window Server 2003.

If you installed using a domain user account, to add the necessary permissions, make the following change in Reporting Services Report Manager.

1.

Open Reporting Services Report Manager. On the server running Microsoft Dynamics CRM, in Internet Explorer, open http://localhost/Reports. If you renamed the virtual directory for Report Manager when you installed Reporting Services, use the virtual directory name you used, rather than Reports.

2.

Click Show Details.

3.

Click the icon in the Edit column next to the folder for your organization.

4.

Click Security.

5.

Click New Role Assignment.

6.

On the New Role Assignment page, in the Group or user name box, enter the value of the service account name for Microsoft ASP.NET:

For English locales, enter NT Authority\Network Service.

For other locales, open the setup log file with Notepad. By default, this file is located at:

<systemdrive>:\Documents and Settings\User\Application Data\Microsoft\MSCRM\Logs\crm30svrsetup.log

Search for ServerInstallInfo.AspNetServiceAccountName

Look at the value in this line, and enter it in the Group or user name box.

7.

Select the check box next to Publisher for Microsoft CRM.

8.

Click OK.

Q.Why don't reports display in the Reports area of Microsoft Dynamics CRM?
A.

If reports don't display, but you don't get an error when you open the Reports area, the reports probably weren't published to the Report server. Run PublishReports.exe, as documented in Chapter 24 of the Microsoft CRM 3.0 Implementation Guide.

If the reports display in Reporting Services Report Manager, but don't display in Microsoft Dynamics CRM, and you used PublishReports.exe to publish them manually, you may have incorrectly specified the folder for the reports. The folder name must be the organization name you used when you installed Microsoft Dynamics CRM, with _MSCRM appended. For example, if you installed Microsoft Dynamics CRM using the organization name Adventure Works Cycle, the folder for Reporting Services must be Adventure Works Cycle_MSCRM.

Q.Why do I get a 401.1 error when I’m using host headers or the Secure Sockets Layer (SSL) protocol on the Microsoft SQL Server Reporting Services Web site?
A.

Host headers cannot be used on the Reporting Services Web site. Remove the host headers and any identities, such as the loopback address. For more information, see Knowledge Base article 896861, You receive error 401.1 when you browse a Web site that uses Integrated Authentication and is hosted on IIS 5.1 or IIS 6.

Q.Why do I receive the error “The request failed with HTTP status 401: Unauthorized” when I try to run a report?
A.

This error may occur when one or more of the following conditions are true:

Microsoft Dynamics CRM Server was not restarted after the installation was finished.

The time is set differently on the servers used for Microsoft Dynamics CRM, Microsoft SQL Server, Reporting Services Report Server, and the domain controller.

For information about how to resolve this problem, see Microsoft Knowledge Base article 907487, You receive a "The request failed with HTTP status 401: Unauthorized" error message when you try to view reports in Microsoft CRM 3.0.

If you receive this error on a custom report you uploaded, see Microsoft Knowledge Base article 921546, Error message when you try to run a report or upload a report in Microsoft Dynamics CRM 3.0: "The request failed with HTTP status 401: Unauthorized" or "Server Error in ‘/’ Application".

Q.Why do I receive the error “Server Error in ‘/’ Application. Exception of type Microsoft.Crm.CrmException was thrown” when I try to run a report?
A.

This problem occurs because the security account for the CRMAppPool application pool does not have the Publisher for Microsoft Dynamics CRM security role in Report Manager.

For information about how to resolve this problem, see Microsoft Knowledge Base article 921546, Error message when you try to run a report or upload a report in Microsoft Dynamics CRM 3.0: "The request failed with HTTP status 401: Unauthorized" or "Server Error in ‘/’ Application".

Q.
A.