Hi all,
At a client I have a problem with a workflow that runs every hour. The set-up is as follows:
- custom entity with a name field, next run date and last run date
- Workflow
- Child workflows.
The workflow is as follows:
- runs on create of the custom entity and on change of one of the fields (Next run date and last run date).
- The workflow starts with a timeout of 1 hour. Then it will update the Last Run Date OR if the Next run date date is equal to Timeout then run the 3 child workflows and update the fields again.
See here a printscreen of the workflow:
![]()
If we run it manually it will work but when we push it to another environment and a deployment step is making the record on the custom entity (to start the workflow) it will break down after a few times.
The error is as follows:
Failed to get priv user group information. k = d7536106-6a44-e711-80e0-001dd8b80cd3 privUserGroupId: d342836d-a1c5-4dd2-9bb6-34b178a5e839, localSystemAdGuid: 75bbf536-e583-4fc6-be17-4e590051e9e3, Exception: System.Runtime.InteropServices.COMException (0x800706BE): The remote procedure call failed. (Exception from HRESULT: 0x800706BE)
at Microsoft.Crm.Tools.ActiveDsWrapper.NameTranslateClass.Init(Int32 lnSetType, String bstrADsPath)
at Microsoft.Crm.ADNameUtility.Rfc1779NameFromGuid(Guid guid)
at Microsoft.Crm.SecurityUtils.BuildLdapPath(Guid adGuid)
at Microsoft.Crm.SecurityUtils.CheckMembership(Guid principalId, Guid groupId)
at Microsoft.Crm.Caching.OrganizationSettingsCacheLoader.LoadCacheData(Guid key, ExecutionContext context).
and
Unhandled Exception: Microsoft.Crm.CrmException: Failed to get priv user group information. k = d7536106-6a44-e711-80e0-001dd8b80cd3 privUserGroupId: d342836d-a1c5-4dd2-9bb6-34b178a5e839, localSystemAdGuid: 75bbf536-e583-4fc6-be17-4e590051e9e3, Exception: System.Runtime.InteropServices.COMException (0x800706BE): The remote procedure call failed. (Exception from HRESULT: 0x800706BE)
at Microsoft.Crm.Tools.ActiveDsWrapper.NameTranslateClass.Init(Int32 lnSetType, String bstrADsPath)
at Microsoft.Crm.ADNameUtility.Rfc1779NameFromGuid(Guid guid)
at Microsoft.Crm.SecurityUtils.BuildLdapPath(Guid adGuid)
at Microsoft.Crm.SecurityUtils.CheckMembership(Guid principalId, Guid groupId)
at Microsoft.Crm.Caching.OrganizationSettingsCacheLoader.LoadCacheData(Guid key, ExecutionContext context).
at Microsoft.Crm.Caching.OrganizationSettingsCacheLoader.LoadCacheData(Guid key, ExecutionContext context)
at Microsoft.Crm.Caching.ObjectModelCacheLoader`2.LoadCacheData(TKey key, IOrganizationContext context)
at Microsoft.Crm.Caching.CrmMultiOrgCacheBase`2.CreateEntry(TKey key, IOrganizationContext context)
at Microsoft.Crm.Caching.CrmMultiOrgCacheBase`2.LookupEntry(TKey key, IOrganizationContext context)
at Microsoft.Crm.BusinessEntities.SecurityLibrary.GetPrivilegedUserCallerAndBusinessGuidsFromThread(WindowsIdentity identity, IOrganizationContext context)
at Microsoft.Crm.BusinessEntities.SecurityLibrary.GetCallerAndBusinessGuidsFromThread(WindowsIdentity identity, Guid organizationId, LocatorServiceContext locatorServiceContext)
at Microsoft.Crm.Extensibility.InternalSdkContextInitializer.SetHttpContext(WindowsIdentity windowsIdentity, Guid organizationId, Guid callerId)
at Microsoft.Crm.Extensibility.InprocessServiceProxy.RetrieveCore(String entityName, Guid id, ColumnSet columnSet)
at Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy.Retrieve(String entityName, Guid id, ColumnSet columnSet)
at Microsoft.Crm.Workflow.WorkflowLoader.LoadWorkflow(Guid workflowActivationId, IOrganizationContext context)
at Microsoft.Crm.Caching.WorkflowActivationCacheLoader.LoadCacheData(Guid key, IOrganizationContext context)
at Microsoft.Crm.Caching.CrmMultiOrgCacheBase`2.CreateEntry(TKey key, IOrganizationContext context)
at Microsoft.Crm.Caching.CrmMultiOrgCache`2.CreateAndAddEntryCallback(String itemkey, TValue value, IOrganizationContext context, Object parameter)
at Microsoft.Crm.CrmCache`1.AddEntry(String key, TValue value, IOrganizationContext context, AddEntryCallback`1 callback, Object callbackParameter)
at Microsoft.Crm.Caching.CrmMultiOrgCache`2.CreateAndAddEntryWithLock(TKey key, IOrganizationContext context)
at Microsoft.Crm.Caching.CrmMultiOrgCacheBase`2.LookupEntry(TKey key, IOrganizationContext context)
at Microsoft.Crm.Workflow.ActivityHostBase.StartWorkflow(ICommonWorkflowContext context)
Inner Exception: System.Runtime.InteropServices.COMException: The remote procedure call failed. (Exception from HRESULT: 0x800706BE)
at Microsoft.Crm.Tools.ActiveDsWrapper.NameTranslateClass.Init(Int32 lnSetType, String bstrADsPath)
at Microsoft.Crm.ADNameUtility.Rfc1779NameFromGuid(Guid guid)
at Microsoft.Crm.SecurityUtils.BuildLdapPath(Guid adGuid)
at Microsoft.Crm.SecurityUtils.CheckMembership(Guid principalId, Guid groupId)
at Microsoft.Crm.Caching.OrganizationSettingsCacheLoader.LoadCacheData(Guid key, ExecutionContext context)
We did the following checks already:
The user has access to the groups in AD with the correct permissions etc. On other workflows this problem does not occur. Async server is running and restarting this server did not do the trick :(
Any suggestions? Please let me know! Thanks in advance!