Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Governance and Administ...
Unanswered

Circular dependency between solutions

(0) ShareShare
ReportReport
Posted on by 595

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...

 

Categories:
  • KoJaPD Profile Picture
    595 on at
    Re: Circular dependency between solutions

    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...

  • eleung83 Profile Picture
    232 on at
    Re: Circular dependency between solutions

    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
    595 on at
    Re: Circular dependency between solutions

    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"... 😞 😞 😞

  • KoJaPD Profile Picture
    595 on at
    Re: Circular dependency between solutions

    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... ?!?!?

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Power Apps Governance and Administering

#1
bscarlavai33 Profile Picture

bscarlavai33 5 Super User 2025 Season 1

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 4 Super User 2025 Season 1

#3
Vince_K Profile Picture

Vince_K 2

Overall leaderboard

Featured topics