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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Circular dependency be...
Power Apps
Unanswered

Circular dependency between solutions

(0) ShareShare
ReportReport
Posted on by 601

Hi,

I have two unmanaged solution, where the second solutions builds additional stuff on top of the first solution. However, when I try to export and import the first solution as a managed solution into a production environment, a dependency error is thrown that stuff from the second solution is missing...

How can I check why this happens?

In the second solution I add for example a new entity, that has a lookup field to another custom entity that originates from the first solution...

 

I have the same question (0)
  • KoJaPD Profile Picture
    601 on at

    It drove me crazy... it seems that the second solution had a different publisher than the first solution, once I changed it so both solutions have the same publisher, the problem went away... ?!?!?

  • KoJaPD Profile Picture
    601 on at

    I was too early to cheer... still driving me crazy...
    In SolutionA I have CustomEntityA; in SolutionB I have CustomEntityB with a lookup field to CustomEntityB.

    When I now try to import the managed SolutionA into a production environment, it says that a dependency on CustomEntityB is missing in solution "Active"... 😞 😞 😞

  • eleung83 Profile Picture
    232 on at

    Yep you'll need to combine any entities that have dependencies on each other in the same solution. You also have an option to add all required objects attached to an entity when you include an entity in a solution (it could potentially add a lot of extra objects as it would be as if you were deploying the solution to brand new environment with no customisations).

     

    One way you could minimize the work is by only adding the components of the entity to the solution , but this only works if both entities exist in your target environment. For Example if you have created a lookup to CustomEntityB in CustomEntityA, then you can just add the lookup field and the relationship when you add CustomEntityA to your solution. But if you have not yet created both entities in your target environment this won't work.

     

    If you're using ADO to do your import/export then there are a couple of custom build tasks in https://marketplace.visualstudio.com/items?itemName=WaelHamze.xrm-ci-framework-build-tasks (Get Solution Missing Components, Get Solution Missing Dependencies) that are still in preview, so may report more issues than you would expect. Unfortunately I don't think there's any other UI that informs you of missing dependencies until you attempt to import the solution into the target environment

  • KoJaPD Profile Picture
    601 on at

    Hi, I am still banging my head to why SolutionA gets "corrupted" when I add a lookup in SolutionB.

     

    It happens even when I create a simple new SolutionC with a new simple CustomEntityC that has a lookup to the standard entity Account. In solution.xml for SolutionA appears a missing dependency to CustomEntityC from solution "Active"...

    It seems that somehow having multiple solutions that lookup a common entity is creating problems...

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 88

#2
WarrenBelz Profile Picture

WarrenBelz 85 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 45

Last 30 days Overall leaderboard