Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum

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

Posted on by Microsoft Employee

Hello, I am testing CRM on trial version after importing solution to trial and whenever I tried to save data on lead form, the error comes up.

Please help me how to solve it.

Thanks in advance.

pastedimage1562625735049v1.png

Error code: 0x80040217
Session Id: e35d7db0-7aed-4de1-a5a9-6f70b53d232f
Activity Id: d83a643a-a2cd-49ee-b984-64b8fbd7084c
Time: Mon Jul 08 2019 13:53:29 GMT-0700 (Pacific Daylight Time)


at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.Update(Entity entity, InvocationContext invocationContext, CallerOriginToken callerOriginToken, WebServiceType serviceType, Boolean checkAdminMode, Boolean checkForOptimisticConcurrency, Dictionary`2 optionalParameters)
at Microsoft.Crm.Extensibility.OData.CrmODataExecutionContext.Update(Entity entity, UpdateOption updateOption)
at Microsoft.Crm.Extensibility.OData.CrmODataServiceDataProvider.UpdateEdmEntity(CrmODataExecutionContext context, String edmEntityName, String entityKeyValue, EdmEntityObject entityObject)
at Microsoft.Crm.Extensibility.OData.EntityController.PatchEntityImplementation(String& entityName, String key, EdmEntityObject entityDelta)
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: d83a643a-a2cd-49ee-b984-64b8fbd7084c

  • LeoAlt Profile Picture
    LeoAlt 16,329 on at
    RE: The requested record was not found or you do not have sufficient permissions to view it

    Hi partner,

    Accordin to the error message, please check the following points.

    1. DId you have the permission to lead entity?

    2. Since you said that you imported the solution into your trial instance, did you import the complete lead compoments including related workflows, web resources..? Becasue the reason may be the related compoments of lead had been lost.

    If there's no problem with eith the points above, I suggest that you could clear the cache and cookies of your browser and try again.

    You could also refer to the similar samples.

    https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/273037/dynamics-365-online-record-is-unavailable-error-message-when-clicking-new-lead-button

    https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/256617/onsave-record-is-unavailable-error-in-ms-crm

    Hope it helps.

    Best Regards,

    Leo

  • Suggested answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: The requested record was not found or you do not have sufficient permissions to view it

    Hi,

    Thios error means that CRM is trying to reference a record which does not exists in this organization. As you have mentioned that you have imported a solution, it is possible that within that solution you have some process (Business Rule/ Workflow/ plugin) etc which has referenced to a record which does not exists.

    I would suggest to check if there is any business rule/ workflow on lead entity which is linked to any record.

    Hope this helps.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans