microsoft / coe-starter-kit

Other
737 stars 216 forks source link

[CoE Starter Kit - BUG] Update to the latest solution failed #8619

Closed ValiPrk closed 2 months ago

ValiPrk commented 2 months ago

Does this bug already exist in our backlog?

Describe the issue

When trying to install the newest Center of Excellence - Core Components solution (4.33) I receive an error: Solution "Center of Excellence - Core Components" failed to import: Solution Upgrade action failed after import as holding. InnerException is: Solution dependencies exist, cannot uninstall. DependencyCount : 1 RequiredComponentObject details: Type: Entity, ObjectName: DEPRECATED: COE Settings, Id: a4e1a204-2180-4051-81c1-f175b943496f, ParentObjectName: , ParentId: 00000000-0000-0000-0000-000000000000, DependentComponentObject details: Type: SiteMap, ObjectName: cr913_Test2107ModelDriven, Id: 178112d0-eb08-ed11-82e5-0022487f06b2, ParentObjectName: , ParentId: 00000000-0000-0000-0000-000000000000 DependencyType: Published .

Expected Behavior

No response

What solution are you experiencing the issue with?

Core

What solution version are you using?

4.32.2

What app or flow are you having the issue with?

CenterofExcellenceCoreComponents

What method are you using to get inventory and telemetry?

None

Steps To Reproduce

No response

Anything else?

No response

Jenefer-Monroe commented 2 months ago

This is a table that we deprecated and removed from the kit. The error reads that you took a dependency on it in one of your own Model Driven Apps: cr913_Test2107ModelDriven

So you will need to go clean up that MDA to not rely on this table.

ValiPrk commented 2 months ago

Hi,

Thank you for your reply, I found the mentioned site map in the Default Solution of the CoE environment. I checked the dependencies and there were none (see attached screenshots). Can you please tell me what would be the next steps? Remove the site map from the solution? How to proceed with the faulty version 4.33 of the Core Components solution ? Should it be deleted? Dependencies1 Dependencies Site map

Jenefer-Monroe commented 2 months ago

It looks like its called 2107 not 1207 image

I'm not sure where it is. If you arent using the test MDA you may want to delete it and its site map to get to a clean state.

ValiPrk commented 2 months ago

Hello, it was underneath the one that send the first screenshot, the "Delete blocked by" and "Used by" columns are empty, the only data is under the "Uses" column (see attached screenshot). I did not create it, it's on the Default solution on the CoE environment, this is why I'm asking for the next steps, I would not want to delete something that will have impact. Thank you for your collaboration Site map correct

ValiPrk commented 2 months ago

Also found the table, see attached screenshots with dependencies Dependencies3 Dependencies2

Jenefer-Monroe commented 2 months ago

The first screenshot you sent without the dependency is 1207 image

Whereas the dependency is in 2107 image

So you'll need to find that app / sitemap and clean them up to not rely on this table.

ValiPrk commented 2 months ago

I further investigated and found the following:

  1. the "Test2107ModelDriven" sitemap is only present in 2 unmanaged solutions: Default solution and Common Data Services Default Solution
  2. from here I managed to track to what these sitemap is related to-> Settings icon [Customization.Type_WebResource] My logic tells me that I should do the following:
  3. remove the "DEPRECATED: COE Settings" dependencies from the Settings icon [Customization.Type_WebResource]
  4. remove the "Test2107ModelDriven" sitemap from both solutions (Default and Common Data Services Default) Am I correct? If yes, what are the next steps after the removal? Should I delete the failed upgrade solution and import it one more time? Thank you very much for your reply! Settings icon
Jenefer-Monroe commented 2 months ago

I'm afraid I can't comment on exactly how to remove all these dependencies as I am not looking into your tenant.

I can't imagine that this is what is blocking you but you can try.

That settings icon web resource is used elsewhere in the kit as you show so I dont think deleting it is the correct path forward. You can remove the table's dependency on it though This is the item you are removing from the table image

Just set it to none image image

Jenefer-Monroe commented 2 months ago

What is needed is to open that site map and remove the reference to this table. Perhaps you've already done that? You'll know you're ready to try again when the dependencies show blank image image

Jenefer-Monroe commented 2 months ago

Then correct, you will delete the _Upgrade and try again once you are there.

ValiPrk commented 2 months ago

Hi,

I changed the table settings as suggested and indeed, if I'm checking the Settings icon [Customization.Type_WebResource] it doesn't show DEPRECATED COE Setting as a dependency, so far so good. When I'm going to the "Test2107ModelDriven" sitemap, the "remove dependency" option is greyed out (see attached screenshot). Is there any way that I can change this?

COE settings remove greyed-out

Jenefer-Monroe commented 2 months ago

You would need to open the site map itself and remove the depenency. This might be easiest from the MDA itself. Can you open the MDA in edit mode? The site map is then the navigation on the left You would remove from navigation image

And then remove from app image

ValiPrk commented 2 months ago

Hi,

I managed to get rid of the sitemap by removing it from the table (that was already empty). This way I was able to install the newest solution. I checked the flows, the audit logging, everything is working and it seems to be in order. Thank you very much for your help and patience! Wish you a great weekend! Valentin