web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Business Process Error - help troubleshooting

(0) ShareShare
ReportReport
Posted on by 175

Hi, a user is getting the following error when a boolean field is triggering a workflow.  The workflow updates an option set, and then sends an email.  Here is the screenshot and the error log:

   at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.Update(Entity entity, InvocationContext invocationContext, CallerOriginToken callerOriginToken, WebServiceType serviceType, Boolean checkAdminMode, Boolean checkForOptimisticConcurrency, Dictionary`2 optionalParameters)
   at Microsoft.Crm.Extensibility.OData.CrmODataExecutionContext.Update(Entity entity, UpdateOption updateOption)
   at Microsoft.Crm.Extensibility.OData.CrmODataServiceDataProvider.UpdateEdmEntity(CrmODataExecutionContext context, String edmEntityName, String entityKeyValue, EdmEntityObject entityObject)
   at Microsoft.Crm.Extensibility.OData.EntityController.PatchEntityImplementation(String& entityName, String key, EdmEntityObject entityDelta)
   at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute[TResult](ILogger logger, EventId eventId, ActivityType activityType, Func`1 func, IEnumerable`1 additionalCustomProperties)
   at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute[TResult](ILogger logger, XrmTelemetryActivityType activityType, Func`1 func)
   at lambda_method(Closure , Object , Object[] )
   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.<GetExecutor>b__9(Object instance, Object[] methodParameters)
   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__1.MoveNext()
Activity Id: d11c137e-983f-4ce9-9ec3-49eb3de7da1b

pastedimage1583872375236v2.png

Any ideas on how to troubleshoot this?

Thanks in advance!


