Hi Johnny,
Thanks for your response! I didn't see it till today, but still in good time!
The error came up as a user was testing a workflow, and the workflow failed. When looking at the Plugin Trace this line was in the message. The full trace was long but I'll place it below.
I do agree that the error appears to be an access issue, but I can't see why the access issue would occur. The workflow is to generate an invoice for a set process, and the tester has the profile of the team members that would need to trigger this.
I'm not sure if this is still similar ot the issue that your customer had, but I'm open to any thoughts on this one :)
Plugin Trace:
[ECWorkflows: ECWorkflows.CreateRInvoices]
[ECWorkflows(1.0.0.0): ECWorkflows.CreateRInvoices]
Inside CreateRInvoices workflow
Inside CreateRInvoices workflow
entity type is: account
account id is:- 54900380-fc49-e911-a876-000d3ad27a05
_childAccounts count:- 0
_subsColl count:- 1
exception occured: {"CallerPrincipal":{"PrincipalId":"2f47f99e-36b2-4747-9c4c-6e388ee06742","Type":8,"IsUserPrincipal":true,"IsTeamPrincipal":false,"TypeName":"user"},"OwnerPrincipal":{"PrincipalId":"00000000-0000-0000-0000-000000000000","Type":8,"IsUserPrincipal":true,"IsTeamPrincipal":false,"TypeName":"user"},"ObjectId":"20c38e00-ac1c-4b11-b83b-4a5ca63c242f","ObjectTypeCode":7100,"ObjectBusinessUnitId":"9d85c250-59c1-4f16-91ce-37557b1393b3","OrganizationId":"9d85c250-59c1-4f16-91ce-37557b1393b3","EntityName":"solution","EntityOwnershipTypeMask":8,"RightsToCheck":"ReadAccess","RoleAccessRights":"None","PoaAccessRights":"None","HsmAccessRights":"None","Messages":["PrincipalHasOwnerPrincipalWithAtLeastBasicPrivilegeDepth = False","EntityUserGroupRights = None","MinimumDepthRequired = Global","GrantedRights = ReadAccess","PrincipalHasOwnerPrincipalWithAtLeastBasicPrivilegeDepth = False","EntityUserGroupRights = None","MinimumDepthRequired = Global","GrantedRights = ReadAccess","PrincipalHasOwnerPrincipalWithAtLeastBasicPrivilegeDepth = False","EntityUserGroupRights = None","MinimumDepthRequired = Global","GrantedRights = ReadAccess","PrincipalHasOwnerPrincipalWithAtLeastBasicPrivilegeDepth = False","EntityUserGroupRights = None","MinimumDepthRequired = Global","GrantedRights = ReadAccess","PrincipalHasOwnerPrincipalWithAtLeastBasicPrivilegeDepth = False","EntityUserGroupRights = None","MinimumDepthRequired = Global","GrantedRights = ReadAccess","PrincipalHasOwnerPrincipalWithAtLeastBasicPrivilegeDepth = False","EntityUserGroupRights = None","MinimumDepthRequired = Global","GrantedRights = ReadAccess","PrincipalHasOwnerPrincipalWithAtLeastBasicPrivilegeDepth = False","EntityUserGroupRights = None","MinimumDepthRequired = Global","GrantedRights = ReadAccess","PrincipalHasOwnerPrincipalWithAtLeastBasicPrivilegeDepth = False","EntityUserGroupRights = None","MinimumDepthRequired = Global","GrantedRights = ReadAccess","PrincipalHasOwnerPrincipalWithAtLeastBasicPrivilegeDepth = False","EntityUserGroupRights = None","MinimumDepthRequired = Local","GrantedRights = None","SecLib::AccessCheckEx2 failed. Owner Data: roleCount=5, privilegeCount=2618, accessMode=0; Principal Data: roleCount=2, privilegeCount=890, accessMode=0"]}
Error Message:
Unhandled exception:
Exception type: Microsoft.Xrm.Sdk.InvalidPluginExecutionException
Message: Error in Execute: {"CallerPrincipal":{"PrincipalId":"2f47f99e-36b2-4747-9c4c-6e388ee06742","Type":8,"IsUserPrincipal":true,"IsTeamPrincipal":false,"TypeName":"user"},"OwnerPrincipal":{"PrincipalId":"00000000-0000-0000-0000-000000000000","Type":8,"IsUserPrincipal":true,"IsTeamPrincipal":false,"TypeName":"user"},"ObjectId":"20c38e00-ac1c-4b11-b83b-4a5ca63c242f","ObjectTypeCode":7100,"ObjectBusinessUnitId":"9d85c250-59c1-4f16-91ce-37557b1393b3","OrganizationId":"9d85c250-59c1-4f16-91ce-37557b1393b3","EntityName":"solution","EntityOwnershipTypeMask":8,"RightsToCheck":"ReadAccess","RoleAccessRights":"None","PoaAccessRights":"None","HsmAccessRights":"None","Messages":["PrincipalHasOwnerPrincipalWithAtLeastBasicPrivilegeDepth = False","EntityUserGroupRights = None","MinimumDepthRequired = Global","GrantedRights = ReadAccess","PrincipalHasOwnerPrincipalWithAtLeastBasicPrivilegeDepth = False","EntityUserGroupRights = None","MinimumDepthRequired = Global","GrantedRights = ReadAccess","PrincipalHasOwnerPrincipalWithAtLeastBasicPrivilegeDepth = False","EntityUserGroupRights = None","MinimumDepthRequired = Global","GrantedRights = ReadAccess","PrincipalHasOwnerPrincipalWithAtLeastBasicPrivilegeDepth = False","EntityUserGroupRights = None","MinimumDepthRequired = Global","GrantedRights = ReadAccess","PrincipalHasOwnerPrincipalWithAtLeastBasicPrivilegeDepth = False","EntityUserGroupRights = None","MinimumDepthRequired = Global","GrantedRights = ReadAccess","PrincipalHasOwnerPrincipalWithAtLeastBasicPrivilegeDepth = False","EntityUserGroupRights = None","MinimumDepthRequired = Global","GrantedRights = ReadAccess","PrincipalHasOwnerPrincipalWithAtLeastBasicPrivilegeDepth = False","EntityUserGroupRights = None","MinimumDepthRequired = Global","GrantedRights = ReadAccess","PrincipalHasOwnerPrincipalWithAtLeastBasicPrivilegeDepth = False","EntityUserGroupRights = None","MinimumDepthRequired = Global","GrantedRights = ReadAccess","PrincipalHasOwnerPrincipalWithAtLeastBasicPrivilegeDepth = False","EntityUserGroupRights = None","MinimumDepthRequired = Local","GrantedRights = None","SecLib::AccessCheckEx2 failed. Owner Data: roleCount=5, privilegeCount=2618, accessMode=0; Principal Data: roleCount=2, privilegeCount=890, accessMode=0"]}
-- End stack trace --