question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Admin | Sync Template v2 (Power Apps User Shared With) Error

See original GitHub issue

Describe the bug I am getting error for invalid type for entity id value at Insert Power Platform User action.

Component (please tell us which flow or app you are experiencing issues with):

  • Solution - Core
  • Version - 1.54
  • Flow - Admin | Sync Template v2 (Power Apps User Shared With)

To Reproduce Steps to reproduce the behavior:

  1. Go to
  2. Click on ‘…’
  3. Scroll down to ‘…’
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem. image

image

Additional context { “error”: { “code”: “0x80040203”, “message”: “Invalid type for entity id value”, “innererror”: { “message”: “Invalid type for entity id value”, “type”: “System.ServiceModel.FaultException1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]", "stacktrace": " at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.CreateInternal(Entity entity, InvocationContext invocationContext, CallerOriginToken callerOriginToken, WebServiceType serviceType, Boolean checkAdminMode, Dictionary2 optionalParameters)\r\n at Microsoft.Crm.Extensibility.OData.CrmODataExecutionContext.CreateOrganizationResponse(Entity entity)\r\n at Microsoft.Crm.Extensibility.OData.CrmODataServiceDataProvider.CreateEdmEntity(CrmODataExecutionContext context, String edmEntityName, EdmEntityObject entityObject, Boolean isUpsert)\r\n at Microsoft.Crm.Extensibility.OData.EntityController.PostEntitySetImplementation(String& entitySetName, EdmEntityObject entityObject)\r\n at Microsoft.Crm.Extensibility.OData.CrmODataUtilities.<>c__DisplayClass10_02.<InvokeActionAndLogMetric>b__0()\r\n at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute[TResult](ILogger logger, EventId eventId, ActivityType activityType, Func1 func, IEnumerable1 additionalCustomProperties)\r\n at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute[TResult](ILogger logger, XrmTelemetryActivityType activityType, Func1 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()” }, “@Microsoft.PowerApps.CDS.ErrorDetails.ValidationPath”: “/0”, “@Microsoft.PowerApps.CDS.ErrorDetails.ApiExceptionSourceKey”: “Api/PrePipeline”, “@Microsoft.PowerApps.CDS.ErrorDetails.ApiStepKey”: “00000000-0000-0000-0000-000000000000”, “@Microsoft.PowerApps.CDS.ErrorDetails.ApiDepthKey”: “0”, “@Microsoft.PowerApps.CDS.ErrorDetails.ApiActivityIdKey”: “509ffc31-8ffd-4681-b623-8bade033c170”, “@Microsoft.PowerApps.CDS.ErrorDetails.ApiPluginSolutionNameKey”: “System”, “@Microsoft.PowerApps.CDS.ErrorDetails.ApiStepSolutionNameKey”: “System”, “@Microsoft.PowerApps.CDS.ErrorDetails.ApiExceptionCategory”: “ClientError”, “@Microsoft.PowerApps.CDS.ErrorDetails.ApiExceptionMesageName”: “InvalidArgument”, “@Microsoft.PowerApps.CDS.ErrorDetails.ApiExceptionHttpStatusCode”: “400”, “@Microsoft.PowerApps.CDS.HelpLink”: “http://go.microsoft.com/fwlink/?LinkID=398563&error=Microsoft.Crm.CrmException%3A80040203&client=platform”, “@Microsoft.PowerApps.CDS.InnerError.Message”: “Invalid type for entity id value” } }

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11

github_iconTop GitHub Comments

1reaction
aakashpatel660commented, Aug 18, 2020

Thank you so much for your all help and thank you for the CoE Kit. Issue has been resolved.

0reactions
JeneferM-MSFTcommented, Aug 17, 2020

Did you try the flow that was released yesterday to the GitHub repository? It had an additional change from a colleague.

Here is just that flow from the download:

AdminSyncTemplatev2(PowerAppsUserSharedWith)_20200817233107.zip

Read more comments on GitHub >

github_iconTop Results From Across the Web

Solved: Error [CoE starter kit] Admin | Sync Template fail...
Solved: Hi, I'm currently setting up the CoE core components and the admin | sync template flow is failing. I have followed Microsoft...
Read more >
Use core components - Power Platform
The following information is available for each sync flow error: ... CLEANUP - Admin | Sync Template v3 (Power Apps User Shared With) ......
Read more >
Set up inventory components - Power Platform
The Admin | Sync Template flows part of this solution crawl through all the resources stored in your Microsoft Power Platform environments and ......
Read more >
Common issues and resolutions for Power Apps
A list of common issues and resolutions within Power Apps. ... Or; You're explicitly shared the app with (as a user, or as...
Read more >
Power Platform for Admins - Connectors
Power Platform for Admins is a connector interface to access the Business Applications Platform (BAP) API, which is used to manage the admin-related ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found