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

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Error while creating a new record.

(0) ShareShare
ReportReport
Posted on by

While creating a new record in the custom entity I am getting below error.

"The requested record was not found or you do not have sufficient permissions to view it."

More info:-

Error code: 0x80040217Session Id: a0aee625-8ed2-42be-85a2-76d0d599e8c0Activity Id: 4cba0836-4408-4189-8d1d-44fc04af1887Time: Mon Jan 06 2020 13:25:39 GMT+0530 (India Standard Time)

I am the system admin of the env.

pastedimage1578304700565v1.png

Error Log File:-

at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.CreateInternal(Entity entity, InvocationContext invocationContext, CallerOriginToken callerOriginToken, WebServiceType serviceType, Boolean checkAdminMode, Dictionary`2 optionalParameters)
at Microsoft.Crm.Extensibility.OData.CrmODataExecutionContext.CreateOrganizationResponse(Entity entity)
at Microsoft.Crm.Extensibility.OData.CrmODataServiceDataProvider.CreateEdmEntity(CrmODataExecutionContext context, String edmEntityName, EdmEntityObject entityObject, Boolean isUpsert)
at Microsoft.Crm.Extensibility.OData.EntityController.PostEntitySetImplementation(String& entitySetName, EdmEntityObject entityObject)
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: 4cba0836-4408-4189-8d1d-44fc04af1887

I have the same question (0)
  • Suggested answer
    ba365guy Profile Picture
    2,950 on at
    RE: Error while creating a new record.

    Very initial look at the logs show, there is a possibility that your access privilege for custom entity is the issue. 

    Can you check and confirm if the current user has read privilege? (You would have given create previlige but read privilege might be missing).

    Please re-check.

  • erhan.keskin Profile Picture
    2,253 on at
    RE: Error while creating a new record.

    Hi,

    - There might be a jscript method causing this on the form. E.g; a method is updating a lookup field with a value which is not valid in that environment.

    - There might be a plugin which updates, retrieves a record which is not valid in that environment.

    - If it is UCI, then use Classic form to see if it happens there.

    Regards,

  • Suggested answer
    Naveen Ganeshe Profile Picture
    3,397 User Group Leader on at
    RE: Error while creating a new record.

    Hello Naveen,

    This might be because of two reasons:

    • Temporary files in Browser: Try to clear the temp files and try to create record again.
    • Security Roles: Check if user have sufficient permission to view the records.

  • Suggested answer
    Ankit Sabharwal Profile Picture
    on at
    RE: Error while creating a new record.

    Hy Partner,

    To isolate the issue, you can heck whether there is any plugin , workflow or any web resources registered on Save event of an entity. If yes , kindly disable them one by one and then check. This will isolate the component which is a problem. 

    Also while creating the record, you can record a fiddler and check which record it is trying to find while creating a record.

    This will help in isolation of the problem and than you can check the logic of the same.

    Hope this helps.

    Best regards,

    Ankit

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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

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

#1
Siv Sagar Profile Picture

Siv Sagar 83 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 68

#3
Martin Dráb Profile Picture

Martin Dráb 60 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans