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 :
Customer experience | Sales, Customer Insights,...
Answered

Export Solution Missing Required Components: entity required by itself

(1) ShareShare
ReportReport
Posted on by 10

we are using Dynamics 365 online latest version 9.1.0.17461.  We created a solution and only added one existing entity called "Approval" with a subset of its fields. When exporting the solution, it shows below "Missing Required Components" dialog. The error message says it is missing the "Approval" entity, which is the only entity we added in the solution

Since we don't want to add all the other dependent entities that downstream environments do not need, so "Add all assets" is not an option for us. We did try the following approach but nothing works.

  • with/without including entity metadata when exporting the solution
  • without "adding all the assets", but manually added all the forms/views/field

Also, there is no lookup field in Approval Entity that is pointing to itself.

Any idea of what is missing? Thanks.

2020_2D00_06_2D00_02_5F00_22_2D00_18_2D00_36.png

I have the same question (0)
  • SamiraM Profile Picture
    587 on at

    Hi Kevin,

    Please remove the entity from the solution and add it again. You can un-check all metadata and all assets checkbox. Then add the fields that you want to import.

    In the final step it will ask you to import required components. Add these required component then you will be good to go.

    256063.Capture.PNG

    Regards,

    Samira

    Please mark it verified if it answer your question.

  • Vaibhav Shukla Profile Picture
    120 on at

    Hello Kevin,

    Are you using any global option set on Approval entity?

    If Yes, Please add that global option set to the solution if not you can go with approach suggested by @Samira Mirza.

    Hope this helps! I'd appreciate if you'd mark this as a Verified answer.

    Thanks,

    Vaibhav

  • Verified answer
    Ragnar Hilmarsson Profile Picture
    3,427 on at

    You can manually remove the missing dependencies from the solution.xml file after you have exported from your source env,  the xml look like this

    </RootComponents>

       <MissingDependencies />

     </SolutionManifest>

    </ImportExportXml>

    I've used this:

    blog.thenetw.org/.../

  • kevin.dynamics Profile Picture
    10 on at

    Thanks for the reply. But this doesn't work for us.  "Add required component" will add all the fields. After that it seems there is no "remove subcomponent" button availabe anymore to remove the fields we don't need.

  • kevin.dynamics Profile Picture
    10 on at

    There is no global optionset for this solution.

  • SamiraM Profile Picture
    587 on at

    Have you unchecked the all assets and all metadata checkbox?

  • kevin.dynamics Profile Picture
    10 on at

    I did. :-(

  • kevin.dynamics Profile Picture
    10 on at

    Thanks for the link.  I manually removed the missing dependencies from the solution.xml, and I got the following error when importing the solution. It seems something is still missing. And I cannot find the highlighted id in either solution.xml or customizations.xml

    Invalid Argument. : Microsoft.Crm.CrmException: Entity Display Collection Name for id: 5f69b9db-183c-418e-93d2-80ce68650db0, objectcolumn: LocalizedCollectionName and labelTypeCode: Entity  not specified    at Microsoft.Crm.Metadata.LocalizedLabelHelper.ValidateLabelCollectionContents(LabelCollection labelCollection, Guid objectId, String objectColumnName, LabelTypeCode labelTypeCode, String parameterName, ISqlExecutionContext context, Boolean throwIfCollectionIsNullOrEmpty)    at Microsoft.Crm.Metadata.EntityService.ValidateEntityNameAndLabels(EntityCreateInfo entityInfo, MetadataHelper metadataHelper, ISqlExecutionContext sqlContext)    at Microsoft.Crm.Metadata.EntityService.ValidateForCreate(EntityCreateInfo entityInfo, MetadataHelper metadataHelper, ExecutionContext context)    at Microsoft.Crm.Metadata.EntityService.<>c__DisplayClass74_0.<CreateInternal>b__0()    at Microsoft.Crm.SqlTelemetryHelper.LogSqlTimes(Action action, String operationName)    at Microsoft.Crm.Metadata.EntityService.CreateInternal(EntityCreateInfo entityInfo, MetadataHelper metadataHelper, ExecutionContext context)    at Microsoft.Crm.Metadata.EntityService.<>c__DisplayClass27_1.<CreateInternalHelper>b__3()    at Microsoft.Crm.SqlTelemetryHelper.LogSqlTimes(Action action, String operationName)    at Microsoft.Crm.Metadata.EntityService.CreateInternalHelper(EntityCreateInfo entityInfo, MetadataHelper metadataHelper, ExecutionContext context)

  • kevin.dynamics Profile Picture
    10 on at

    Finally got the solution imported by following the bellow approach:

    1. check "include entity metadata" for the new entity that is added to the solution.

    2. Manually remove the missing dependencies nodes in solution.xml  (Thanks Ragnar Hilmarsson for the link)

    After the initial solution is imported,  the followed solution update doesn't report missing dependencies for that entity anymore. So step 2 is not needed.

    Thanks for all your suggestions and help. Although it works now, this may be an issue that MS should address in the future release.

  • FU Microsoft Profile Picture
    5 on at

    Unfortunately, this workaround doesn't work for deployment via Azure DevOps.

    Has anyone figured out the cause of this issue????

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 > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 108 Super User 2025 Season 2

#2
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 49 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans