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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Remove object in manag...
Power Apps
Unanswered

Remove object in managed solution - Error during deployment

(0) ShareShare
ReportReport
Posted on by 45

Hi all, 

I am trying to remove a Bot that I no longer need. I have removed it from the unmanaged solution on my DEV environment and prepared a new managed version. However, there is an error about dependencies during import into the UAT environment. 

Details: This is the managed solution, consisting of 1 Chatbot with components, 1 Table, 3 Flows and 1 Connection reference. 

ryjan_0-1704357255674.png

None of this is needed at all.

First, I tried to delete the solution from the environment. The environment is managed. This is not possible due to dependencies.

ryjan_2-1704357476704.png

Second, I have removed all the components, which are mutually dependent, and created a new version of the solution. The solution is now empty.

ryjan_3-1704357646436.png

I have tried to import this new version using Upgrade option and expected all the components to be deleted. 

ryjan_4-1704357784989.png

But the import ended with error: Solution "XXX" failed to import: Solution Upgrade action failed after import as holding. InnerException is: Solution dependencies exist, cannot uninstall. DependencyCount : 325

And each component was listed as dependent....... But there is no dependency on any object which is outside the solution. I just need to remove it all at once. 

Any advice on how to proceed?

 

 

I have the same question (0)
  • Parvez Ghumra Profile Picture
    1,579 Moderator on at

    @ryjan Go into the default solution in the target environment, find the component you wish to delete (in your case, the Chatbot, click on it's associated elipses and click 'View Dependencies' in the context menu. This will give you a list of all components that depend upon the Chatbot.  You will need to resolve all these dependencies before the Chatbot can be deleted. This may include managed components or unmanaged customisations. If you can share the details of these dependencies, I can try to advise further.

  • ryjan Profile Picture
    45 on at

    Hi @parvezghumra 

    There are two unmanaged solutions in the target environment:

    ryjan_0-1704367752005.png

    I found my chatbot in the Standardlösung / Defaultsolution.

    BUT: all of the dependencies listed there are the Chatbot components of the Chatbot in the same solution.

    How exactly they shall be resolved?

    ryjan_1-1704368095025.png

     

  • Parvez Ghumra Profile Picture
    1,579 Moderator on at

    @ryjan Did you totally delete the chatbot from the source (dev) environment or just remove it from the solution?

  • ryjan Profile Picture
    45 on at

    @parvezghumra I am afraid I have deleted it from the environment ☹️

    Anyway, I have investigated a little bit in the classic view and I have found that some of the processes are required by some objects which are in solution layers of another solution:

    This is the first target environment (UAT)

    ryjan_0-1704368877665.png

    If I go into one detail, I see in the dependency detail (this was not visible in Power Platform View)

    ryjan_1-1704369003238.png

    Unfortunately, I cannot access the details of the requiring components.

    ryjan_2-1704369085379.png

    Do you have any idea how to identify the requiring component by their GUID?

     

     

  • ryjan Profile Picture
    45 on at

    Hi @parvezghumra 

    In total, there are two objects in my solution, each of which has 6 dependent objects in another solution.

    I just have IDs of these objects of type botcomponent_workflow

    I have reviewed everything in this another solution but was not able to find any of these objects. 

    Any idea how to identify these 12 object in Dataverse so that I am able to resolve the dependency?

     

  • Verified answer
    Parvez Ghumra Profile Picture
    1,579 Moderator on at

    @ryjan As far as I can tell botcomponent_workflow is a system table and it's name suggests it's related to Power Virtual Agents. When I look at the default solution in my environment in the classic experience, I can see this N:N relationship called "botcomponent_workflow" under the "Chatbot subcomponent" table.

     

    parvezghumra_0-1704376960052.png

     

    Also visible in the maker portal

    parvezghumra_1-1704377064291.png

     

     


    Unfortunately, I don't know enough about Power Virtual Agents/Copilot Studio/Chatbots to be able to help much further. You might get more help in the Power Virtual Agents/Copilot Studio/Chatbot community forums? Failing that, you might need to raise a support request with Microsoft.

     

  • ryjan Profile Picture
    45 on at

    Hi @parvezghumra many thanks, now I see that botcomponent_workflow is not an entity, but a relationship.

    I can see the exact dependencies when reviewing the records and I can fix them. 👍

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard