Thursday, May 8, 2008

CRM 4.0 - Workflow Problem After Importing New Organization

Hi All,

After deleting or disabling an organization and import a new organization by using MS CRM 4.0 Deployment Manager, the workflow rules which had been created when the other organization was active may not work.
MS is currently aware of this issue and they will publish an hotfix for the issue (http://support.microsoft.com/kb/950680).

The error message which you may encounter is below:
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. 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.b__0(Object[] values) at Microsoft.Crm.Asynchronous.DataAccessBase.ExecuteSqlCommandAndProcessRecords(IDbCommand command, RecordProcessor recordProcessor) at Microsoft.Crm.Asynchronous.QueueDataAccess.SelectEvents(Int32 numberOfEvents)

As o solution, I recreated the workflows after importing the new organization. If you find an another solution could you please write it as a comment.




No comments: