locked
Workflow activity is in waiting status. RRS feed

  • Question

  • Some of the Custom Workflow Activities are in the CRM are in waiting status. While looking at the reason for waiting. Found the following error message.

    Workflow paused due to error: Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: SecLib::AccessCheckEx failed. Returned hr = -2147187962, ObjectID: a91a64cb-1756-e211-a480-3cd92b095be2, OwnerId: 6bd5d0c2-b772-e111-87db-3cd92b095be4,  OwnerIdType: 8 and CallingUser: 01d7d0c2-b772-e111-87db-3cd92b095be4. ObjectTypeCode: 4200, objectBusinessUnitId: 935a2615-6321-e111-abd4-3cd92b095be4, AccessRights: ReadAccess Detail:
    <OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">
      <ErrorCode>-2147187962</ErrorCode>
      <ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
      <Message>SecLib::AccessCheckEx failed. Returned hr = -2147187962, ObjectID: a91a64cb-1756-e211-a480-3cd92b095be2, OwnerId: 6bd5d0c2-b772-e111-87db-3cd92b095be4,  OwnerIdType: 8 and CallingUser: 01d7d0c2-b772-e111-87db-3cd92b095be4. ObjectTypeCode: 4200, objectBusinessUnitId: 935a2615-6321-e111-abd4-3cd92b095be4, AccessRights: ReadAccess </Message>
      <Timestamp>2013-01-04T02:38:23.6956104Z</Timestamp>
      <InnerFault>
        <ErrorCode>-2147187962</ErrorCode>
        <ErrorDetails xmlns:d3p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
        <Message>SecLib::AccessCheckEx failed. Returned hr = -2147187962, ObjectID: a91a64cb-1756-e211-a480-3cd92b095be2, OwnerId: 6bd5d0c2-b772-e111-87db-3cd92b095be4,  OwnerIdType: 8 and CallingUser: 01d7d0c2-b772-e111-87db-3cd92b095be4. ObjectTypeCode: 4200, objectBusinessUnitId: 935a2615-6321-e111-abd4-3cd92b095be4, AccessRights: ReadAccess </Message>
        <Timestamp>2013-01-04T02:38:23.6956104Z</Timestamp>
        <InnerFault i:nil="true" />
        <TraceText i:nil="true" />
      </InnerFault>
      <TraceText i:nil="true" />
    </OrganizationServiceFault>
       at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.Create(Entity entity, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType)
       at Microsoft.Crm.Extensibility.InprocessServiceProxy.CreateCore(Entity entity)
       at Leo_WorkflowActivity.WorkflowActivity.Execute(CodeActivityContext context)
       at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
       at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)

    Is this because of the security privileges ? If so, please advice on how to rectify this.

    Sunday, January 6, 2013 1:48 PM

Answers

  • Hi, this looks like the owner of the workflow doesn't have read privileges on the Activity it is trying to update - probably because the activity has been assigned to someone in different business unit, and the user doesn't have org level privileges. The object type code 4200 is ActivityPointer.


    Scott Durow
    Read my blog: www.develop1.net/public     Follow Me on Twitter
    If this post answers your question, please click "Mark As Answer" on the post and "Mark as Helpful"

    Sunday, January 6, 2013 3:47 PM
    Answerer