Microsoft KB Archive/939867

= You may receive an error message when you try to upload a customized report to Microsoft Dynamics CRM 3.0 or to SQL Server Reporting Services or when you try to modify the report in Visual Studio Report Designer =

Article ID: 939867

Article Last Modified on 10/26/2007

-

APPLIES TO


 * Microsoft Dynamics CRM 3.0

-



Symptom 1
Consider the following scenario in Microsoft Dynamics CRM 3.0. You download a customized report that contains Microsoft Dynamics CRM Pre-Filtering code. Then, you try to upload the report to Microsoft Dynamics CRM 3.0. In this scenario, you receive the following error message:

Error Uploading Report

An error occurred while trying to add the report to Microsoft CRM. Try adding the report again. If the problem continues, contact your system administrator.

The CRM Platform error is

Exception of type Microsoft.Crm.CrmException was thrown. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: Microsoft.Crm.CrmException: Exception of type Microsoft.Crm.CrmException was thrown.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[CrmException: Exception of type Microsoft.Crm.CrmException was thrown.]

Microsoft.Crm.Application.Platform.Report.InternalCreate(String xml) +721

Microsoft.Crm.Application.Platform.Entity.Create +109

Microsoft.Crm.Application.Forms.AppForm.RaiseDataEvent(FormEventId eventId) +406

Microsoft.Crm.Application.Forms.EndUserForm.Initialize(Entity entity) +57

Microsoft.Crm.Application.Forms.EndUserForm.Execute(Entity entity) +13

Microsoft.Crm.Web.Tools.ReportProperty.ReportPropertyPage.ConfigureForm +202

Microsoft.Crm.Application.Controls.AppPage.OnPreRender(EventArgs e) +30

System.Web.UI.Control.PreRenderRecursiveInternal +62

System.Web.UI.Page.ProcessRequestMain +1499

This problem occurs if you use Microsoft SQL Server 2005 Reporting Services (SSRS) in Microsoft Dynamics CRM.

Symptom 2
Consider the following scenario in Microsoft Dynamics CRM 3.0. You download a customized report that contains Microsoft Dynamics CRM Pre-Filtering code. Then, you try to upload the report directly to Reporting Services or you try to modify the report in Microsoft Visual Studio Report Designer. In this scenario, you receive the following error message:

Deserialization failed:

The element 'Report' in namespace 'http://schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinition' has invalid child element 'Custom' in namespace 'http://schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinition'. List of possible elements expected: 'http://schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinition:Description http://schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinition:Author http://schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinition:AutoRefresh http://schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinition:DataSources http://schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinition:DataSets http://schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinition:Body http://schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinition:ReportParameters http://schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinition:Code http://schemas.microsoft.com/sqlserver/reporting/2005/... Line 56, position 2034.



CAUSE
This problem occurs because the downloaded report was formatted incorrectly. The report contains the appended Microsoft Dynamics CRM Pre-Filtering code for the SQL Server 2003 Reporting Services schema or for the SQL Server 2000 Reporting Services schema. The SQL Server 2003 Reporting Services schema and the SQL Server 2000 Reporting Services schema use the  tag for pre-filtering. The SQL 2005 Reporting Services schema contains new schema definitions. The new schema definitions do not use the  tag when you re-upload the report. Therefore, Microsoft Dynamics CRM cannot validate the XML code in the report.



RESOLUTION
To resolve this problem, modify the report to use the correct format. To do this, use the appropriate method:
 * If the server was not restarted, you are in the original environment. Use Method 1 to resolve this problem.
 * If the server was restarted, you are not in the original environment. Therefore, you cannot apply the hotfix that is mentioned in Method 1. In this case, if you must upload the report to the new environment, use Method 2 to resolve this problem.

Note For example, you exported the report as part of a backup plan. Later, the computer that is running Reporting Services crashed. After the computer that is running Reporting Services is re-created, you are no longer in the original environment. Therefore, you cannot apply the hotfix. You must modify the report to use the Report Definition Language (RDL) 2005 tags.

Hotfix information
A supported hotfix is now available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next Microsoft Dynamics CRM 3.0 service pack that contains this hotfix.

To resolve this problem, submit a request to Microsoft Online Customer Services to obtain the hotfix. To submit an online request to obtain the hotfix, visit the following Microsoft Web site:

http://go.microsoft.com/?linkid=6294451

Note If additional issues occur or any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. To create a separate service request, visit the following Microsoft Web site:

http://support.microsoft.com/contactus/?ws=support

File information
The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.

Microsoft Dynamics CRM 3.0 server

Microsoft Dynamics CRM 3.0 laptop client for Microsoft Office Outlook Compatibility Update

Microsoft Dynamics CRM 3.0 laptop client for Microsoft Office Outlook

After you apply the hotfix to Microsoft Dynamics CRM, the report will be formatted correctly.

Installation information
Install this hotfix on computers that are running the Microsoft Dynamics CRM 3.0 server and the Microsoft Dynamics CRM 3.0 client for Microsoft Office Outlook.

Prerequisites
You must have the Microsoft Dynamics CRM 3.0 server and the Microsoft Dynamics CRM 3.0 client for Microsoft Office Outlook installed to apply this hotfix.

Restart requirement
If you are prompted, restart the computer after you apply the hotfix.

Removal information
To remove this hotfix from a computer that is running Windows Server 2003, Windows XP, or Microsoft Windows 2000, use Add or Remove Programs in Control Panel. System administrators can use the Spuninst.exe tool to remove this hotfix from a computer that is running Windows Server 2003, Windows XP, or Microsoft Windows 2000.

The Spuninst.exe tool is located in the %Windir%\$NTUninstallKB939867$\Spuninst folder.

Method 2
To resolve this problem, modify the report to use the RDL 2005 tags instead of the RDL 2003 tags in XML. To do this, follow these steps:  Open the report by using Notepad or by using a rich text XML editor.  Locate the CRM Pre-Filtering section in the report. Replace the existing code with the replacement code as follows.

Existing code  < fetch version=&quot;1.0&quot; output-format=&quot;xml-platform&quot; mapping=&quot;logical&quot; distinct=&quot;false&quot;>< filter type=&quot;and&quot;>  </ReportEntity></ReportFilter></MSCRM> </Custom> Replacement code <CustomProperties> <CustomProperty> <Name></Name> <Value></Value> <MSCRM xmlns=&quot;mscrm&quot;><ReportFilter><ReportEntity paramname=&quot;P1&quot;>< fetch version=&quot;1.0&quot; output-format=&quot;xml-platform&quot; mapping=&quot;logical&quot; distinct=&quot;false&quot;><entity name=&quot;account&quot;><all-attributes />< filter type=&quot;and&quot;><condition attribute=&quot;modifiedon&quot; operator=&quot;last-x-days&quot; value=&quot;30&quot; />  </ReportEntity></ReportFilter></MSCRM> </CustomProperty> </CustomProperties> Notes <ul>  In this code, the following tags are added. SQL Server 2005 Reporting Services requires these tags. <Name></Name> <Value></Value> </li>  In this code, the following SQL Server 2003 Reporting Services tags are modified to be SQL Server 2005 Reporting Services tags. <Custom> ... </Custom> </li></ul> </li></ol>

<div class="moreinformation_section">

MORE INFORMATION
For more information about software update terminology, click the following article numbers to view the articles in the Microsoft Knowledge Base:

824684 Description of the standard terminology that is used to describe Microsoft software updates

887283 Microsoft Business Solutions CRM software hotfix and update package naming standards

Keywords: kbmbsreports kbhotfixserver kbqfe kbmbsmigrate kbpubtypekc KB939867

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.