locked
SYSTEM user don't have access rights for business process flow RRS feed

  • Question

  • Hello!

    Can you try to help me with my problem, please?

    So, I configured BPF on my custom entity in CRM 365. I try to change the active stage of my BPF automatically via standard process for BPF. My process owned by system admin and I logged in system as a system admin too.

    I have 3 steps in my process:

    1st: checks if the field on my custom entity has the value, that triggers the process

    2nd: if value is ok - changes active stage of my BPF

    3rd: changes the statuscode of my custom entity.

    And on the 2nd step my problem happens - SYSTEM user don't have Create rights and my process fails.

    I would really appreciate any help or suggestions.

    The error log is:

    SecLib::AccessCheckEx failed. Returned hr = -2147187962, ObjectID: 00000000-0000-0000-0000-000000000000, OwnerId: e58ff19c-af0b-46d9-8197-d7543ab9c1a1,  OwnerIdType: 8 and CallingUser: fc565838-0e3b-e711-80e8-001dd8b71d1a. ObjectTypeCode: 2500, objectBusinessUnitId: ca35da6f-043b-e711-80e8-001dd8b71d1a, AccessRights: CreateAccess 


    OwnerId: e58ff19c-af0b-46d9-8197-d7543ab9c1a1 = SYSTEM

    Plugin Trace:

    Plugin Trace:

    [Microsoft.Xrm.Sdk.Workflow: Microsoft.Xrm.Sdk.Workflow.Activities.UpdateEntity]
    [UpdateStep4]


    [Microsoft.Crm.ObjectModel: Microsoft.Crm.ObjectModel.GlobalActiveStagePlugin]
    [bb48066e-f22f-412f-a530-91f72e4b859b: GlobalActiveStagePlugin]




    Error Message:

    Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: SecLib::AccessCheckEx failed. Returned hr = -2147187962, ObjectID: 00000000-0000-0000-0000-000000000000, OwnerId: e58ff19c-af0b-46d9-8197-d7543ab9c1a1,  OwnerIdType: 8 and CallingUser: fc565838-0e3b-e711-80e8-001dd8b71d1a. ObjectTypeCode: 2500, objectBusinessUnitId: ca35da6f-043b-e711-80e8-001dd8b71d1a, AccessRights: CreateAccess Detail: 
    <OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">
      <ActivityId>c968a81a-83c9-41dc-b7a9-94f00b98a19e</ActivityId>
      <ErrorCode>-2147187962</ErrorCode>
      <ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
      <Message>SecLib::AccessCheckEx failed. Returned hr = -2147187962, ObjectID: 00000000-0000-0000-0000-000000000000, OwnerId: e58ff19c-af0b-46d9-8197-d7543ab9c1a1,  OwnerIdType: 8 and CallingUser: fc565838-0e3b-e711-80e8-001dd8b71d1a. ObjectTypeCode: 2500, objectBusinessUnitId: ca35da6f-043b-e711-80e8-001dd8b71d1a, AccessRights: CreateAccess </Message>
      <Timestamp>2017-06-08T08:42:45.6455644Z</Timestamp>
      <ExceptionSource i:nil="true" />
      <InnerFault>
        <ActivityId>c968a81a-83c9-41dc-b7a9-94f00b98a19e</ActivityId>
        <ErrorCode>-2147187962</ErrorCode>
        <ErrorDetails xmlns:d3p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
        <Message>SecLib::AccessCheckEx failed. Returned hr = -2147187962, ObjectID: 00000000-0000-0000-0000-000000000000, OwnerId: e58ff19c-af0b-46d9-8197-d7543ab9c1a1,  OwnerIdType: 8 and CallingUser: fc565838-0e3b-e711-80e8-001dd8b71d1a. ObjectTypeCode: 2500, objectBusinessUnitId: ca35da6f-043b-e711-80e8-001dd8b71d1a, AccessRights: CreateAccess </Message>
        <Timestamp>2017-06-08T08:42:45.6455644Z</Timestamp>
        <ExceptionSource i:nil="true" />
        <InnerFault>
          <ActivityId>c968a81a-83c9-41dc-b7a9-94f00b98a19e</ActivityId>
          <ErrorCode>-2147187962</ErrorCode>
          <ErrorDetails xmlns:d4p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
          <Message>SecLib::AccessCheckEx failed. Returned hr = -2147187962, ObjectID: 00000000-0000-0000-0000-000000000000, OwnerId: e58ff19c-af0b-46d9-8197-d7543ab9c1a1,  OwnerIdType: 8 and CallingUser: fc565838-0e3b-e711-80e8-001dd8b71d1a. ObjectTypeCode: 2500, objectBusinessUnitId: ca35da6f-043b-e711-80e8-001dd8b71d1a, AccessRights: CreateAccess </Message>
          <Timestamp>2017-06-08T08:42:45.6455644Z</Timestamp>
          <ExceptionSource i:nil="true" />
          <InnerFault i:nil="true" />
          <OriginalException i:nil="true" />
          <TraceText i:nil="true" />
        </InnerFault>
        <OriginalException i:nil="true" />
        <TraceText i:nil="true" />
      </InnerFault>
      <OriginalException i:nil="true" />
      <TraceText>[Microsoft.Xrm.Sdk.Workflow: Microsoft.Xrm.Sdk.Workflow.Activities.UpdateEntity]
    [UpdateStep4]


    [Microsoft.Crm.ObjectModel: Microsoft.Crm.ObjectModel.GlobalActiveStagePlugin]
    [bb48066e-f22f-412f-a530-91f72e4b859b: GlobalActiveStagePlugin]

    </TraceText>
    </OrganizationServiceFault>
       в Microsoft.Crm.Workflow.Services.UpdateActivityService.Execute(ActivityContext executionContext, UpdateEntity updateEntity)
       в System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
       в System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)

    Thank you in advance!

    Thursday, June 8, 2017 8:56 AM