Microsoft KB Archive/946543

= Error message when you upgrade Microsoft Dynamics CRM 3.0 to Microsoft Dynamics CRM 4.0: &quot;Unable to resolve related entity for report upgrade&quot; =

Article ID: 946543

Article Last Modified on 12/21/2007

-

APPLIES TO


 * Microsoft Dynamics CRM 4.0

-



Source: Microsoft Support

RAPID PUBLISHING
RAPID PUBLISHING ARTICLES PROVIDE INFORMATION DIRECTLY FROM WITHIN THE MICROSOFT SUPPORT ORGANIZATION. THE INFORMATION THAT IS CONTAINED HEREIN IS CREATED IN RESPONSE TO EMERGING OR UNIQUE TOPICS, OR IS INTENDED TO SUPPLEMENT OTHER KNOWLEDGE BASE INFORMATION.



SYMPTOMS
Consider the following scenario. In Microsoft Dynamics CRM 3.0, you create a custom entity. Then, you link a report to the entity. Next, you delete the entity. Finally, you upgrade Microsoft Dynamics CRM 3.0 to Microsoft Dynamics CRM 4.0. In this scenario, you receive the following error message in the CRM40Setup.log file:

| Error| Unable to resolve related entity for report upgrade. The entity may have been added then deleted without updating the report reference.

Report name: Activities Due, Entity logical name: activity

| Error| Unable to upgrade reports.System.NullReferenceException: Object reference not set to an instance of an object.

at Microsoft.Crm.Setup.Server.Utility.ReportUpgradeUtility.BuildRelatedEntitiesValue(String reportName, String relatedEntitiesXml, Guid organizationId)

at Microsoft.Crm.Reporting.ReportUpgradeServer.GetReportProperties(String reportName, String organizationName, Guid organizationId)

at Microsoft.Crm.Setup.Server.Utility.ReportUpgradeUtility.LoadReportProperties(ReportUpgradeServer reportUpgradeServer, Hashtable propertiesByName, String organizationName, Guid organizationId, String reportingGroup)

at Microsoft.Crm.Setup.Server.Utility.ReportUpgradeUtility.LoadReports(ReportUpgradeServer reportUpgradeServer, String organizationName, Guid organizationId, String reportingGroup)

at Microsoft.Crm.Setup.Server.Utility.ReportUpgradeUtility.UpgradeReportsFromVersion3(String organizationUniqueName, String organizationFriendlyName, String reportingGroup, Int32 languageCode, InstallInfo installInfo, IProgressEventSource progress)

at Microsoft.Crm.Setup.Server.RSUpgradeAction.Do(IDictionary parameters)



CAUSE
This problem occurs because a report is linked to an entity that does not exist.



RESOLUTION
To resolve this problem, manually upload the Microsoft Dynamics CRM 3.0 report that causes the problem after you upgrade to Microsoft Dynamics CRM 4.0. To do this, follow these steps:
 * 1) Click Workplace, click Reports, and then click New.
 * 2) In the Report Type list, click Existing File.
 * 3) Click Browse.
 * 4) Click the .rdl file for the report that causes the problem, and then click Open.
 * 5) Complete the required fields, and then click Save and Close.



DISCLAIMER
MICROSOFT AND/OR ITS SUPPLIERS MAKE NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY, THE RELIABILITY OR THE ACCURACY OF THE INFORMATION THAT IS CONTAINED IN THE DOCUMENTS AND THE RELATED GRAPHICS PUBLISHED ON THIS WEB SITE (THE “MATERIALS”) FOR ANY PURPOSE.

THE MATERIALS MAY INCLUDE TECHNICAL INACCURACIES OR TYPOGRAPHICAL ERRORS AND MAY BE REVISED AT ANY TIME WITHOUT NOTICE. TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, MICROSOFT AND/OR ITS SUPPLIERS DISCLAIM AND EXCLUDE ALL REPRESENTATIONS, WARRANTIES, AND CONDITIONS WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO REPRESENTATIONS, WARRANTIES, OR CONDITIONS OF TITLE, NON-INFRINGEMENT, SATISFACTORY CONDITION OR QUALITY, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, WITH RESPECT TO THE MATERIALS.

Keywords: kberrmsg kbexpertiseadvanced kbtshoot kbprb kbnomt kbexpertisebeginner kbmbsmigrate kbexpertiseinter kbmbsupgrade KB946543

-

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

© Microsoft Corporation. All rights reserved.