locked
CRM 2011 Organization Import Failed on UpgradeWorkflowActivitesAction RRS feed

  • Question

  • I'm using CRM 2011 Import Organization wizard to import a CRM 4 organization database.  I've successfully imported one organization, but I have two tenents and am failing to import the second organization.   The second organization is for France, and uses the French language pack, which I have installed on CRM 2011 after I installed Rollup Packs 1 and 2.

    The error I am receiving is:

    Action Microsoft.Crm.Tools.Admin.UpgradeWorkflowActivitesAction failed.
    businessunit With Id = 94346682-5b1a-de11-ba46-001a4bff4341 Does Not Exist.

    An observation about this GUID, is it is the OrganizationID for the organization I am trying to import.  It is not a businessUnitId, but if I Select * from dbo.Organization Where OrganizationId = '94346682-5b1a-de11-ba46-001a4bff4341' I get 1 record back for the French organizations.  I noticed that by looking at the businessUnit table for this Id.  None of them had that Id, but all of them were associated with this Id in the OrganizationId column.

    Can you offer any suggestions as to what's going on in the UpdateWorkflowActivitiesAction and what may be wrong with my source database?

    My guess is that this is not related to a customization.  And the error message seems confusing since it appears to be looking for a BusinessUnitId using an OrganizationId.

    This is the full error log message where the error occurs:

    16:49:25|  Error| UpgradeWorkflowActivitiesAction: Exception occurredMicrosoft.Crm.BusinessEntities.CrmObjectNotFoundException: businessunit With Id = 94346682-5b1a-de11-ba46-001a4bff4341 Does Not Exist
       at Microsoft.Crm.BusinessEntities.BusinessProcessObject.Retrieve(BusinessEntityMoniker moniker, EntityExpression entityExpression, ExecutionContext context, Int32 languageCode, DatabaseQueryTarget queryTarget)
       at Microsoft.Crm.BusinessEntities.BusinessProcessObject.Retrieve(BusinessEntityMoniker moniker, EntityExpression entityExpression, ExecutionContext context, Int32 languageCode)
       at Microsoft.Crm.BusinessEntities.BusinessProcessObject.Retrieve(BusinessEntityMoniker moniker, EntityExpression entityExpression, ExecutionContext context)
       at Microsoft.Crm.Caching.BusinessDataCacheLoader.LoadCacheData(Guid key, ExecutionContext context)
       at Microsoft.Crm.Caching.ObjectModelCacheLoader`2.LoadCacheData(TKey key, IOrganizationContext context)
       at Microsoft.Crm.Caching.CrmMultiOrgCache`2.CreateEntry(TKey key, IOrganizationContext context)
       at Microsoft.Crm.Caching.CrmMultiOrgCache`2.LookupEntry(TKey key, IOrganizationContext context)
       at Microsoft.Crm.BusinessEntities.SecurityLibrary.IsInBusinessDeep(Guid rootBusinessId, Guid businessId, IOrganizationContext context)
       at Microsoft.Crm.BusinessEntities.SecurityLibrary.TryGetMaxPrivilegeDepthForPrivilegeSet(RolePrivilege[] privilegeSet, Guid privilege, Guid rootBusinessUnitId, Guid businessUnitId, ExecutionContext context)
       at Microsoft.Crm.BusinessEntities.SecurityLibrary.TryGetMaxPrivilegeDepthForPrincipal(ISecurityPrincipal userOrTeam, Guid privilege, Guid businessUnitId, ExecutionContext context)
       at Microsoft.Crm.BusinessEntities.SecurityLibrary.GetRoleAccessRights(ISecurityPrincipal userOrTeam, EntityMetadata entity, AccessRights rights, AccessRights grantedRights, Int32 minimumDepth, Guid objectBusinessUnitId, ExecutionContext context)
       at Microsoft.Crm.BusinessEntities.SecurityLibrary.AccessCheckInternal(ExecutionContext context, SecurityPrincipal principal, SecurityPrincipal ownerPrincipal, Guid objectId, Int32 objectTypeCode, Guid objectBusinessUnitId, AccessRights rights, Boolean retrievedAccessRights, AccessRights poaAccessRights)
       at Microsoft.Crm.BusinessEntities.SecurityLibrary.AccessCheckEx(ExecutionContext context, SecurityPrincipal ownerPrincipal, Guid objectId, Int32 objectTypeCode, Guid objectBusinessUnitId, AccessRights rights)
       at Microsoft.Crm.BusinessEntities.SecurityLibrary.AccessCheckEx(ExecutionContext context, SecurityAttributes attributes, AccessRights rights)
       at Microsoft.Crm.BusinessEntities.SecurityExtension.PostRetrieveHandler(Object sender, ExtensionEventArgs e)
       at Microsoft.Crm.BusinessEntities.BusinessProcessObject.Retrieve(BusinessEntityMoniker moniker, EntityExpression entityExpression, ExecutionContext context, Int32 languageCode, DatabaseQueryTarget queryTarget)
       at Microsoft.Crm.BusinessEntities.BusinessProcessObject.Retrieve(BusinessEntityMoniker moniker, EntityExpression entityExpression, ExecutionContext context, Int32 languageCode)
       at Microsoft.Crm.BusinessEntities.BusinessProcessObject.Retrieve(BusinessEntityMoniker moniker, EntityExpression entityExpression, ExecutionContext context)
       at Microsoft.Crm.Extensibility.ObjectModelPluginDescriptionProvider.GetPluginTypeDescription(Guid pluginTypeId, IOrganizationContext context)
       at Microsoft.Crm.Caching.PluginTypeCacheLoader.LoadCacheData(Guid key, IOrganizationContext context)
       at Microsoft.Crm.Caching.CrmMultiOrgCache`2.CreateEntry(TKey key, IOrganizationContext context)
       at Microsoft.Crm.Caching.CrmSharedMultiOrgCache`2.LookupEntry(TKey key, IOrganizationContext context)
       at Microsoft.Crm.Tools.Admin.UpgradeWorkflowActivitiesAction.CustomActivityData.LoadActivityParameters()
       at Microsoft.Crm.Tools.Admin.UpgradeWorkflowActivitiesAction.CustomActivityData.get_ActivityName()
       at Microsoft.Crm.Tools.Admin.UpgradeWorkflowActivitiesAction.MarshalByRefWorkflowActivityAction.UpgradeCustomActivityBatch(Int32 batchSize, Guid organizationId)
       at Microsoft.Crm.Tools.Admin.UpgradeWorkflowActivitiesAction.MarshalByRefWorkflowActivityAction.UpgradeCustomActivityBatch(Int32 batchSize, Guid organizationId)
       at Microsoft.Crm.Tools.Admin.UpgradeWorkflowActivitiesAction.Upgrade(Guid organizationId)

     

     

     

    Tuesday, August 30, 2011 9:20 PM