I have the same question (0)
  • Suggested answer
    meelamri Profile Picture
    13,218 User Group Leader on at

    Hi, Good to see you :) 

    Something is wrong with the user's privileges. ( yellow area)

  • William Bradley Profile Picture
    175 on at

    Hi, you too sir!  

    Correct on the priveleges, but which one(s)?  In previous versions of Dynamics CRM, that was pointed out easily in the error log or error message.  But in the current error log, I cannot pinpoint which privlege needs an update.  

  • Suggested answer
    meelamri Profile Picture
    13,218 User Group Leader on at

    Convert the workflow to background and execute again your scenario. Then check the process sessions. 

    Refer to this link if you are not familiar with process sessions: 

    stoneridgesoftware.com/.../

  • Suggested answer
    Marco.P Profile Picture
    2,405 on at

    Hi,

    honestly i'd go with @Mehdi answer, but just in case you wanna give a shot on something different you can try with this:

    Daniel Bergsten responded on 17 Jan 2020 7:17 AM

    You do not have {0} permission to access {1} records

    Suggested Answer

    Here´s how to find the actual error message that shows exactly what privilige is missing.

    Open browser debug mode (F12). Reproduce the error message. Go to debug mode Network and look for errors (in red). Here you will find the error message.

    8715.pastedimage1579507674756v1.png

    All credits goes to @Daniel Bergsten  and his reply that i've found here:

    https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/372400/you-do-not-have-0-permission-to-access-1-records/984827

    I just tried it myself and it works !

    Hope it helps!

  • William Bradley Profile Picture
    175 on at

    Yes, thank you.  I had tried that.  I checked into the two different WF process sessions, here is the error that comes up (screenshot then log pasted).  Can you help identify that specific privleges needed for this User Security Role?

    pastedimage1583930677411v1.png

    Sync workflow failed with error message - Unhandled exception:
    Exception type: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]
    Message: {"CallerPrincipal":{"PrincipalId":"09362e95-c133-ea11-a814-000d3a579c79","Type":8,"IsUserPrincipal":true,"IsTeamPrincipal":false,"TypeName":"user"},"OwnerPrincipal":{"PrincipalId":"bea4d4cf-f52b-ea11-a812-000d3a579c79","Type":8,"IsUserPrincipal":true,"IsTeamPrincipal":false,"TypeName":"user"},"CallerInfo":{"IsSystemUser":false,"IsSupportUser":false,"IsAdministrator":false,"IsCustomizer":false,"IsDisabled":false,"IsIntegrationUser":false,"Privileges":null,"Teams":null,"Roles":null},"ObjectId":"00000000-0000-0000-0000-000000000000","ObjectTypeCode":4200,"ObjectBusinessUnitId":"89249a64-f732-ea11-a814-000d3a579c77","OrganizationId":"a8d40671-2ce0-413b-a1d0-7e7b43c7ee6f","EntityName":"activitypointer","EntityOwnershipTypeMask":1,"EntityPrivileges":[{"Id":"091df793-fe5e-44d4-b4ca-7e3f580c4664","ObjectTypeCode":4200,"Name":"prvCreateActivity","AccessRight":32,"PrivilegeType":0,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":true,"CanBeParentEntityReference":true},{"Id":"650c14fe-3521-45fe-a000-84138688e45d","ObjectTypeCode":4200,"Name":"prvReadActivity","AccessRight":1,"PrivilegeType":1,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":true,"CanBeParentEntityReference":true},{"Id":"0dc8f72c-57d5-4b4d-8892-fe6aac0e4b81","ObjectTypeCode":4200,"Name":"prvWriteActivity","AccessRight":2,"PrivilegeType":2,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":true,"CanBeParentEntityReference":true},{"Id":"bb4457f2-9b45-4482-a95a-7adef25f388a","ObjectTypeCode":4200,"Name":"prvDeleteActivity","AccessRight":65536,"PrivilegeType":3,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":false,"CanBeParentEntityReference":false},{"Id":"8b99344e-ebbf-4f84-8438-e1e34d194de9","ObjectTypeCode":4200,"Name":"prvAssignActivity","AccessRight":524288,"PrivilegeType":4,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":false,"CanBeParentEntityReference":false},{"Id":"b5f2ee06-d359-4495-bbda-312aae1c6b1e","ObjectTypeCode":4200,"Name":"prvShareActivity","AccessRight":262144,"PrivilegeType":5,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":false,"CanBeParentEntityReference":false},{"Id":"78777c10-09ab-4326-b4c8-cf5729702937","ObjectTypeCode":4200,"Name":"prvAppendActivity","AccessRight":4,"PrivilegeType":6,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":false,"CanBeParentEntityReference":false},{"Id":"6ec8e901-d770-44c0-8f12-d07425f638bd","ObjectTypeCode":4200,"Name":"prvAppendToActivity","AccessRight":16,"PrivilegeType":7,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":false,"CanBeParentEntityReference":false}],"RightsToCheck":"CreateAccess","RoleAccessRights":"None","PoaAccessRights":"None","HsmAccessRights":"None","Messages":["PrincipalHasOwnerPrincipalWithAtLeastBasicPrivilegeDepth = False","EntityUserGroupRights = None","MinimumPrivilegeDepthRequired = Global","GrantedRights = None","SecLib::AccessCheckEx2 failed. Owner Data: roleCount=4, privilegeCount=2976, accessMode=0; Principal Data: roleCount=3, privilegeCount=986, accessMode=0"],"IsHsmEnabled":false,"IsOwnerDirectReport":false,"IsDirectReportInOwningTeam":false,"IsReadAccessFromIndirectReport":false}Detail:
    <OrganizationServiceFault xmlns:i="">www.w3.org/.../XMLSchema-instance" xmlns="">schemas.microsoft.com/.../Contracts">
    <ActivityId>0349d84a-1e33-4fc9-b847-74cb15958c76</ActivityId>
    <ErrorCode>-2147220891</ErrorCode>
    <ErrorDetails xmlns:d2p1="">schemas.datacontract.org/.../System.Collections.Generic">
    <KeyValuePairOfstringanyType>
    <d2p1:key>ApiExceptionSourceKey</d2p1:key>
    <d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:string">Plugin/Microsoft.Crm.Common.ObjectModel.TaskService</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
    <d2p1:key>ApiOriginalExceptionKey</d2p1:key>
    <d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:string">Microsoft.Crm.CrmSecurityException: {"CallerPrincipal":{"PrincipalId":"09362e95-c133-ea11-a814-000d3a579c79","Type":8,"IsUserPrincipal":true,"IsTeamPrincipal":false,"TypeName":"user"},"OwnerPrincipal":{"PrincipalId":"bea4d4cf-f52b-ea11-a812-000d3a579c79","Type":8,"IsUserPrincipal":true,"IsTeamPrincipal":false,"TypeName":"user"},"CallerInfo":{"IsSystemUser":false,"IsSupportUser":false,"IsAdministrator":false,"IsCustomizer":false,"IsDisabled":false,"IsIntegrationUser":false,"Privileges":null,"Teams":null,"Roles":null},"ObjectId":"00000000-0000-0000-0000-000000000000","ObjectTypeCode":4200,"ObjectBusinessUnitId":"89249a64-f732-ea11-a814-000d3a579c77","OrganizationId":"a8d40671-2ce0-413b-a1d0-7e7b43c7ee6f","EntityName":"activitypointer","EntityOwnershipTypeMask":1,"EntityPrivileges":[{"Id":"091df793-fe5e-44d4-b4ca-7e3f580c4664","ObjectTypeCode":4200,"Name":"prvCreateActivity","AccessRight":32,"PrivilegeType":0,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":true,"CanBeParentEntityReference":true},{"Id":"650c14fe-3521-45fe-a000-84138688e45d","ObjectTypeCode":4200,"Name":"prvReadActivity","AccessRight":1,"PrivilegeType":1,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":true,"CanBeParentEntityReference":true},{"Id":"0dc8f72c-57d5-4b4d-8892-fe6aac0e4b81","ObjectTypeCode":4200,"Name":"prvWriteActivity","AccessRight":2,"PrivilegeType":2,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":true,"CanBeParentEntityReference":true},{"Id":"bb4457f2-9b45-4482-a95a-7adef25f388a","ObjectTypeCode":4200,"Name":"prvDeleteActivity","AccessRight":65536,"PrivilegeType":3,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":false,"CanBeParentEntityReference":false},{"Id":"8b99344e-ebbf-4f84-8438-e1e34d194de9","ObjectTypeCode":4200,"Name":"prvAssignActivity","AccessRight":524288,"PrivilegeType":4,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":false,"CanBeParentEntityReference":false},{"Id":"b5f2ee06-d359-4495-bbda-312aae1c6b1e","ObjectTypeCode":4200,"Name":"prvShareActivity","AccessRight":262144,"PrivilegeType":5,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":false,"CanBeParentEntityReference":false},{"Id":"78777c10-09ab-4326-b4c8-cf5729702937","ObjectTypeCode":4200,"Name":"prvAppendActivity","AccessRight":4,"PrivilegeType":6,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":false,"CanBeParentEntityReference":false},{"Id":"6ec8e901-d770-44c0-8f12-d07425f638bd","ObjectTypeCode":4200,"Name":"prvAppendToActivity","AccessRight":16,"PrivilegeType":7,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":false,"CanBeParentEntityReference":false}],"RightsToCheck":"CreateAccess","RoleAccessRights":"None","PoaAccessRights":"None","HsmAccessRights":"None","Messages":["PrincipalHasOwnerPrincipalWithAtLeastBasicPrivilegeDepth = False","EntityUserGroupRights = None","MinimumPrivilegeDepthRequired = Global","GrantedRights = None","SecLib::AccessCheckEx2 failed. Owner Data: roleCount=4, privilegeCount=2976, accessMode=0; Principal Data: roleCount=3, privilegeCount=986, accessMode=0"],"IsHsmEnabled":false,"IsOwnerDirectReport":false,"IsDirectReportInOwningTeam":false,"IsReadAccessFromIndirectReport":false} ---&gt; Microsoft.Crm.CrmSecurityException: {"CallerPrincipal":{"PrincipalId":"09362e95-c133-ea11-a814-000d3a579c79","Type":8,"IsUserPrincipal":true,"IsTeamPrincipal":false,"TypeName":"user"},"OwnerPrincipal":{"PrincipalId":"bea4d4cf-f52b-ea11-a812-000d3a579c79","Type":8,"IsUserPrincipal":true,"IsTeamPrincipal":false,"TypeName":"user"},"CallerInfo":{"IsSystemUser":false,"IsSupportUser":false,"IsAdministrator":false,"IsCustomizer":false,"IsDisabled":false,"IsIntegrationUser":false,"Privileges":null,"Teams":null,"Roles":null},"ObjectId":"00000000-0000-0000-0000-000000000000","ObjectTypeCode":4200,"ObjectBusinessUnitId":"89249a64-f732-ea11-a814-000d3a579c77","OrganizationId":"a8d40671-2ce0-413b-a1d0-7e7b43c7ee6f","EntityName":"activitypointer","EntityOwnershipTypeMask":1,"EntityPrivileges":[{"Id":"091df793-fe5e-44d4-b4ca-7e3f580c4664","ObjectTypeCode":4200,"Name":"prvCreateActivity","AccessRight":32,"PrivilegeType":0,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":true,"CanBeParentEntityReference":true},{"Id":"650c14fe-3521-45fe-a000-84138688e45d","ObjectTypeCode":4200,"Name":"prvReadActivity","AccessRight":1,"PrivilegeType":1,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":true,"CanBeParentEntityReference":true},{"Id":"0dc8f72c-57d5-4b4d-8892-fe6aac0e4b81","ObjectTypeCode":4200,"Name":"prvWriteActivity","AccessRight":2,"PrivilegeType":2,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":true,"CanBeParentEntityReference":true},{"Id":"bb4457f2-9b45-4482-a95a-7adef25f388a","ObjectTypeCode":4200,"Name":"prvDeleteActivity","AccessRight":65536,"PrivilegeType":3,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":false,"CanBeParentEntityReference":false},{"Id":"8b99344e-ebbf-4f84-8438-e1e34d194de9","ObjectTypeCode":4200,"Name":"prvAssignActivity","AccessRight":524288,"PrivilegeType":4,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":false,"CanBeParentEntityReference":false},{"Id":"b5f2ee06-d359-4495-bbda-312aae1c6b1e","ObjectTypeCode":4200,"Name":"prvShareActivity","AccessRight":262144,"PrivilegeType":5,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":false,"CanBeParentEntityReference":false},{"Id":"78777c10-09ab-4326-b4c8-cf5729702937","ObjectTypeCode":4200,"Name":"prvAppendActivity","AccessRight":4,"PrivilegeType":6,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":false,"CanBeParentEntityReference":false},{"Id":"6ec8e901-d770-44c0-8f12-d07425f638bd","ObjectTypeCode":4200,"Name":"prvAppendToActivity","AccessRight":16,"PrivilegeType":7,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":false,"CanBeParentEntityReference":false}],"RightsToCheck":"CreateAccess","RoleAccessRights":"None","PoaAccessRights":"None","HsmAccessRights":"None","Messages":["PrincipalHasOwnerPrincipalWithAtLeastBasicPrivilegeDepth = False","EntityUserGroupRights = None","MinimumPrivilegeDepthRequired = Global","GrantedRights = None","SecLib::AccessCheckEx2 failed. Owner Data: roleCount=4, privilegeCount=2976, accessMode=0; Principal Data: roleCount=3, privilegeCount=986, accessMode=0"],"IsHsmEnabled":false,"IsOwnerDirectReport":false,"IsDirectReportInOwningTeam":false,"IsReadAccessFromIndirectReport":false}
    at Microsoft.Crm.BusinessEntities.SecurityLibrary.AccessCheckEx2(ExecutionContext context, SecurityPrincipal principal, 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.PreCreateHandlerEntityPrivilegeCheck(Object sender, SecurityTraits traits, SecurityAttributes attributes, ExtensionEventArgs e)
    at Microsoft.Crm.BusinessEntities.SecurityExtension.PreCreateSecurityCheck(Object sender, ExtensionEventArgs e, BusinessEntity entity)
    at Microsoft.Crm.BusinessEntities.SecurityExtension.PreCreateHandler(ExtensionEventArgs e, Object sender)
    at Microsoft.Crm.BusinessEntities.BusinessProcessObject.PreCreateEventHandler.Invoke(Object sender, ExtensionEventArgs e)
    at Microsoft.Crm.BusinessEntities.BusinessProcessObject.&lt;&gt;c__DisplayClass210_0.&lt;Create&gt;b__0()
    at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute[TResult](ILogger logger, EventId eventId, ActivityType activityType, Func`1 func, IEnumerable`1 additionalCustomProperties)
    at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute[TResult](ILogger logger, XrmTelemetryActivityType activityType, Func`1 func)
    at Microsoft.Crm.ObjectModel.GenericActivityServiceBase.Create(IBusinessEntity entity, ExecutionContext context)
    --- End of inner exception stack trace ---
    at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)
    at Microsoft.Crm.Extensibility.PipelineInstrumentationHelper.Execute(Boolean instrumentationEnabled, String stopwatchName, ExecuteWithInstrumentation action, PipelineExecutionContext context)
    at Microsoft.Crm.Extensibility.Pipeline.&lt;&gt;c__DisplayClass3_0.&lt;RunStep&gt;b__0()</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
    <d2p1:key>ApiStepKey</d2p1:key>
    <d2p1:value xmlns:d4p1="">schemas.microsoft.com/.../" i:type="d4p1:guid">5bcabb1b-ea3e-db11-86a7-000a3a5473e8</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
    <d2p1:key>ApiDepthKey</d2p1:key>
    <d2p1:value xmlns:d4p1="
    ">www.w3.org/.../XMLSchema" i:type="d4p1:int">3</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
    <d2p1:key>ApiActivityIdKey</d2p1:key>
    <d2p1:value xmlns:d4p1="">schemas.microsoft.com/.../" i:type="d4p1:guid">0931c6ec-870b-4f3c-a8d5-057a52c3facf</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
    <d2p1:key>ApiPluginSolutionNameKey</d2p1:key>
    <d2p1:value xmlns:d4p1="
    ">www.w3.org/.../XMLSchema" i:type="d4p1:string">System</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
    <d2p1:key>ApiStepSolutionNameKey</d2p1:key>
    <d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:string">System</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
    <d2p1:key>ApiExceptionCategory</d2p1:key>
    <d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:string">ClientError</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
    <d2p1:key>ApiExceptionMesageName</d2p1:key>
    <d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:string">unManagedIdsAccessDenied</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
    <d2p1:key>ApiExceptionHttpStatusCode</d2p1:key>
    <d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:int">403</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
    <d2p1:key>OperationStatus</d2p1:key>
    <d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:int">0</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
    <d2p1:key>SubErrorCode</d2p1:key>
    <d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:int">-2146233088</d2p1:value>
    </KeyValuePairOfstringanyType>
    </ErrorDetails>
    <HelpLink i:nil="true" />
    <Message>{"CallerPrincipal":{"PrincipalId":"09362e95-c133-ea11-a814-000d3a579c79","Type":8,"IsUserPrincipal":true,"IsTeamPrincipal":false,"TypeName":"user"},"OwnerPrincipal":{"PrincipalId":"bea4d4cf-f52b-ea11-a812-000d3a579c79","Type":8,"IsUserPrincipal":true,"IsTeamPrincipal":false,"TypeName":"user"},"CallerInfo":{"IsSystemUser":false,"IsSupportUser":false,"IsAdministrator":false,"IsCustomizer":false,"IsDisabled":false,"IsIntegrationUser":false,"Privileges":null,"Teams":null,"Roles":null},"ObjectId":"00000000-0000-0000-0000-000000000000","ObjectTypeCode":4200,"ObjectBusinessUnitId":"89249a64-f732-ea11-a814-000d3a579c77","OrganizationId":"a8d40671-2ce0-413b-a1d0-7e7b43c7ee6f","EntityName":"activitypointer","EntityOwnershipTypeMask":1,"EntityPrivileges":[{"Id":"091df793-fe5e-44d4-b4ca-7e3f580c4664","ObjectTypeCode":4200,"Name":"prvCreateActivity","AccessRight":32,"PrivilegeType":0,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":true,"CanBeParentEntityReference":true},{"Id":"650c14fe-3521-45fe-a000-84138688e45d","ObjectTypeCode":4200,"Name":"prvReadActivity","AccessRight":1,"PrivilegeType":1,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":true,"CanBeParentEntityReference":true},{"Id":"0dc8f72c-57d5-4b4d-8892-fe6aac0e4b81","ObjectTypeCode":4200,"Name":"prvWriteActivity","AccessRight":2,"PrivilegeType":2,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":true,"CanBeParentEntityReference":true},{"Id":"bb4457f2-9b45-4482-a95a-7adef25f388a","ObjectTypeCode":4200,"Name":"prvDeleteActivity","AccessRight":65536,"PrivilegeType":3,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":false,"CanBeParentEntityReference":false},{"Id":"8b99344e-ebbf-4f84-8438-e1e34d194de9","ObjectTypeCode":4200,"Name":"prvAssignActivity","AccessRight":524288,"PrivilegeType":4,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":false,"CanBeParentEntityReference":false},{"Id":"b5f2ee06-d359-4495-bbda-312aae1c6b1e","ObjectTypeCode":4200,"Name":"prvShareActivity","AccessRight":262144,"PrivilegeType":5,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":false,"CanBeParentEntityReference":false},{"Id":"78777c10-09ab-4326-b4c8-cf5729702937","ObjectTypeCode":4200,"Name":"prvAppendActivity","AccessRight":4,"PrivilegeType":6,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":false,"CanBeParentEntityReference":false},{"Id":"6ec8e901-d770-44c0-8f12-d07425f638bd","ObjectTypeCode":4200,"Name":"prvAppendToActivity","AccessRight":16,"PrivilegeType":7,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":false,"CanBeParentEntityReference":false}],"RightsToCheck":"CreateAccess","RoleAccessRights":"None","PoaAccessRights":"None","HsmAccessRights":"None","Messages":["PrincipalHasOwnerPrincipalWithAtLeastBasicPrivilegeDepth = False","EntityUserGroupRights = None","MinimumPrivilegeDepthRequired = Global","GrantedRights = None","SecLib::AccessCheckEx2 failed. Owner Data: roleCount=4, privilegeCount=2976, accessMode=0; Principal Data: roleCount=3, privilegeCount=986, accessMode=0"],"IsHsmEnabled":false,"IsOwnerDirectReport":false,"IsDirectReportInOwningTeam":false,"IsReadAccessFromIndirectReport":false}</Message>
    <Timestamp>2020-03-11T12:33:15.1400637Z</Timestamp>
    <ExceptionRetriable>false</ExceptionRetriable>
    <ExceptionSource i:nil="true" />
    <InnerFault>
    <ActivityId>0349d84a-1e33-4fc9-b847-74cb15958c76</ActivityId>
    <ErrorCode>-2147220891</ErrorCode>
    <ErrorDetails xmlns:d3p1="">schemas.datacontract.org/.../System.Collections.Generic">
    <KeyValuePairOfstringanyType>
    <d3p1:key>OperationStatus</d3p1:key>
    <d3p1:value xmlns:d5p1="">www.w3.org/.../XMLSchema" i:type="d5p1:int">0</d3p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
    <d3p1:key>SubErrorCode</d3p1:key>
    <d3p1:value xmlns:d5p1="">www.w3.org/.../XMLSchema" i:type="d5p1:int">-2146233088</d3p1:value>
    </KeyValuePairOfstringanyType>
    </ErrorDetails>
    <HelpLink i:nil="true" />
    <Message>{"CallerPrincipal":{"PrincipalId":"09362e95-c133-ea11-a814-000d3a579c79","Type":8,"IsUserPrincipal":true,"IsTeamPrincipal":false,"TypeName":"user"},"OwnerPrincipal":{"PrincipalId":"bea4d4cf-f52b-ea11-a812-000d3a579c79","Type":8,"IsUserPrincipal":true,"IsTeamPrincipal":false,"TypeName":"user"},"CallerInfo":{"IsSystemUser":false,"IsSupportUser":false,"IsAdministrator":false,"IsCustomizer":false,"IsDisabled":false,"IsIntegrationUser":false,"Privileges":null,"Teams":null,"Roles":null},"ObjectId":"00000000-0000-0000-0000-000000000000","ObjectTypeCode":4200,"ObjectBusinessUnitId":"89249a64-f732-ea11-a814-000d3a579c77","OrganizationId":"a8d40671-2ce0-413b-a1d0-7e7b43c7ee6f","EntityName":"activitypointer","EntityOwnershipTypeMask":1,"EntityPrivileges":[{"Id":"091df793-fe5e-44d4-b4ca-7e3f580c4664","ObjectTypeCode":4200,"Name":"prvCreateActivity","AccessRight":32,"PrivilegeType":0,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":true,"CanBeParentEntityReference":true},{"Id":"650c14fe-3521-45fe-a000-84138688e45d","ObjectTypeCode":4200,"Name":"prvReadActivity","AccessRight":1,"PrivilegeType":1,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":true,"CanBeParentEntityReference":true},{"Id":"0dc8f72c-57d5-4b4d-8892-fe6aac0e4b81","ObjectTypeCode":4200,"Name":"prvWriteActivity","AccessRight":2,"PrivilegeType":2,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":true,"CanBeParentEntityReference":true},{"Id":"bb4457f2-9b45-4482-a95a-7adef25f388a","ObjectTypeCode":4200,"Name":"prvDeleteActivity","AccessRight":65536,"PrivilegeType":3,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":false,"CanBeParentEntityReference":false},{"Id":"8b99344e-ebbf-4f84-8438-e1e34d194de9","ObjectTypeCode":4200,"Name":"prvAssignActivity","AccessRight":524288,"PrivilegeType":4,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":false,"CanBeParentEntityReference":false},{"Id":"b5f2ee06-d359-4495-bbda-312aae1c6b1e","ObjectTypeCode":4200,"Name":"prvShareActivity","AccessRight":262144,"PrivilegeType":5,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":false,"CanBeParentEntityReference":false},{"Id":"78777c10-09ab-4326-b4c8-cf5729702937","ObjectTypeCode":4200,"Name":"prvAppendActivity","AccessRight":4,"PrivilegeType":6,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":false,"CanBeParentEntityReference":false},{"Id":"6ec8e901-d770-44c0-8f12-d07425f638bd","ObjectTypeCode":4200,"Name":"prvAppendToActivity","AccessRight":16,"PrivilegeType":7,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":false,"CanBeParentEntityReference":false}],"RightsToCheck":"CreateAccess","RoleAccessRights":"None","PoaAccessRights":"None","HsmAccessRights":"None","Messages":["PrincipalHasOwnerPrincipalWithAtLeastBasicPrivilegeDepth = False","EntityUserGroupRights = None","MinimumPrivilegeDepthRequired = Global","GrantedRights = None","SecLib::AccessCheckEx2 failed. Owner Data: roleCount=4, privilegeCount=2976, accessMode=0; Principal Data: roleCount=3, privilegeCount=986, accessMode=0"],"IsHsmEnabled":false,"IsOwnerDirectReport":false,"IsDirectReportInOwningTeam":false,"IsReadAccessFromIndirectReport":false}</Message>
    <Timestamp>2020-03-11T12:33:15.1400637Z</Timestamp>
    <ExceptionRetriable>false</ExceptionRetriable>
    <ExceptionSource i:nil="true" />
    <InnerFault>
    <ActivityId>0931c6ec-870b-4f3c-a8d5-057a52c3facf</ActivityId>
    <ErrorCode>-2147187962</ErrorCode>
    <ErrorDetails xmlns:d4p1="">schemas.datacontract.org/.../System.Collections.Generic">
    <KeyValuePairOfstringanyType>
    <d4p1:key>ApiExceptionSourceKey</d4p1:key>
    <d4p1:value xmlns:d6p1="">www.w3.org/.../XMLSchema" i:type="d6p1:string">Plugin/Microsoft.Crm.Common.ObjectModel.TaskService</d4p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
    <d4p1:key>ApiOriginalExceptionKey</d4p1:key>
    <d4p1:value xmlns:d6p1="">www.w3.org/.../XMLSchema" i:type="d6p1:string">Microsoft.Crm.CrmSecurityException: {"CallerPrincipal":{"PrincipalId":"09362e95-c133-ea11-a814-000d3a579c79","Type":8,"IsUserPrincipal":true,"IsTeamPrincipal":false,"TypeName":"user"},"OwnerPrincipal":{"PrincipalId":"bea4d4cf-f52b-ea11-a812-000d3a579c79","Type":8,"IsUserPrincipal":true,"IsTeamPrincipal":false,"TypeName":"user"},"CallerInfo":{"IsSystemUser":false,"IsSupportUser":false,"IsAdministrator":false,"IsCustomizer":false,"IsDisabled":false,"IsIntegrationUser":false,"Privileges":null,"Teams":null,"Roles":null},"ObjectId":"00000000-0000-0000-0000-000000000000","ObjectTypeCode":4200,"ObjectBusinessUnitId":"89249a64-f732-ea11-a814-000d3a579c77","OrganizationId":"a8d40671-2ce0-413b-a1d0-7e7b43c7ee6f","EntityName":"activitypointer","EntityOwnershipTypeMask":1,"EntityPrivileges":[{"Id":"091df793-fe5e-44d4-b4ca-7e3f580c4664","ObjectTypeCode":4200,"Name":"prvCreateActivity","AccessRight":32,"PrivilegeType":0,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":true,"CanBeParentEntityReference":true},{"Id":"650c14fe-3521-45fe-a000-84138688e45d","ObjectTypeCode":4200,"Name":"prvReadActivity","AccessRight":1,"PrivilegeType":1,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":true,"CanBeParentEntityReference":true},{"Id":"0dc8f72c-57d5-4b4d-8892-fe6aac0e4b81","ObjectTypeCode":4200,"Name":"prvWriteActivity","AccessRight":2,"PrivilegeType":2,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":true,"CanBeParentEntityReference":true},{"Id":"bb4457f2-9b45-4482-a95a-7adef25f388a","ObjectTypeCode":4200,"Name":"prvDeleteActivity","AccessRight":65536,"PrivilegeType":3,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":false,"CanBeParentEntityReference":false},{"Id":"8b99344e-ebbf-4f84-8438-e1e34d194de9","ObjectTypeCode":4200,"Name":"prvAssignActivity","AccessRight":524288,"PrivilegeType":4,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":false,"CanBeParentEntityReference":false},{"Id":"b5f2ee06-d359-4495-bbda-312aae1c6b1e","ObjectTypeCode":4200,"Name":"prvShareActivity","AccessRight":262144,"PrivilegeType":5,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":false,"CanBeParentEntityReference":false},{"Id":"78777c10-09ab-4326-b4c8-cf5729702937","ObjectTypeCode":4200,"Name":"prvAppendActivity","AccessRight":4,"PrivilegeType":6,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":false,"CanBeParentEntityReference":false},{"Id":"6ec8e901-d770-44c0-8f12-d07425f638bd","ObjectTypeCode":4200,"Name":"prvAppendToActivity","AccessRight":16,"PrivilegeType":7,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":false,"CanBeParentEntityReference":false}],"RightsToCheck":"CreateAccess","RoleAccessRights":"None","PoaAccessRights":"None","HsmAccessRights":"None","Messages":["PrincipalHasOwnerPrincipalWithAtLeastBasicPrivilegeDepth = False","EntityUserGroupRights = None","MinimumPrivilegeDepthRequired = Global","GrantedRights = None","SecLib::AccessCheckEx2 failed. Owner Data: roleCount=4, privilegeCount=2976, accessMode=0; Principal Data: roleCount=3, privilegeCount=986, accessMode=0"],"IsHsmEnabled":false,"IsOwnerDirectReport":false,"IsDirectReportInOwningTeam":false,"IsReadAccessFromIndirectReport":false} ---&gt; Microsoft.Crm.CrmSecurityException: {"CallerPrincipal":{"PrincipalId":"09362e95-c133-ea11-a814-000d3a579c79","Type":8,"IsUserPrincipal":true,"IsTeamPrincipal":false,"TypeName":"user"},"OwnerPrincipal":{"PrincipalId":"bea4d4cf-f52b-ea11-a812-000d3a579c79","Type":8,"IsUserPrincipal":true,"IsTeamPrincipal":false,"TypeName":"user"},"CallerInfo":{"IsSystemUser":false,"IsSupportUser":false,"IsAdministrator":false,"IsCustomizer":false,"IsDisabled":false,"IsIntegrationUser":false,"Privileges":null,"Teams":null,"Roles":null},"ObjectId":"00000000-0000-0000-0000-000000000000","ObjectTypeCode":4200,"ObjectBusinessUnitId":"89249a64-f732-ea11-a814-000d3a579c77","OrganizationId":"a8d40671-2ce0-413b-a1d0-7e7b43c7ee6f","EntityName":"activitypointer","EntityOwnershipTypeMask":1,"EntityPrivileges":[{"Id":"091df793-fe5e-44d4-b4ca-7e3f580c4664","ObjectTypeCode":4200,"Name":"prvCreateActivity","AccessRight":32,"PrivilegeType":0,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":true,"CanBeParentEntityReference":true},{"Id":"650c14fe-3521-45fe-a000-84138688e45d","ObjectTypeCode":4200,"Name":"prvReadActivity","AccessRight":1,"PrivilegeType":1,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":true,"CanBeParentEntityReference":true},{"Id":"0dc8f72c-57d5-4b4d-8892-fe6aac0e4b81","ObjectTypeCode":4200,"Name":"prvWriteActivity","AccessRight":2,"PrivilegeType":2,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":true,"CanBeParentEntityReference":true},{"Id":"bb4457f2-9b45-4482-a95a-7adef25f388a","ObjectTypeCode":4200,"Name":"prvDeleteActivity","AccessRight":65536,"PrivilegeType":3,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":false,"CanBeParentEntityReference":false},{"Id":"8b99344e-ebbf-4f84-8438-e1e34d194de9","ObjectTypeCode":4200,"Name":"prvAssignActivity","AccessRight":524288,"PrivilegeType":4,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":false,"CanBeParentEntityReference":false},{"Id":"b5f2ee06-d359-4495-bbda-312aae1c6b1e","ObjectTypeCode":4200,"Name":"prvShareActivity","AccessRight":262144,"PrivilegeType":5,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":false,"CanBeParentEntityReference":false},{"Id":"78777c10-09ab-4326-b4c8-cf5729702937","ObjectTypeCode":4200,"Name":"prvAppendActivity","AccessRight":4,"PrivilegeType":6,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":false,"CanBeParentEntityReference":false},{"Id":"6ec8e901-d770-44c0-8f12-d07425f638bd","ObjectTypeCode":4200,"Name":"prvAppendToActivity","AccessRight":16,"PrivilegeType":7,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":false,"CanBeParentEntityReference":false}],"RightsToCheck":"CreateAccess","RoleAccessRights":"None","PoaAccessRights":"None","HsmAccessRights":"None","Messages":["PrincipalHasOwnerPrincipalWithAtLeastBasicPrivilegeDepth = False","EntityUserGroupRights = None","MinimumPrivilegeDepthRequired = Global","GrantedRights = None","SecLib::AccessCheckEx2 failed. Owner Data: roleCount=4, privilegeCount=2976, accessMode=0; Principal Data: roleCount=3, privilegeCount=986, accessMode=0"],"IsHsmEnabled":false,"IsOwnerDirectReport":false,"IsDirectReportInOwningTeam":false,"IsReadAccessFromIndirectReport":false}
    at Microsoft.Crm.BusinessEntities.SecurityLibrary.AccessCheckEx2(ExecutionContext context, SecurityPrincipal principal, 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.PreCreateHandlerEntityPrivilegeCheck(Object sender, SecurityTraits traits, SecurityAttributes attributes, ExtensionEventArgs e)
    at Microsoft.Crm.BusinessEntities.SecurityExtension.PreCreateSecurityCheck(Object sender, ExtensionEventArgs e, BusinessEntity entity)
    at Microsoft.Crm.BusinessEntities.SecurityExtension.PreCreateHandler(ExtensionEventArgs e, Object sender)
    at Microsoft.Crm.BusinessEntities.BusinessProcessObject.PreCreateEventHandler.Invoke(Object sender, ExtensionEventArgs e)
    at Microsoft.Crm.BusinessEntities.BusinessProcessObject.&lt;&gt;c__DisplayClass210_0.&lt;Create&gt;b__0()
    at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute[TResult](ILogger logger, EventId eventId, ActivityType activityType, Func`1 func, IEnumerable`1 additionalCustomProperties)
    at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute[TResult](ILogger logger, XrmTelemetryActivityType activityType, Func`1 func)
    at Microsoft.Crm.ObjectModel.GenericActivityServiceBase.Create(IBusinessEntity entity, ExecutionContext context)
    --- End of inner exception stack trace ---
    at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)
    at Microsoft.Crm.Extensibility.PipelineInstrumentationHelper.Execute(Boolean instrumentationEnabled, String stopwatchName, ExecuteWithInstrumentation action, PipelineExecutionContext context)
    at Microsoft.Crm.Extensibility.Pipeline.&lt;&gt;c__DisplayClass3_0.&lt;RunStep&gt;b__0()</d4p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
    <d4p1:key>ApiStepKey</d4p1:key>
    <d4p1:value xmlns:d6p1="">schemas.microsoft.com/.../" i:type="d6p1:guid">5bcabb1b-ea3e-db11-86a7-000a3a5473e8</d4p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
    <d4p1:key>ApiDepthKey</d4p1:key>
    <d4p1:value xmlns:d6p1="
    ">www.w3.org/.../XMLSchema" i:type="d6p1:int">3</d4p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
    <d4p1:key>ApiActivityIdKey</d4p1:key>
    <d4p1:value xmlns:d6p1="">schemas.microsoft.com/.../" i:type="d6p1:guid">0931c6ec-870b-4f3c-a8d5-057a52c3facf</d4p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
    <d4p1:key>ApiPluginSolutionNameKey</d4p1:key>
    <d4p1:value xmlns:d6p1="
    ">www.w3.org/.../XMLSchema" i:type="d6p1:string">System</d4p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
    <d4p1:key>ApiStepSolutionNameKey</d4p1:key>
    <d4p1:value xmlns:d6p1="">www.w3.org/.../XMLSchema" i:type="d6p1:string">System</d4p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
    <d4p1:key>ApiExceptionCategory</d4p1:key>
    <d4p1:value xmlns:d6p1="">www.w3.org/.../XMLSchema" i:type="d6p1:string">ClientError</d4p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
    <d4p1:key>ApiExceptionMesageName</d4p1:key>
    <d4p1:value xmlns:d6p1="">www.w3.org/.../XMLSchema" i:type="d6p1:string">unManagedIdsAccessDenied</d4p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
    <d4p1:key>ApiExceptionHttpStatusCode</d4p1:key>
    <d4p1:value xmlns:d6p1="">www.w3.org/.../XMLSchema" i:type="d6p1:int">403</d4p1:value>
    </KeyValuePairOfstringanyType>
    </ErrorDetails>
    <HelpLink>go.microsoft.com/.../
    <Message>{"CallerPrincipal":{"PrincipalId":"09362e95-c133-ea11-a814-000d3a579c79","Type":8,"IsUserPrincipal":true,"IsTeamPrincipal":false,"TypeName":"user"},"OwnerPrincipal":{"PrincipalId":"bea4d4cf-f52b-ea11-a812-000d3a579c79","Type":8,"IsUserPrincipal":true,"IsTeamPrincipal":false,"TypeName":"user"},"CallerInfo":{"IsSystemUser":false,"IsSupportUser":false,"IsAdministrator":false,"IsCustomizer":false,"IsDisabled":false,"IsIntegrationUser":false,"Privileges":null,"Teams":null,"Roles":null},"ObjectId":"00000000-0000-0000-0000-000000000000","ObjectTypeCode":4200,"ObjectBusinessUnitId":"89249a64-f732-ea11-a814-000d3a579c77","OrganizationId":"a8d40671-2ce0-413b-a1d0-7e7b43c7ee6f","EntityName":"activitypointer","EntityOwnershipTypeMask":1,"EntityPrivileges":[{"Id":"091df793-fe5e-44d4-b4ca-7e3f580c4664","ObjectTypeCode":4200,"Name":"prvCreateActivity","AccessRight":32,"PrivilegeType":0,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":true,"CanBeParentEntityReference":true},{"Id":"650c14fe-3521-45fe-a000-84138688e45d","ObjectTypeCode":4200,"Name":"prvReadActivity","AccessRight":1,"PrivilegeType":1,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":true,"CanBeParentEntityReference":true},{"Id":"0dc8f72c-57d5-4b4d-8892-fe6aac0e4b81","ObjectTypeCode":4200,"Name":"prvWriteActivity","AccessRight":2,"PrivilegeType":2,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":true,"CanBeParentEntityReference":true},{"Id":"bb4457f2-9b45-4482-a95a-7adef25f388a","ObjectTypeCode":4200,"Name":"prvDeleteActivity","AccessRight":65536,"PrivilegeType":3,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":false,"CanBeParentEntityReference":false},{"Id":"8b99344e-ebbf-4f84-8438-e1e34d194de9","ObjectTypeCode":4200,"Name":"prvAssignActivity","AccessRight":524288,"PrivilegeType":4,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":false,"CanBeParentEntityReference":false},{"Id":"b5f2ee06-d359-4495-bbda-312aae1c6b1e","ObjectTypeCode":4200,"Name":"prvShareActivity","AccessRight":262144,"PrivilegeType":5,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":false,"CanBeParentEntityReference":false},{"Id":"78777c10-09ab-4326-b4c8-cf5729702937","ObjectTypeCode":4200,"Name":"prvAppendActivity","AccessRight":4,"PrivilegeType":6,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":false,"CanBeParentEntityReference":false},{"Id":"6ec8e901-d770-44c0-8f12-d07425f638bd","ObjectTypeCode":4200,"Name":"prvAppendToActivity","AccessRight":16,"PrivilegeType":7,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":false,"CanBeParentEntityReference":false}],"RightsToCheck":"CreateAccess","RoleAccessRights":"None","PoaAccessRights":"None","HsmAccessRights":"None","Messages":["PrincipalHasOwnerPrincipalWithAtLeastBasicPrivilegeDepth = False","EntityUserGroupRights = None","MinimumPrivilegeDepthRequired = Global","GrantedRights = None","SecLib::AccessCheckEx2 failed. Owner Data: roleCount=4, privilegeCount=2976, accessMode=0; Principal Data: roleCount=3, privilegeCount=986, accessMode=0"],"IsHsmEnabled":false,"IsOwnerDirectReport":false,"IsDirectReportInOwningTeam":false,"IsReadAccessFromIndirectReport":false}</Message>
    <Timestamp>2020-03-11T12:33:15.077578Z</Timestamp>
    <ExceptionRetriable>false</ExceptionRetriable>
    <ExceptionSource i:nil="true" />
    <InnerFault>
    <ActivityId>0931c6ec-870b-4f3c-a8d5-057a52c3facf</ActivityId>
    <ErrorCode>-2147187962</ErrorCode>
    <ErrorDetails xmlns:d5p1="">schemas.datacontract.org/.../System.Collections.Generic" />
    <HelpLink i:nil="true" />
    <Message>{"CallerPrincipal":{"PrincipalId":"09362e95-c133-ea11-a814-000d3a579c79","Type":8,"IsUserPrincipal":true,"IsTeamPrincipal":false,"TypeName":"user"},"OwnerPrincipal":{"PrincipalId":"bea4d4cf-f52b-ea11-a812-000d3a579c79","Type":8,"IsUserPrincipal":true,"IsTeamPrincipal":false,"TypeName":"user"},"CallerInfo":{"IsSystemUser":false,"IsSupportUser":false,"IsAdministrator":false,"IsCustomizer":false,"IsDisabled":false,"IsIntegrationUser":false,"Privileges":null,"Teams":null,"Roles":null},"ObjectId":"00000000-0000-0000-0000-000000000000","ObjectTypeCode":4200,"ObjectBusinessUnitId":"89249a64-f732-ea11-a814-000d3a579c77","OrganizationId":"a8d40671-2ce0-413b-a1d0-7e7b43c7ee6f","EntityName":"activitypointer","EntityOwnershipTypeMask":1,"EntityPrivileges":[{"Id":"091df793-fe5e-44d4-b4ca-7e3f580c4664","ObjectTypeCode":4200,"Name":"prvCreateActivity","AccessRight":32,"PrivilegeType":0,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":true,"CanBeParentEntityReference":true},{"Id":"650c14fe-3521-45fe-a000-84138688e45d","ObjectTypeCode":4200,"Name":"prvReadActivity","AccessRight":1,"PrivilegeType":1,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":true,"CanBeParentEntityReference":true},{"Id":"0dc8f72c-57d5-4b4d-8892-fe6aac0e4b81","ObjectTypeCode":4200,"Name":"prvWriteActivity","AccessRight":2,"PrivilegeType":2,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":true,"CanBeParentEntityReference":true},{"Id":"bb4457f2-9b45-4482-a95a-7adef25f388a","ObjectTypeCode":4200,"Name":"prvDeleteActivity","AccessRight":65536,"PrivilegeType":3,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":false,"CanBeParentEntityReference":false},{"Id":"8b99344e-ebbf-4f84-8438-e1e34d194de9","ObjectTypeCode":4200,"Name":"prvAssignActivity","AccessRight":524288,"PrivilegeType":4,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":false,"CanBeParentEntityReference":false},{"Id":"b5f2ee06-d359-4495-bbda-312aae1c6b1e","ObjectTypeCode":4200,"Name":"prvShareActivity","AccessRight":262144,"PrivilegeType":5,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":false,"CanBeParentEntityReference":false},{"Id":"78777c10-09ab-4326-b4c8-cf5729702937","ObjectTypeCode":4200,"Name":"prvAppendActivity","AccessRight":4,"PrivilegeType":6,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":false,"CanBeParentEntityReference":false},{"Id":"6ec8e901-d770-44c0-8f12-d07425f638bd","ObjectTypeCode":4200,"Name":"prvAppendToActivity","AccessRight":16,"PrivilegeType":7,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":false,"CanBeParentEntityReference":false}],"RightsToCheck":"CreateAccess","RoleAccessRights":"None","PoaAccessRights":"None","HsmAccessRights":"None","Messages":["PrincipalHasOwnerPrincipalWithAtLeastBasicPrivilegeDepth = False","EntityUserGroupRights = None","MinimumPrivilegeDepthRequired = Global","GrantedRights = None","SecLib::AccessCheckEx2 failed. Owner Data: roleCount=4, privilegeCount=2976, accessMode=0; Principal Data: roleCount=3, privilegeCount=986, accessMode=0"],"IsHsmEnabled":false,"IsOwnerDirectReport":false,"IsDirectReportInOwningTeam":false,"IsReadAccessFromIndirectReport":false}</Message>
    <Timestamp>2020-03-11T12:33:15.077578Z</Timestamp>
    <ExceptionRetriable>false</ExceptionRetriable>
    <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 i:nil="true" />
    </InnerFault>
    <OriginalException i:nil="true" />
    <TraceText>
    [Microsoft.Crm.ObjectModel: Microsoft.Crm.Extensibility.InternalOperationPlugin]
    [46f6cf4c-14ae-4f1e-98a1-eae99a37e95c: ExecuteWorkflowWithInputArguments]
    Starting sync workflow 'LMS-Deal Review-S-CNG-ReworkReject CHILD WF-Email and Task', Id: 3ade6de6-585e-ea11-a811-000d3a579c6b
    Entering SendEmailStep1_step: Send email to Primary DM, Secondary DM, All Previous Approvers
    Entering ConditionStep2_step: Check for Deal Stages in order to send Tasks
    Entering CreateStep8_step: Create GF Task - Rework Green Folder
    Sync workflow 'LMS-Deal Review-S-CNG-ReworkReject CHILD WF-Email and Task' terminated with error '{"CallerPrincipal":{"PrincipalId":"09362e95-c133-ea11-a814-000d3a579c79","Type":8,"IsUserPrincipal":true,"IsTeamPrincipal":false,"TypeName":"user"},"OwnerPrincipal":{"PrincipalId":"bea4d4cf-f52b-ea11-a812-000d3a579c79","Type":8,"IsUserPrincipal":true,"IsTeamPrincipal":false,"TypeName":"user"},"CallerInfo":{"IsSystemUser":false,"IsSupportUser":false,"IsAdministrator":false,"IsCustomizer":false,"IsDisabled":false,"IsIntegrationUser":false,"Privileges":null,"Teams":null,"Roles":null},"ObjectId":"00000000-0000-0000-0000-000000000000","ObjectTypeCode":4200,"ObjectBusinessUnitId":"89249a64-f732-ea11-a814-000d3a579c77","OrganizationId":"a8d40671-2ce0-413b-a1d0-7e7b43c7ee6f","EntityName":"activitypointer","EntityOwnershipTypeMask":1,"EntityPrivileges":[{"Id":"091df793-fe5e-44d4-b4ca-7e3f580c4664","ObjectTypeCode":4200,"Name":"prvCreateActivity","AccessRight":32,"PrivilegeType":0,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":true,"CanBeParentEntityReference":true},{"Id":"650c14fe-3521-45fe-a000-84138688e45d","ObjectTypeCode":4200,"Name":"prvReadActivity","AccessRight":1,"PrivilegeType":1,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":true,"CanBeParentEntityReference":true},{"Id":"0dc8f72c-57d5-4b4d-8892-fe6aac0e4b81","ObjectTypeCode":4200,"Name":"prvWriteActivity","AccessRight":2,"PrivilegeType":2,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":true,"CanBeParentEntityReference":true},{"Id":"bb4457f2-9b45-4482-a95a-7adef25f388a","ObjectTypeCode":4200,"Name":"prvDeleteActivity","AccessRight":65536,"PrivilegeType":3,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":false,"CanBeParentEntityReference":false},{"Id":"8b99344e-ebbf-4f84-8438-e1e34d194de9","ObjectTypeCode":4200,"Name":"prvAssignActivity","AccessRight":524288,"PrivilegeType":4,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":false,"CanBeParentEntityReference":false},{"Id":"b5f2ee06-d359-4495-bbda-312aae1c6b1e","ObjectTypeCode":4200,"Name":"prvShareActivity","AccessRight":262144,"PrivilegeType":5,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":false,"CanBeParentEntityReference":false},{"Id":"78777c10-09ab-4326-b4c8-cf5729702937","ObjectTypeCode":4200,"Name":"prvAppendActivity","AccessRight":4,"PrivilegeType":6,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":false,"CanBeParentEntityReference":false},{"Id":"6ec8e901-d770-44c0-8f12-d07425f638bd","ObjectTypeCode":4200,"Name":"prvAppendToActivity","AccessRight":16,"PrivilegeType":7,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":false,"CanBeParentEntityReference":false}],"RightsToCheck":"CreateAccess","RoleAccessRights":"None","PoaAccessRights":"None","HsmAccessRights":"None","Messages":["PrincipalHasOwnerPrincipalWithAtLeastBasicPrivilegeDepth = False","EntityUserGroupRights = None","MinimumPrivilegeDepthRequired = Global","GrantedRights = None","SecLib::AccessCheckEx2 failed. Owner Data: roleCount=4, privilegeCount=2976, accessMode=0; Principal Data: roleCount=3, privilegeCount=986, accessMode=0"],"IsHsmEnabled":false,"IsOwnerDirectReport":false,"IsDirectReportInOwningTeam":false,"IsReadAccessFromIndirectReport":false}'
    </TraceText>
    </OrganizationServiceFault>, error code - -2147220891

  • Suggested answer
    meelamri Profile Picture
    13,218 User Group Leader on at

    Hi,

    Good news, now you can easily find the needed privileges. Search all the words that begins with "prv", like prvCreateActivity. Hope this helps.

  • William Bradley Profile Picture
    175 on at

    Right, I see that privleges are needed on the Activity entity, especially since that WF creates an Activity for the user.  I assume that "Organization" level privleges are needed on Activity?  Right now the user that got the error has a Security Role that has "Parent: Child Business Units" level rights across the Activity entity.  Is this right?

  • Verified answer
    meelamri Profile Picture
    13,218 User Group Leader on at

    Yes !

  • Suggested answer
    meelamri Profile Picture
    13,218 User Group Leader on at

    Hi,

    Did you resolve your issue ?

  • William Bradley Profile Picture
    175 on at

    It did, although I am not sure why.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 196 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 129

#3
CU11031447-0 Profile Picture

CU11031447-0 100

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans