Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Unexpected error without System Administrator or System Customizer role

(0) ShareShare
ReportReport
Posted on by 55

Hi All, 

I have a model driven PowerApp and have customized the Project entity from the MS Project Solution (and added additional customer entities). Now i want to add security to my solution. I have created a role (called Project Managers) and given it all the security permissions that are required for my custom entities.

 

For users of the app i assigned common data service role (So that it takes care of all the basic access for me) in addition to my custom role (to give the required permissions for my custom entities). 

 

The problem is that i can navigate to any entity in my app without issue but if i tried to open a Project record i get the below error. If i assign the user System Admin or System Cusomizer role i do not get the error. 

Error.png

So to try and narrow down if it was any permissions i was missing i created another role (called Test Project Managers) and gave it permission to everything (In all the tabs below i gave all permissions). Essentially making the user a System Admin.  But it still gives an error. As soon as i assign the default System Admin or System Customizer role for the user i have no issues. 

Core.PNG

Custom.PNG

Would appreciate any guidance for this issue. 

Cheers

  • Henry J. Profile Picture
    Henry J. 5,237 on at
    RE: Unexpected error without System Administrator or System Customizer role

    Thank you for sharing the outcome, good to see support helped troubleshoot this

  • Verified answer
    PowerApps23 Profile Picture
    PowerApps23 55 on at
    RE: Unexpected error without System Administrator or System Customizer role

    I was able to solve the issue with the help of Microsoft support.  Thanks Henry and Ana for you help.

    For anyone in the future the issue was that even though i had given the user all the required roles I had not enabled the role on the form. Enabling the role like below solved the issue.

    Security-Solved.PNG

    Cheers

  • PowerApps23 Profile Picture
    PowerApps23 55 on at
    RE: Unexpected error without System Administrator or System Customizer role

    Hi Henry,

    Thanks for you response. I have submitted a ticket for this issue.

    Cheers.

  • PowerApps23 Profile Picture
    PowerApps23 55 on at
    RE: Unexpected error without System Administrator or System Customizer role

    Hi Ana,

    Thanks for your response. I have created a test role and given that test role every single permission and then assigned that test role to the user but i still get the error. I have even assigned a project record to the user with no luck.

    I need to deploy this application for UAT soon and i have run out of ideas to try.

    This is the error text. It does not contain an Activity ID:

    An error has occurred. [object Object] at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.Execute(OrganizationRequest request, InvocationContext invocationContext, CallerOriginToken callerOriginToken, WebServiceType serviceType, Boolean checkAdminMode, ExecutionContext executionContext, Dictionary`2 optionalParameters) at Microsoft.Crm.Extensibility.OData.CrmODataExecutionContext.Execute(OrganizationRequest request, ExecutionContext executionContext) at Microsoft.Crm.Extensibility.OData.CrmODataServiceDataProvider.ExecuteOperation(CrmODataExecutionContext context, EdmOperation edmOperation, Dictionary`2 parameters, Dictionary`2 boundParameters) at Microsoft.Crm.Extensibility.OData.ActionController.ProcessOperationRequest(String operationName, Dictionary`2 operationParameters, EntityReference entityReference, String boundEntityName, String boundEntityType) at Microsoft.Crm.Extensibility.OData.ActionController.<>c__DisplayClass12_0.<GetUnboundFunction>b__0() at Microsoft.Crm.Extensibility.OData.CrmODataUtilities.<>c__DisplayClass10_0`2.<InvokeActionAndLogMetric>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 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()

    Thanks.

  • Ana Almeida Profile Picture
    Ana Almeida on at
    RE: Unexpected error without System Administrator or System Customizer role

    Hello,

    To open a Project record it's necessary to have Edit permissions.

    This entity have relationships with project approvals, time entries and others. So you need to give permissions to the related entities as well.

    Can you check that?

    The error message contain an ActivityId? If yes, can you send me?

  • Suggested answer
    Henry J. Profile Picture
    Henry J. 5,237 on at
    RE: Unexpected error without System Administrator or System Customizer role

    The error message that you shared doesn't contain the typical missing security privilege that we see in case of security role issues.

    Can you open a Support Request so that you get help in troubleshooting this? https://admin.powerplatform.microsoft.com/support

    Henry

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey Pt 2

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,569 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans