Saturday, January 31, 2009

Error message when you start Microsoft Dynamics CRM 4.0: "An error occurred loading Microsoft Dynamics CRM functionality"

SYMPTOMS
When you run one of the Microsoft Dynamics CRM programs that are listed in the "Applies to" section, you receive the following error message: 
 "An error occurred loading Microsoft Dynamics CRM functionality. Try restarting Microsoft Outlook. Contact your system administrator if errors persist."

Additionally, you receive error messages that resemble the following error messages:

In the Microsoft.Crm.Application.Hoster log file: 
>MSCRM Error Report:
------------------------------------------------------------------------ 
Error: Server was unable to process request. 
Error Number: 0x80040220 
Error Msg: SecLib::CrmCheckPrivilege failed. Returned hr = -2147220960 on UserId: 5ba13d12-846b-dc11-beb1-00188b44dd1f and PrivilegeId: 588725dd-c878-41c5-a4c3-5efc93cd3ffd 
Source File: Not available 
Line Number: Not available

In the Application log: 
Event Type: Error 
Event Source: MSCRMAddin 
Event Category: None 
Event ID: 5903 
Date: date
Time: time
User: N/A 
Computer: computer_name
Description: The Microsoft CRM Outlook add-in could not be initialized correctly. Restart Microsoft Outlook and try again. HR=0x80070057. Context=. Function=CAddin::OnConnection. Line=196. 

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp. 
Event Type: Error 
Event Source: MSCRMAddin 
Event Category: None 
Event ID: 16930 
Date: date
Time: time
User: N/A 
Computer: computer_name
Description: Initialization of the Microsoft CRM UI failed. Try restarting Microsoft Outlook. HR=0x80004005. Context=. Function=CAddin::HrActivateAddin. Line=665. 

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp. 
Event Type: Error 
Event Source: MSCRMAddin 
Event Category: None 
Event ID: 5907 
Date: date
Time: time
User: N/A 
Computer: computer_name
Description: Microsoft CRM custom folders could not be loaded into Microsoft Outlook. Restart Microsoft Outlook and try again. HR=0x80004005. Context=. Function=CAddin::HrInitializeUI. Line=132. 

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp. 
Event Type: Error 
Event Source: MSCRMAddin 
Event Category: None 
Event ID: 5942 
Date: date
Time: time
User: N/A 
Computer: computer_name
Description: Microsoft CRM could not add a folder to Microsoft Outlook. Restart Microsoft CRM and try again. Microsoft CRM may need to be repaired or reinstalled. HR=0x80020009. Context=. Function=CFolderModifier::InsertNode. Line=152.

CAUSE
This problem may occur when a custom entity and a site map entry have the same name.

RESOLUTION
To resolve this problem, use one of the following methods.

Method 1

Change the plural name of the custom entity. To do this, follow these steps:
  1. Start Microsoft Dynamics CRM.
  2. In the navigation pane, click Settings, click Customization, and then click Customize Entities
  3. Double-click the entity that has the same name as a site map entry.
  4. In the Plural Name box, type a new name that you want to use for the entity.
  5. Click Actions, click Publish, and then click Save and Close.
  6. Restart Microsoft Dynamics CRM.
Method 2

Change the title in the site map to a name that differs from the name of the custom entity. To do this, follow these steps:

  1. Start Microsoft Dynamics CRM.
  2. In the navigation pane, click Settings, click Customization, and then click Export Customizations.
  3. In the Export Customizations list, click Site Map, click Export Selected Customizations, and then click OK.
  4. Click Save. When you are prompted, save the file to a location on the computer, and then click Save.
  5. Extract the Customizations.xml file, and then open the .xml file in Notepad. The Customizations.xml file is saved in a .compressed file that has a .zip file name extension in the location that you specified in step 4.
  6. On the Edit menu, click Find. Search for the name that is the same as the custom entity, and then change the name so that it differs from the name of the custom entity.
  7. On the File menu, click Save, and then exit Notepad.
  8. In the navigation pane, click Settings, click Customization, and then click Import Customizations.
  9. Click Browse, locate and then select the file that you edited in step 6, and then click Open.
  10. Click Upload, and then click Import Selected Customizations.
  11. Restart Microsoft Dynamics CRM.

No comments: