Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Suggested answer

Business Process Error Log

Posted on by 175

D365 V9.0.  A user is getting a Business Process Error on a custom entity when attempting to save a record after entering data in a field "Assigned To User" (lookup).  I checked and all privleges to Security Roles look correct at first glance, but I cannot interpret this error log.  Does anyone know what privlege or function the below error log points to?

   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: bd7ebb47-1b35-48ff-ac06-263ec8c24726
  • sharma.sandeep82 Profile Picture
    sharma.sandeep82 743 on at
    RE: Business Process Error Log

    Hi Christopher,

    Try to give Global (Organization) level permission to the custom entity and its related entities and see still you are facing the same issue. Or try with the "System Administrator" security role. Assign "System Administrator" security role to your User ID and then check.

    --

    Thanks and Regards

    Sandeep Sharma

  • Suggested answer
    chauhanhardik Profile Picture
    chauhanhardik 685 on at
    RE: Business Process Error Log

    Hi Christopher,

    An user is missing privileges on "lennar_dealtrackertype" entity according to the second error log shared by you.

    Regards,

    Hardik Chauhan

  • RE: Business Process Error Log

    Hi Christopher,

    I would recommend to check the yellow highlighted parts of the last part on the expanded error message:

    {"Id":"ad485ade-e499-4198-8c61-49a66aaf489c","ObjectTypeCode":10181,"Name":"prvAppendTolennar_dealtrackertype","AccessRight":16,"PrivilegeType":7,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":true,"CanBeParentEntityReference":true}],"RightsToCheck":"ReadAccess","RoleAccessRights":"None","PoaAccessRights":"None","HsmAccessRights":"None","Messages":["PrincipalHasOwnerPrincipalWithAtLeastBasicPrivilegeDepth = False","EntityUserGroupRights = None","MinimumPrivilegeDepthRequired = Global","GrantedRights = None","SecLib::AccessCheckEx2 failed. Owner Data: User principal b79fe449-8ed9-e911-a971-000d3a34ecb7 is not found in UserDataCache; Principal Data: roleCount=1, privilegeCount=1009, accessMode=0"],"IsHsmEnabled":false,"IsOwnerDirectReport":false,"IsDirectReportInOwningTeam":false,"IsReadAccessFromIndirectReport":false}

    Based on the highlighted information, the "AppendTo" privilege on "lennar_dealtrackertype" entity is required with "Global" access level for user principal b79fe449-8ed9-e911-a971-000d3a34ecb7 and is currently missing.

    Is that the case in your testing scenario? Can you check the security roles of the affected user and see if that AppendTo privilege is configured?

  • William Bradley Profile Picture
    William Bradley 175 on at
    RE: Business Process Error Log

    I recently did a solution import of a Security Roles solution from DEV to QA.  I cannot reproduce the issue in DEV, but was able to in QA...which makes me think this is a Security Role issue (one works when applied while the other does not). I was hoping the error log would point that out like it used to in CRM previously, but I am having a hard time interpreting it.  That is why I posted it here...

    I also am using a Compare Security Role tool but have not gotten too far with that yet.  

  • asmaa bouhmidi2 Profile Picture
    asmaa bouhmidi2 5 on at
    RE: Business Process Error Log

    i thought the error occured to all users will in that case i think it s hard to determine the source of the error when you can't reproduce it by yourself

  • William Bradley Profile Picture
    William Bradley 175 on at
    RE: Business Process Error Log

    Thanks - I cannot reproduce the error as the logged in user, and also do not see any process errors on the workflows associated with this entity.  I do think it is user/permission related.

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Business Process Error Log

    if i were in your shoes i would start by verifying all plugins and workflow related to this entity, and i would deactivate (unregister in case of custom workflows and plugins) new newly-created workflows and try the update the record until i find the source of the problem, and you may also check the field dependencies in case you forgetting something ( an event related to this field or maybe a security field)

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Business Process Error Log

    I don't think the error is raised due to missing privileges, missing privileges message are clear, here is an example:

    2019_2D00_12_2D00_31_5F00_17h51_5F00_11.png

    I usually see the Business Process Error in custom workflows or plugins.

  • William Bradley Profile Picture
    William Bradley 175 on at
    RE: Business Process Error Log

    Here is what the error details in the Business Process Error looks like when expanded...this looks to be which privleges are missing in the Sec Role:

    {"CallerPrincipal":{"PrincipalId":"392999ec-5cc0-e911-a964-000d3a34ebf0","Type":8,"IsUserPrincipal":true,"IsTeamPrincipal":false,"TypeName":"user"},"OwnerPrincipal":{"PrincipalId":"b79fe449-8ed9-e911-a971-000d3a34ecb7","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":"817e69b7-fd27-ea11-a812-000d3a593b7c","ObjectTypeCode":10181,"ObjectBusinessUnitId":"6b512d94-28bb-e911-a842-000d3a36502f","OrganizationId":"a8d40671-2ce0-413b-a1d0-7e7b43c7ee6f","EntityName":"lennar_dealtrackertype","EntityOwnershipTypeMask":1,"EntityPrivileges":[{"Id":"25fc183f-7b63-4094-8451-2f4e7b07b72b","ObjectTypeCode":10181,"Name":"prvCreatelennar_dealtrackertype","AccessRight":32,"PrivilegeType":0,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":true,"CanBeParentEntityReference":true},{"Id":"28a7aeb1-e69f-4791-a57e-4a7eb4496a0c","ObjectTypeCode":10181,"Name":"prvReadlennar_dealtrackertype","AccessRight":1,"PrivilegeType":1,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":true,"CanBeParentEntityReference":true},{"Id":"aed44a56-ffe1-4656-b0f1-589af6265d73","ObjectTypeCode":10181,"Name":"prvWritelennar_dealtrackertype","AccessRight":2,"PrivilegeType":2,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":true,"CanBeParentEntityReference":true},{"Id":"e39d9086-a549-46bd-ab6f-711952a013f7","ObjectTypeCode":10181,"Name":"prvDeletelennar_dealtrackertype","AccessRight":65536,"PrivilegeType":3,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":true,"CanBeParentEntityReference":true},{"Id":"8db3c510-0d28-4247-bac8-c711709221d7","ObjectTypeCode":10181,"Name":"prvAssignlennar_dealtrackertype","AccessRight":524288,"PrivilegeType":4,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":true,"CanBeParentEntityReference":true},{"Id":"e746bf1d-bc39-4dd0-9c62-5a7b390b6fdf","ObjectTypeCode":10181,"Name":"prvSharelennar_dealtrackertype","AccessRight":262144,"PrivilegeType":5,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":true,"CanBeParentEntityReference":true},{"Id":"9c40b8ef-6ccb-45d6-af3b-c6fe8fbf8eab","ObjectTypeCode":10181,"Name":"prvAppendlennar_dealtrackertype","AccessRight":4,"PrivilegeType":6,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":true,"CanBeParentEntityReference":true},{"Id":"ad485ade-e499-4198-8c61-49a66aaf489c","ObjectTypeCode":10181,"Name":"prvAppendTolennar_dealtrackertype","AccessRight":16,"PrivilegeType":7,"CanBeBasic":true,"CanBeLocal":true,"CanBeDeep":true,"CanBeGlobal":true,"CanBeEntityReference":true,"CanBeParentEntityReference":true}],"RightsToCheck":"ReadAccess","RoleAccessRights":"None","PoaAccessRights":"None","HsmAccessRights":"None","Messages":["PrincipalHasOwnerPrincipalWithAtLeastBasicPrivilegeDepth = False","EntityUserGroupRights = None","MinimumPrivilegeDepthRequired = Global","GrantedRights = None","SecLib::AccessCheckEx2 failed. Owner Data: User principal b79fe449-8ed9-e911-a971-000d3a34ecb7 is not found in UserDataCache; Principal Data: roleCount=1, privilegeCount=1009, accessMode=0"],"IsHsmEnabled":false,"IsOwnerDirectReport":false,"IsDirectReportInOwningTeam":false,"IsReadAccessFromIndirectReport":false}

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Business Process Error Log

    do all users get the same error or only one user ? and did you tried to deactivate the workflow to see if the error is caused by the workflow?

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans