Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

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

Posted on by 75

Unhandled exception:
Exception type: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]
Message: System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> Microsoft.Crm.CrmException: salesorder With Id = b37e4a0c-8e54-e911-a96e-000d3ab6d727 Does Not Exist
at Microsoft.Crm.Application.Platform.ServiceCommands.PlatformCommand.XrmExecuteInternal()
at Microsoft.Crm.Application.Platform.ServiceCommands.RetrieveCommand.Execute()
at Microsoft.Crm.Application.Platform.EntityProxy.Retrieve(String[] columns, Guid auditingTransactionId, Boolean addRequiredColumns)
at Microsoft.Crm.Application.Platform.EntityProxy.Retrieve(String[] columns, Boolean addRequiredColumns)
at Microsoft.Crm.Application.InlineEdit.ReadFormDataBuilder.LazyLoadEntity()
at System.Lazy`1.CreateValue()
at System.Lazy`1.LazyInitValue()
at Microsoft.Crm.Application.InlineEdit.ReadFormDataBuilder.WriteFormDataJson(TextWriter writer)
at Microsoft.Crm.Application.InlineEdit.ReadFormDataBuilder.WriteFormattedEntityData(TextWriter writer, Boolean isTurboForm)
at Microsoft.Crm.Application.Pages.Form.FormDataPage.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously): Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #A0B71E86Detail:
<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
<ActivityId>b000fc95-d661-4eee-a9a3-fd811c04a8c8</ActivityId>
<ErrorCode>-2147220970</ErrorCode>
<ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic" />
<Message>System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---&gt; Microsoft.Crm.CrmException: salesorder With Id = b37e4a0c-8e54-e911-a96e-000d3ab6d727 Does Not Exist
at Microsoft.Crm.Application.Platform.ServiceCommands.PlatformCommand.XrmExecuteInternal()
at Microsoft.Crm.Application.Platform.ServiceCommands.RetrieveCommand.Execute()
at Microsoft.Crm.Application.Platform.EntityProxy.Retrieve(String[] columns, Guid auditingTransactionId, Boolean addRequiredColumns)
at Microsoft.Crm.Application.Platform.EntityProxy.Retrieve(String[] columns, Boolean addRequiredColumns)
at Microsoft.Crm.Application.InlineEdit.ReadFormDataBuilder.LazyLoadEntity()
at System.Lazy`1.CreateValue()
at System.Lazy`1.LazyInitValue()
at Microsoft.Crm.Application.InlineEdit.ReadFormDataBuilder.WriteFormDataJson(TextWriter writer)
at Microsoft.Crm.Application.InlineEdit.ReadFormDataBuilder.WriteFormattedEntityData(TextWriter writer, Boolean isTurboForm)
at Microsoft.Crm.Application.Pages.Form.FormDataPage.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously): Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #A0B71E86</Message>
<Timestamp>2019-04-05T09:19:40.316494Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault>
<ActivityId>b000fc95-d661-4eee-a9a3-fd811c04a8c8</ActivityId>
<ErrorCode>-2147220969</ErrorCode>
<ErrorDetails xmlns:d3p1="schemas.datacontract.org/.../System.Collections.Generic" />
<Message>salesorder With Id = b37e4a0c-8e54-e911-a96e-000d3ab6d727 Does Not Exist</Message>
<Timestamp>2019-04-05T09:19:40.316494Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault i:nil="true" />
<OriginalException i:nil="true" />
<TraceText>
[Microsoft.Dynamics.Sales.Plugins: Microsoft.Dynamics.Sales.Plugins.PreOperationSalesOrderRetrieve]
[cec05255-4968-e611-80e9-00155d324500: Retrieve of salesorder]
Entered Microsoft.Dynamics.Sales.Plugins.AddressComputationOnReadPrePlugin.Execute(), Correlation Id: cd802259-93f6-48fe-800f-7a75c9ab4e0a, Initiating User: 6cfeae5f-cfa5-4756-a436-9608c95a9728
Exiting Microsoft.Dynamics.Sales.Plugins.AddressComputationOnReadPrePlugin.Execute(), Correlation Id: cd802259-93f6-48fe-800f-7a75c9ab4e0a, Initiating User: 6cfeae5f-cfa5-4756-a436-9608c95a9728
Entered Microsoft.Dynamics.Sales.Plugins.PreOperationSalesOrderRetrieve.Execute(), Correlation Id: cd802259-93f6-48fe-800f-7a75c9ab4e0a, Initiating User: 6cfeae5f-cfa5-4756-a436-9608c95a9728
Exception: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: salesorder With Id = b37e4a0c-8e54-e911-a96e-000d3ab6d727 Does Not Exist (Fault Detail is equal to Exception details:
ErrorCode: 0x80040217
Message: salesorder With Id = b37e4a0c-8e54-e911-a96e-000d3ab6d727 Does Not Exist
TimeStamp: 2019-04-05T09:19:40.3035005Z
--
Exception details:
ErrorCode: 0x80040217
Message: salesorder With Id = b37e4a0c-8e54-e911-a96e-000d3ab6d727 Does Not Exist
TimeStamp: 2019-04-05T09:19:40.3035005Z
--
)., Correlation Id: cd802259-93f6-48fe-800f-7a75c9ab4e0a, Initiating User: 6cfeae5f-cfa5-4756-a436-9608c95a9728
Exiting Microsoft.Dynamics.Sales.Plugins.PreOperationSalesOrderRetrieve.Execute(), Correlation Id: cd802259-93f6-48fe-800f-7a75c9ab4e0a, Initiating User: 6cfeae5f-cfa5-4756-a436-9608c95a9728
</TraceText>
</InnerFault>
<OriginalException i:nil="true" />
<TraceText i:nil="true" />
</OrganizationServiceFault>

*This post is locked for comments

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

    Hi Maureen,

    Check the user( Initiating User: 6cfeae5f-cfa5-4756-a436-9608c95a9728) having sufficient access of salesorder entity. If you have any role based  forms also check if user assigned security role having access in the forms.

    Also check with System Administrator role whether salesorder With Id = b37e4a0c-8e54-e911-a96e-000d3ab6d727 is exists in the  system.

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

    Hi

    This message "salesorder With Id = b37e4a0c-8e54-e911-a96e-000d3ab6d727 Does Not Exist" clearly states that the record does not exist. Could you please check if you are accessing the correct CRM instance for this ? if so the record is deleted it looks like.

  • Suggested answer
    Rawish Kumar Profile Picture
    Rawish Kumar 13,756 on at
    RE: The requested record was not found or you do not have sufficient permissions to view it

    Would you please let us know when are you getting this error? i.e on what event/trigger.

    two cases.

    1. are you getting this error using an administrator rol because it complains regarding insufficient permission.

    2. if you are getting this error in the plugin ( which i think is the case) - you retrieving and doing operation on that sales order even before it is created in the database. hence you get error that sales order with id doesnt exist ( remember that id is temporary).

    If above doesnt give you a hint of what to do. you can post your code here.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

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