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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Error: There should be at least one metadata entity returned for Id

(0) ShareShare
ReportReport
Posted on by 587

Hi,

I'm trying to apply upgrade for my solution but i'm getting this error 

"There should be at least one metadata entity returned for Id: a9c48d61-9680-4fd2-858a-f9937380f121"

Any one face it before 

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Arun Vinoth Profile Picture
    11,615 Moderator on at

    When you say upgrade is it an upgraded managed solution you are importing?

    Share the full log, exact repro steps & what are all the solution components available inside. Try different browsers, SA login, Publish All customizations before doing anything may help.

    If it’s crm onpremise - people sorted out as some AD permission issue: community.dynamics.com/.../146675

  • Abbod Hamwi Profile Picture
    587 on at

    Hi,

    I have a solution called warehouse management and i have patches for it, i was testing in QC Instance before doing the update in Production, once i import the solution from Sandbox (Full solution), the operation of the import will complete but when i will click apply solution upgrade as it will be imported as holding solution i will get the error,

    Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: There should be at least one metadata entity returned for Id: a9c48d61-9680-4fd2-858a-f9937380f121Detail: 
    <OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
      <ActivityId>397be9ed-7ae0-4f7b-9947-5519c507ab45</ActivityId>
      <ErrorCode>-2147220970</ErrorCode>
      <ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic">
        <KeyValuePairOfstringanyType>
          <d2p1:key>ApiExceptionSourceKey</d2p1:key>
          <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">Plugin/Microsoft.Crm.ObjectModel.SolutionService</d2p1:value>
        </KeyValuePairOfstringanyType>
        <KeyValuePairOfstringanyType>
          <d2p1:key>ApiOriginalExceptionKey</d2p1:key>
          <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">Microsoft.Crm.CrmException: There should be at least one metadata entity returned for Id: a9c48d61-9680-4fd2-858a-f9937380f121 ---> Microsoft.Crm.CrmException: There should be at least one metadata entity returned for Id: a9c48d61-9680-4fd2-858a-f9937380f121
       at Microsoft.Crm.CrmException.Assert(Boolean condition, String message, Object[] args)
       at Microsoft.Crm.BusinessEntities.MetadataEntityFacadeBridge.RetrieveEntity(Guid id, ExecutionContext context)
       at Microsoft.Crm.BusinessEntities.ManagedPropertyExtension.RetrieveDatabaseEntity(String platformName, Guid id, Boolean isMetadata, ExecutionContext context)
       at Microsoft.Crm.Platform.MetadataBusinessEntities.ManagedPropertyMetadataExtension.RemoveManagedPropertiesIfNecessary(MetadataBusinessEntity entity, ExecutionContext context)
       at Microsoft.Crm.Platform.MetadataBusinessEntities.ManagedPropertyMetadataExtension.ValidateForUpdate(MetadataBusinessEntity entity, ExecutionContext executionContext)
       at Microsoft.Crm.Platform.MetadataBusinessEntities.MetadataProcessObject.<>c__DisplayClass9_0.<Update>b__0()
       at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action, IEnumerable`1 additionalCustomProperties)
       at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action)
       at Microsoft.Crm.Platform.MetadataBusinessEntities.LocalizedLabelService.Update(MetadataBusinessEntity metadataEntity, ExecutionContext context)
       at Microsoft.Crm.ObjectModel.SolutionComponentUninstaller.Uninstall(ComponentTypeMapData componentTypeData, Guid componentObjectId, SolutionUninstallContext solutionUninstallContext)
       at Microsoft.Crm.ObjectModel.OrphanLabelUninstaller.<>c__DisplayClass1_0.<UninstallOrphanLabels>b__0()
       at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action, IEnumerable`1 additionalCustomProperties)
       at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action)
       at Microsoft.Crm.ObjectModel.SolutionUninstallService.Uninstall(ISolution solution, DynamicMetadataCache cache, ExecutionContext context)
       at Microsoft.Crm.ObjectModel.SolutionServiceInternal`1.DeleteInternal(ISolution solution, ExecutionContext context)
       at Microsoft.Crm.ObjectModel.SolutionServiceInternal`1.<>c__DisplayClass10_2.<DeleteAndUpdate>b__0()
       at Microsoft.Crm.ObjectModel.CustomizationSqlLockManager.ExecuteInLock(String operationName, Int32 errorCode, Action action)
       at Microsoft.Crm.ObjectModel.SolutionServiceInternal`1.DeleteAndUpdate(BusinessEntityMoniker moniker, ExecutionContext context, IBusinessEntity upgradingSolution)
       at Microsoft.Crm.ObjectModel.SolutionServiceInternal`1.DeleteAndPromote(String parentUniqueName, 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" i:type="d4p1:string">1c3c9276-67b9-4512-8ee2-8fc7c90e4833</d2p1:value>
        </KeyValuePairOfstringanyType>
        <KeyValuePairOfstringanyType>
          <d2p1:key>ApiDepthKey</d2p1:key>
          <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">1</d2p1:value>
        </KeyValuePairOfstringanyType>
        <KeyValuePairOfstringanyType>
          <d2p1:key>ApiActivityIdKey</d2p1:key>
          <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">397be9ed-7ae0-4f7b-9947-5519c507ab45</d2p1:value>
        </KeyValuePairOfstringanyType>
        <KeyValuePairOfstringanyType>
          <d2p1:key>ApiPluginSolutionNameKey</d2p1:key>
          <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">System</d2p1:value>
        </KeyValuePairOfstringanyType>
        <KeyValuePairOfstringanyType>
          <d2p1:key>ApiStepSolutionNameKey</d2p1:key>
          <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">System</d2p1:value>
        </KeyValuePairOfstringanyType>
        <KeyValuePairOfstringanyType>
          <d2p1:key>HasRetried</d2p1:key>
          <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">True</d2p1:value>
        </KeyValuePairOfstringanyType>
        <KeyValuePairOfstringanyType>
          <d2p1:key>RetryExecutionStatus</d2p1:key>
          <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">Microsoft.Crm.Core.Extensions.Retry.RetryExecutionStatus</d2p1:value>
        </KeyValuePairOfstringanyType>
      </ErrorDetails>
      <Message>There should be at least one metadata entity returned for Id: a9c48d61-9680-4fd2-858a-f9937380f121</Message>
      <Timestamp>2018-10-13T12:34:14.1612566Z</Timestamp>
      <ExceptionRetriable>false</ExceptionRetriable>
      <ExceptionSource i:nil="true" />
      <InnerFault i:nil="true" />
      <OriginalException i:nil="true" />
      <TraceText i:nil="true" />
    </OrganizationServiceFault>
    
    
  • Robe.t Profile Picture
    10 on at

    Never seen this error before. And is also occuring on our environment since this week, exactly the same error.

    Microsoft.Crm.CrmException: There should be at least one metadata entity returned for Id: <<GUID>>


  • Abbod Hamwi Profile Picture
    587 on at

    I opened a support request, and i'm waiting from them to contact me

  • Devosys Inc. Profile Picture
    20 on at

    Same issue here. Initially received errors regarding a custom SiteMap for my Model-Driven App. Had to manually resolve it in my Production instance since solution import did not resolve the issue. After resolving that, I am now getting this error message while importing a Solution Upgrade: "There should be at least one metadata entity returned for Id".

  • Community Member Profile Picture
    on at

    I have the same problem with a solution (managed) which I have upgraded several times in the last weeks and month without any problems.

    I just changed 3 views in a patch and kloned the solution, exported as managed and try to import into the prod environment.

    Seems to be a system problem. I am in the Western Europe environment.

  • crmguy Profile Picture
    10 on at

    Hi

    Do we have any update on this issues? We are facing the same problem, last I contacted MS on this, they told is to do with their environment in that region and planning a solution to be released for this. I have faced the same problem again today. Any help or tips??

  • Devosys Inc. Profile Picture
    20 on at

    I have a ticket open and am regularly speaking to MS about the issue.

    I ended up doing a restore after several attempts at resolving the issue. Now I'm faced with a solution upgrade problem, where anytime I stage a solution for upgrade, the custom sitemap is no longer accessible after applying the upgrade. Doing regular solution imports works though, so long as "stage for upgrade" is not checked.

    The MS product development team is troubleshooting the issue, so a fix will hopefully be released shortly. At this point, it seems to be a system issue that is out of our control.

  • Suggested answer
    Abbod Hamwi Profile Picture
    587 on at

    After contacting MS support, they fix my issue and the reason as what they say: your database filled with Orphan Labels, so deleting them fix the issue, the orphan label is a label you changed it's name but due to an internal bug it did create duplicate record in the localisation records

  • Verified answer
    Ricardo Jahn Profile Picture
    on at

    Correct. I had the same issue and opened a ticket at MSFT Support. They found the same problem and ran a script to delete the orphan labels in the database.

    A workaround for importing MANAGED Solutions is:

    1) Import the managed solution

    2) upgrade the target solution

    3) import the managed solution again with overwrite customization checkbox activated (This will overwrite the wrong labels again)

    MSFT installed a fix for this big in my environment. So it is solved.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans