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

Announcements

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Business Process Error while opportunity closed.

(0) ShareShare
ReportReport
Posted on by

Hi

While an Opportunity won it showing below errors today. Can you please anyone help.

oppp.jpg

{"ActivityId":"9c5bdfdf-ae9a-4385-9a35-c3539f793f7e","errorCode":2147746405,"message":"{\"CallerPrincipal\":{\"PrincipalId\":\"4f5c9322-aca8-e611-813a-c4346bdd11d1\",\"Type\":8,\"IsUserPrincipal\":true,\"IsTeamPrincipal\":false,\"TypeName\":\"user\"},\"OwnerPrincipal\":{\"PrincipalId\":\"00000000-0000-0000-0000-000000000000\",\"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\":\"455c9322-aca8-e611-813a-c4346bdd11d1\",\"ObjectTypeCode\":8,\"ObjectBusinessUnitId\":\"a8429910-0dbd-e611-8115-c4346bdcff61\",\"OrganizationId\":\"bbe4e28c-7893-4995-9da1-29f5dff72503\",\"EntityName\":\"systemuser\",\"EntityOwnershipTypeMask\":4,\"EntityPrivileges\":[{\"Id\":\"0a3d4421-af6d-42ed-b3c2-b51deb73d1d5\",\"ObjectTypeCode\":8,\"Name\":\"prvCreateUser\",\"AccessRight\":32,\"PrivilegeType\":0,\"CanBeBasic\":false,\"CanBeLocal\":true,\"CanBeDeep\":true,\"CanBeGlobal\":true,\"CanBeEntityReference\":true,\"CanBeParentEntityReference\":true},{\"Id\":\"76faad15-bc44-4f4d-84dc-dd1e1dda74d9\",\"ObjectTypeCode\":8,\"Name\":\"prvReadUser\",\"AccessRight\":1,\"PrivilegeType\":1,\"CanBeBasic\":false,\"CanBeLocal\":true,\"CanBeDeep\":true,\"CanBeGlobal\":true,\"CanBeEntityReference\":true,\"CanBeParentEntityReference\":true},{\"Id\":\"dbb088d1-c7b7-40e7-8728-fdedb539319c\",\"ObjectTypeCode\":8,\"Name\":\"prvWriteUser\",\"AccessRight\":2,\"PrivilegeType\":2,\"CanBeBasic\":false,\"CanBeLocal\":true,\"CanBeDeep\":true,\"CanBeGlobal\":true,\"CanBeEntityReference\":true,\"CanBeParentEntityReference\":true},{\"Id\":\"84d66926-87d4-4489-b21a-451b01ec0c41\",\"ObjectTypeCode\":8,\"Name\":\"prvAppendUser\",\"AccessRight\":4,\"PrivilegeType\":6,\"CanBeBasic\":false,\"CanBeLocal\":true,\"CanBeDeep\":true,\"CanBeGlobal\":true,\"CanBeEntityReference\":false,\"CanBeParentEntityReference\":false},{\"Id\":\"3399e6d2-dd3c-4a14-8433-39c1eca27aaa\",\"ObjectTypeCode\":8,\"Name\":\"prvAppendToUser\",\"AccessRight\":16,\"PrivilegeType\":7,\"CanBeBasic\":false,\"CanBeLocal\":true,\"CanBeDeep\":true,\"CanBeGlobal\":true,\"CanBeEntityReference\":false,\"CanBeParentEntityReference\":false},{\"Id\":\"2759a407-c37f-4955-aa64-05f44bb88402\",\"ObjectTypeCode\":8,\"Name\":\"prvReparentUser\",\"AccessRight\":0,\"PrivilegeType\":-1,\"CanBeBasic\":false,\"CanBeLocal\":true,\"CanBeDeep\":true,\"CanBeGlobal\":true,\"CanBeEntityReference\":false,\"CanBeParentEntityReference\":false},{\"Id\":\"28c3a786-82a5-4ff6-8d54-4876db4ba2f8\",\"ObjectTypeCode\":8,\"Name\":\"prvAssignManager\",\"AccessRight\":0,\"PrivilegeType\":-1,\"CanBeBasic\":false,\"CanBeLocal\":true,\"CanBeDeep\":true,\"CanBeGlobal\":true,\"CanBeEntityReference\":false,\"CanBeParentEntityReference\":false},{\"Id\":\"095860d1-42de-4efc-8d53-4b60e74d3d26\",\"ObjectTypeCode\":8,\"Name\":\"prvDisableUser\",\"AccessRight\":0,\"PrivilegeType\":-1,\"CanBeBasic\":false,\"CanBeLocal\":true,\"CanBeDeep\":true,\"CanBeGlobal\":true,\"CanBeEntityReference\":false,\"CanBeParentEntityReference\":false},{\"Id\":\"d5b32fc2-2f74-486b-a2d5-7a2506d1e580\",\"ObjectTypeCode\":8,\"Name\":\"prvAssignTerritory\",\"AccessRight\":0,\"PrivilegeType\":-1,\"CanBeBasic\":false,\"CanBeLocal\":true,\"CanBeDeep\":true,\"CanBeGlobal\":true,\"CanBeEntityReference\":false,\"CanBeParentEntityReference\":false}],\"RightsToCheck\":\"ReadAccess\",\"RoleAccessRights\":\"None\",\"PoaAccessRights\":\"None\",\"HsmAccessRights\":\"None\",\"Messages\":[\"PrincipalHasOwnerPrincipalWithAtLeastBasicPrivilegeDepth = False\",\"EntityUserGroupRights = None\",\"MinimumPrivilegeDepthRequired = Global\",\"GrantedRights = None\",\"SecLib::AccessCheckEx2 failed. Owner Data: User principal 00000000-0000-0000-0000-000000000000 is not found in UserDataCache; Principal Data: roleCount=5, privilegeCount=619, accessMode=0\"],\"IsHsmEnabled\":false,\"IsOwnerDirectReport\":false,\"IsDirectReportInOwningTeam\":false,\"IsReadAccessFromIndirectReport\":false}","stacktrace":"   at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.Execute(OrganizationRequest request, InvocationContext invocationContext, CallerOriginToken callerOriginToken, WebServiceType serviceType, Boolean checkAdminMode, ExecutionContext executionContext, Dictionary`2 optionalParameters)\r\n   at Microsoft.Crm.Extensibility.OData.CrmODataExecutionContext.Execute(OrganizationRequest request, ExecutionContext executionContext)\r\n   at Microsoft.Crm.Extensibility.OData.CrmODataServiceDataProvider.ExecuteOperation(CrmODataExecutionContext context, EdmOperation edmOperation, Dictionary`2 parameters, Dictionary`2 boundParameters)\r\n   at Microsoft.Crm.Extensibility.OData.ActionController.ProcessOperationRequest(String operationName, Dictionary`2 operationParameters, EntityReference entityReference, String boundEntityName, String boundEntityType)\r\n   at Microsoft.Crm.Extensibility.OData.ActionController.<>c__DisplayClass9_0.<PostUnboundAction>b__0()\r\n   at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute[TResult](ILogger logger, EventId eventId, ActivityType activityType, Func`1 func, IEnumerable`1 additionalCustomProperties)\r\n   at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute[TResult](ILogger logger, XrmTelemetryActivityType activityType, Func`1 func)\r\n   at lambda_method(Closure , Object , Object[] )\r\n   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.<GetExecutor>b__9(Object instance, Object[] methodParameters)\r\n   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__1.MoveNext()","Timestamp":1577955398137}

I have the same question (0)
  • Bankole Oni Profile Picture
    10 on at

    there are a few ways to troubleshoot as the issue is related to the user privilege:

    1. confirm the system admin can perform this function.

    2.please check the user security role.

    3. confirm the users business unit(please move user to parent if user belong to child business unit and assign same security role).

    3. try again and if the issue persist you will see the exact missing security role the user requires.

    please let me know if the issue persist or mark as verified if this resolves your issues.

  • AJ-22040756-0 Profile Picture
    on at

    Hi Partner

    From the Trace logs, this seems to be an issue with the security role for the affected user. you can isolate this issue by performing any of the following steps:

    1. Check if the affected user has the required security privileges  for "process session" for the Business process flow which is running at the time of closing the opportunity

    pastedimage1578019822971v1.png

    2. Check if System Administrator is able to close the opportunity without the error

    3. Compared security role with working and non-working user so that this can be identified which security role is missing for affected user

    Hope this helps.

    Best regards,

    Akash

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

  • Community Member Profile Picture
    on at

    Hi Akash,

    Thank you for your response.

    Yes, the system administrator was able to close.

    This error was for the sales head role (BU head), who was not an owner of the record but having access to do all operations.

    Below for Process session :

    precess.PNG

  • Community Member Profile Picture
    on at

    Error was showing for specific user. Not for all users. This user had already used it previously but now he was unable to close.

  • AJ-22040756-0 Profile Picture
    on at

    Hi Partner,

    Check if any changes occurred for the affected user, such as change of Teams or for any business Unit or any security role sue to which it stopped working 

    Try to elevate the permission for the affected user and check, Give the higher security role or assign it to a different teams or BU so that this can be isolated.  From the traces there is some issue with security privilege

    Hope this helps.

    Best regards,

    Akash

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums

  • Community Member Profile Picture
    on at

    Thank you.

    Lets try & let U know.

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!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 69 Super User 2026 Season 1

#2
BillurSamdancioglu Profile Picture

BillurSamdancioglu 55 Most Valuable Professional

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 55 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans