The workflow rules no longer run when you use the Deployment Manager Import Organization Wizard to import an organization in Microsoft Dynamics CRM 4.0
On This PageSYMPTOMSIn Microsoft Dynamics CRM 4.0., you disable and then delete an organization. When you use the Deployment Manager Import Organization Wizard to import an organization, the workflow rules no longer run.
Additionally, the following error message is logged in the event viewer:
Received SQL Exception accessing organization {B0C47547-14B8-DC11-AFCA-0013724BA161}. Exception: Microsoft.Crm.Metadata.EntityMetadataNotFoundException: The entity with ObjectTypeCode = 0 was not found in the MetadataCache.
If you view the AsyncOperationBase table and the BulkDeleteFailureBase table in the organization database that you imported, you notice that all values in the RegardingObjectId column are a GUID that is used for the organizationid identifier of the organization database.
at Microsoft.Crm.Metadata.DynamicMetadataCache.GetEntity(Int32 entityCode) at Microsoft.Crm.Asynchronous.QueueDataAccess.GetEntityLogicalNameFromObjectTypeCode(Int32 objectTypeCode) at Microsoft.Crm.Asynchronous.QueueDataAccess.GetLookup(Object objectId, String objectIdName, Int32 objectDsc, Int32 objectTypeCode) at Microsoft.Crm.Asynchronous.QueueDataAccess.<>c__DisplayClass2.<SelectEvents>b__0(Object[] values) at Microsoft.Crm.Asynchronous.DataAccessBase.ExecuteSqlCommandAndProcessRecords(IDbCommand command, RecordProcessor recordProcessor) at Microsoft.Crm.Asynchronous.QueueDataAccess.SelectEvents(Int32 numberOfEvents) CAUSEThis problem occurs because the AsyncOperationbase table is updated incorrectly when you import an organization. RESOLUTION A supported hotfix is 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 software update that contains this hotfix. If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, contact Microsoft Customer Service and Support to obtain the hotfix. Note If additional issues occur or if 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. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft Web site: http://support.microsoft.com/contactus/?ws=support (http://support.microsoft.com/contactus/?ws=support) Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.If you have imported an organization before you apply this hotfix, you can contact Microsoft Dynamics CRM Support to obtain more information about additional steps that are required to apply this hotfix.File informationThe 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 4.0 server, i386-based version
Microsoft Dynamics CRM 4.0 server, x64-based version
Installation informationInstall this hotfix on computers that are running the Microsoft Dynamics CRM 4.0 server components.PrerequisitesYou must have Microsoft Dynamics CRM 4.0 installed to apply this hotfix.Restart requirementIf you are prompted to restart the computer, you must restart the computer after you apply this hotfix.Removal informationTo remove this hotfix from a computer that is running Windows Server 2003, Windows XP, or Windows 2000, use Add or Remove Programs in Control Panel.MORE INFORMATIONFor more information about the terminology that is used to describe Microsoft software updates, click the following article numbers to view the articles in the Microsoft Knowledge Base:
824684 (http://support.microsoft.com/kb/824684/)Description of the standard terminology that is used to describe Microsoft software updates 887283 (http://support.microsoft.com/kb/887283/) Microsoft Business Solutions CRM software hotfix and update package naming standards
| Article Translations
|

Back to the top
