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,...
Suggested Answer

Business Process Error Log

(0) ShareShare
ReportReport
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
I have the same question (0)
  • Community Member Profile Picture
    on at

    is there any workflow or plugin that is set to be triggered when changing the "Assigned to user" field ?

  • William Bradley Profile Picture
    175 on at

    Thanks for the reply!  Yes, there is a synchronous workflow that fires when "Assigned To User" contains data that updates two other fields (Assigned By and Assigned On).  

  • Community Member Profile Picture
    on at

    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?

  • William Bradley Profile Picture
    175 on at

    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
    on at

    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.

  • Suggested answer
    Community Member Profile Picture
    on at

    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)

  • William Bradley Profile Picture
    175 on at

    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.

  • asmaa bouhmidi2 Profile Picture
    5 on at

    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
    175 on at

    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.  

  • Ioannis Vrasenikis Profile Picture
    Microsoft Employee on at

    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?

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 April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 69 Most Valuable Professional

#2
ManoVerse Profile Picture

ManoVerse 55 Super User 2026 Season 1

#3
11manish Profile Picture

11manish 37

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans