Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Web Application - Could not find entity

Posted on by Microsoft Employee

I have used the steps on this guide for the contact entity which works fine, however creating an additional WebForm and inserting the below code fails as shown below. Please help me out with an approach to fix the issue as I want to create a functional web page that points to the builtin Order entity.

msdn.microsoft.com/.../gg695790(v=crm.7).aspx
--Similar to (Create a webpage – Contact Form 1)

<crm:CrmDataSource ID="SalesOrder" runat="server" />
<crm:CrmEntityFormView DataSourceID="SalesOrders" EntityName="SalesOrder" SavedQueryName="Create Order WebForm" runat="server" />

Could not find entity
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Could not find entity

Source Error:


An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[FaultException`1: Could not find entity]
System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) +153
System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) +336
Microsoft.Xrm.Sdk.IOrganizationService.Execute(OrganizationRequest request) +0
Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy.ExecuteCore(OrganizationRequest request) +430
Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy.Execute(OrganizationRequest request) +10
Microsoft.Xrm.Client.Services.<>c__DisplayClass19.<Execute>b__18(IOrganizationService s) +15
Microsoft.Xrm.Client.Services.InnerOrganizationService.UsingService(Func`2 action) +124
Microsoft.Xrm.Client.Services.OrganizationService.Execute(OrganizationRequest request) +75
Microsoft.Xrm.Client.Services.CachedOrganizationService.InnerExecute(OrganizationRequest request) +136
Microsoft.Xrm.Client.Services.OrganizationServiceCache.InnerExecute(TRequest query, Func`2 execute, Func`2 selector) +12
Microsoft.Xrm.Client.Services.<>c__DisplayClass4`3.<LookupAndInsert>b__2(ObjectCache cache) +153
Microsoft.Xrm.Client.Caching.<>c__DisplayClass6`1.<Get>b__5(String key) +20
Microsoft.Xrm.Client.Threading.<>c__DisplayClass5`1.<Get>b__3() +39
Microsoft.Xrm.Client.Threading.<>c__DisplayClass1.<Lock>b__0(Mutex _) +10
Microsoft.Xrm.Client.Threading.MutexExtensions.Lock(String key, Int32 millisecondsTimeout, Action`1 action) +95
Microsoft.Xrm.Client.Threading.MutexLockProvider.Lock(String key, Int32 millisecondsTimeout, Action action) +69
Microsoft.Xrm.Client.Threading.LockProvider.Get(String key, Int32 millisecondsTimeout, Func`2 loadFromCache, Func`2 loadFromService) +162
Microsoft.Xrm.Client.Threading.LockProvider.Get(String key, Func`2 loadFromCache, Func`2 loadFromService) +77
Microsoft.Xrm.Client.Threading.LockManager.Get(String key, Func`2 loadFromCache, Func`2 loadFromService) +85
Microsoft.Xrm.Client.Caching.ObjectCacheProvider.Get(ObjectCache cache, String cacheKey, Func`2 load, Action`2 insert, String regionName) +199
Microsoft.Xrm.Client.Caching.ObjectCacheManager.Get(ObjectCache cache, String cacheKey, Func`2 load, Action`2 insert, String regionName) +91
Microsoft.Xrm.Client.Services.OrganizationServiceCache.LookupAndInsert(TRequest query, Func`2 execute, Func`2 selector, String selectorCacheKey) +281
Microsoft.Xrm.Client.Services.OrganizationServiceCache.Get(TRequest query, Func`2 execute, Func`2 selector, String selectorCacheKey) +71
Microsoft.Xrm.Client.Services.OrganizationServiceCache.InnerExecute(TRequest request, Func`2 execute, Func`2 selector, String selectorCacheKey) +144
Microsoft.Xrm.Client.Services.OrganizationServiceCache.Execute(OrganizationRequest request, Func`2 execute, Func`2 selector, String selectorCacheKey) +62
Microsoft.Xrm.Client.Services.CachedOrganizationService.Execute(OrganizationRequest request, Func`5 execute, Func`2 selector, String selectorCacheKey) +104
Microsoft.Xrm.Client.Services.CachedOrganizationService.Execute(OrganizationRequest request, Func`2 selector, String selectorCacheKey) +189
Microsoft.Xrm.Client.Services.CachedOrganizationService.Execute(OrganizationRequest request) +129
Microsoft.Xrm.Client.Services.CachedOrganizationService.Execute(OrganizationRequest request) +10
Microsoft.Xrm.Sdk.Client.OrganizationServiceContext.Execute(OrganizationRequest request) +84
Microsoft.Xrm.Client.Messages.OrganizationServiceContextExtensions.Return(OrganizationServiceContext context, OrganizationRequest request, String key) +22
Microsoft.Xrm.Client.Messages.OrganizationServiceContextExtensions.Execute(OrganizationServiceContext context, String requestName, IEnumerable`1 parameters, String key) +266
Microsoft.Xrm.Client.Messages.OrganizationServiceContextExtensions.RetrieveEntity(OrganizationServiceContext service, String logicalName, EntityFilters entityFilters, Boolean retrieveAsIfPublished) +209
Microsoft.Xrm.Portal.Web.UI.WebControls.CrmEntityFormView.OnInit(EventArgs e) +44
System.Web.UI.Control.InitRecursive(Control namingContainer) +139
System.Web.UI.Control.InitRecursive(Control namingContainer) +312
System.Web.UI.Control.InitRecursive(Control namingContainer) +312
System.Web.UI.Control.InitRecursive(Control namingContainer) +312
System.Web.UI.Control.InitRecursive(Control namingContainer) +312
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +408

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Web Application - Could not find entity

    I changed it to lowercase and it worked.

    Thanks a lot!

  • Verified answer
    ashlega Profile Picture
    ashlega 34,475 on at
    RE: Web Application - Could not find entity

    Hi, try sales order in lowercase for the entity name. It is probably case sensitive

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans