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 :
Customer Service forum

Unknown Entity Name The entity name doesn't exist. Please specify an existing entity name.

(0) ShareShare
ReportReport
Posted on by

Hi, 

I have a production and sandbox instance running, this morning I restored the latest backup to the sandbox and then copied to the production site. The production site works as expected but the sandbox throws up the message:

Unknown Entity Name

The entity name doesn't exist. Please specify an existing entity name.

When I navigate Sales/Opportunities. I also have the same problem/message when I try to open the default solution, I have another solution that contains the Opportunities entity that I can open but get the same message when I try and edit the forms!

I have tried copying the "working" production site back to the sandbox and resetting the sandbox and copying the prod site with the same result. 

Help would be much appreciated. 

Thank you, Glen

I have the same question (0)
  • Dynamics365 Rocker Profile Picture
    7,755 on at
    RE: Unknown Entity Name The entity name doesn't exist. Please specify an existing entity name.

    This is Known issue and it will get auto fixed by next AUTO update.

    Workaround:

    Create a dummy solution and add the entities.

    Customize it and publish.

    Then you changes will get reflected.

    Delete the solution once changes are done. This will retain the changes and will only delete the solution.

    You will get more details at below link:

    www.crmug.com/.../viewthread;CommunityKey=dc83c23b-ede0-4070-ae7a-dd90859148a6&tab=digestviewer

  • Community Member Profile Picture
    on at
    RE: Unknown Entity Name The entity name doesn't exist. Please specify an existing entity name.

    Hi Rocker,

    Thanks for the quick response, I did read this somewhere else. I have tried the workaround, I can create a new solution, add existing entity "Opportunities" click publish, same error, so I added sub components to customize a form but hit the same issue.:

    Unknown Entity Name

    The entity name doesn't exist. Please specify an existing entity name. If you contact support, please provide the technical details.

    When is the next auto update, can I force one? this has but a stop to all dev work :/ not cool

    Download log:

    Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Parent of subcomponent bef86bf8-c62f-4a5c-aec8-c84303ef74e2 of type SavedQuery is not found in the metadata cache.Detail:

    <OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance&quot; xmlns="schemas.microsoft.com/.../Contracts&quot;>

     <ActivityId>1ab0b44f-8783-4da1-8797-bc612de63725</ActivityId>

     <ErrorCode>-2147217150</ErrorCode>

     <ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic&quot;>

       <KeyValuePairOfstringanyType>

         <d2p1:key>ApiExceptionSourceKey</d2p1:key>

         <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema&quot; i:type="d4p1:string">Plugin/Microsoft.Crm.ObjectModel.SolutionComponentService</d2p1:value>

       </KeyValuePairOfstringanyType>

       <KeyValuePairOfstringanyType>

         <d2p1:key>ApiOriginalExceptionKey</d2p1:key>

         <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema&quot; i:type="d4p1:string">Microsoft.Crm.Metadata.EntityMetadataNotFoundException: Parent of subcomponent bef86bf8-c62f-4a5c-aec8-c84303ef74e2 of type SavedQuery is not found in the metadata cache. ---> Microsoft.Crm.Metadata.EntityMetadataNotFoundException: Parent of subcomponent bef86bf8-c62f-4a5c-aec8-c84303ef74e2 of type SavedQuery is not found in the metadata cache. ---> Microsoft.Crm.Metadata.EntityMetadataNotFoundException: The entity with ObjectTypeCode = 10207 was not found in the MetadataCache. MetadataCacheDetails: ProviderType=Dynamic, StandardCache=True, IsLoadedInStagedContext = False, Timestamp=6900850, MinActiveRowVersion=6900850

      at Microsoft.Crm.Metadata.DynamicMetadataCache.GetEntity(Int32 entityCode)

      at Microsoft.Crm.ObjectModel.SolutionComponentService.GetRootEntityIds(Int32 subComponentType, Guid subComponentId, ExecutionContext context)

      --- End of inner exception stack trace ---

      at Microsoft.Crm.ObjectModel.SolutionComponentService.GetRootEntityIds(Int32 subComponentType, Guid subComponentId, ExecutionContext context)

      at Microsoft.Crm.ObjectModel.SolutionComponentService.AddSubComponentToSolution(BusinessEntity entity, Boolean addRequiredComponents, Boolean ignoreException, ExecutionContext context)

      at Microsoft.Crm.ObjectModel.SolutionComponentService.AddRequiredComponentsToTheSolution(IBusinessEntity entity, BusinessEntityCollection allRoots, ExecutionContext context)

      at Microsoft.Crm.ObjectModel.SolutionComponentService.InternalAddAllSolutionComponents(IBusinessEntity entity, Boolean doNotIncludeSubcomponents, ExecutionContext context)

      at Microsoft.Crm.ObjectModel.SolutionComponentService.AddSubComponentToSolution(BusinessEntity entity, Boolean addRequiredComponents, Boolean ignoreException, ExecutionContext context)

      at Microsoft.Crm.ObjectModel.SolutionComponentService.AddSolutionComponentWithTelemetry(Boolean isSubcomponent, Boolean addRequiredComponents, SolutionComponent entity, Boolean doNotIncludeSubcomponents, ExecutionContext context, TelemetryExecutionToken executionToken, Boolean ignoreException)

      at Microsoft.Crm.ObjectModel.SolutionComponentService.AddSolutionComponent(Guid componentId, Int32 componentType, Guid solutionId, Boolean addRequiredComponents, Boolean doNotIncludeSubcomponents, String[] includedComponentSettingsValues, ExecutionContext context)

      at Microsoft.Crm.ObjectModel.SolutionComponentService.AddSolutionComponentByNameWithRootComponentBehavior(Guid componentId, Int32 componentType, String solutionUniqueName, Boolean addRequiredComponents, Boolean doNotIncludeSubcomponents, String[] includedComponentSettingsValues, ExecutionContext context)

      --- End of inner exception stack trace ---

      at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)

      at Microsoft.Crm.Extensibility.PipelineInstrumentationHelper.Execute(Boolean instrumentationEnabled, String stopwatchName, ExecuteWithInstrumentation action, PipelineExecutionContext context)

      at Microsoft.Crm.Extensibility.Pipeline.<>c__DisplayClass2_1.<Execute>b__0()</d2p1:value>

       </KeyValuePairOfstringanyType>

       <KeyValuePairOfstringanyType>

         <d2p1:key>ApiStepKey</d2p1:key>

         <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema&quot; i:type="d4p1:string">0a59e1b8-3f13-11dd-9bde-0019b9312238</d2p1:value>

       </KeyValuePairOfstringanyType>

       <KeyValuePairOfstringanyType>

         <d2p1:key>ApiDepthKey</d2p1:key>

         <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema&quot; i:type="d4p1:string">1</d2p1:value>

       </KeyValuePairOfstringanyType>

       <KeyValuePairOfstringanyType>

         <d2p1:key>ApiActivityIdKey</d2p1:key>

         <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema&quot; i:type="d4p1:string">1ab0b44f-8783-4da1-8797-bc612de63725</d2p1:value>

       </KeyValuePairOfstringanyType>

       <KeyValuePairOfstringanyType>

         <d2p1:key>ApiPluginSolutionNameKey</d2p1:key>

         <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema&quot; i:type="d4p1:string">System</d2p1:value>

       </KeyValuePairOfstringanyType>

       <KeyValuePairOfstringanyType>

         <d2p1:key>ApiStepSolutionNameKey</d2p1:key>

         <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema&quot; i:type="d4p1:string">System</d2p1:value>

       </KeyValuePairOfstringanyType>

     </ErrorDetails>

     <Message>Parent of subcomponent bef86bf8-c62f-4a5c-aec8-c84303ef74e2 of type SavedQuery is not found in the metadata cache.</Message>

     <Timestamp>2018-10-05T13:38:45.5800249Z</Timestamp>

     <ExceptionRetriable>false</ExceptionRetriable>

     <ExceptionSource i:nil="true" />

     <InnerFault i:nil="true" />

     <OriginalException i:nil="true" />

     <TraceText i:nil="true" />

    </OrganizationServiceFault>

    Cheers,

  • Community Member Profile Picture
    on at
    RE: Unknown Entity Name The entity name doesn't exist. Please specify an existing entity name.

    I have sales hub App in the sandbox, here I can see the list of opportunities but cannot open indervidual records:

    An error has occurred. [object Object] at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.Execute(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, Boolean checkAdminMode, ExecutionContext executionContext, Dictionary`2 optionalParameters)

    at Microsoft.Crm.Extensibility.OData.CrmODataExecutionContext.Execute(OrganizationRequest request, ExecutionContext executionContext)

    at Microsoft.Crm.Extensibility.OData.CrmODataServiceDataProvider.ExecuteOperation(CrmODataExecutionContext context, EdmOperation edmOperation, Dictionary`2 parameters, Dictionary`2 boundParameters)

    at Microsoft.Crm.Extensibility.OData.ActionController.ProcessOperationRequest(String operationName, Dictionary`2 operationParameters, EntityReference entityReference, String boundEntityName, String boundEntityType)

    at Microsoft.Crm.Extensibility.OData.ActionController.<>c__DisplayClass12_0.<GetUnboundFunction>b__0()

    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()

    Technical Details

    OK

  • Dynamics365 Rocker Profile Picture
    7,755 on at
    RE: Unknown Entity Name The entity name doesn't exist. Please specify an existing entity name.

    Have you deleted any views?

  • Suggested answer
    RaviKashyap Profile Picture
    55,410 Moderator on at
    RE: Unknown Entity Name The entity name doesn't exist. Please specify an existing entity name.

    Hi,

    You could try creating a new back up if it is holding your dev work. You can also contact Microsoft and request them for assistance in setting a sandbox.

    https://admin.dynamics.com

    Hope this helps.

  • Community Member Profile Picture
    on at
    RE: Unknown Entity Name The entity name doesn't exist. Please specify an existing entity name.

    The issue seems to have resolved itself over the weekend, very strange behaviour, no views were deleted @Rocker. It's very odd that the production and sandbox instance were idendical and from the same backup.

  • Suggested answer
    Tim Loring Profile Picture
    85 on at
    RE: Unknown Entity Name The entity name doesn't exist. Please specify an existing entity name.

    Having completed minimal copy and full restores of production back to sandbox instances I have noticed a consistency in that after each process has run that the 'sandbox instance' always states "unknown entity name".  Our procedure is now to wait 24 hours after the copy back before accessing the instance as it appears to correct itself after this time period.

    Whether it's Microsoft intervening or overnight tenant back up processes we do not know, however, it does consistently work as above for us

  • Suggested answer
    PhilKermeen Profile Picture
    912 on at
    RE: Unknown Entity Name The entity name doesn't exist. Please specify an existing entity name.

    Same issue - so i switched browser (firefox to chrome) and i went straight in.

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 > Customer Service

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans