Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

How to remove msdynce_ActivitiesPatch, as it is blocking the uninstallation of unrelated solution

(1) ShareShare
ReportReport
Posted on by 5

11 days ago our dynamics365 sandbox got riddled with a problem, automatically installed solution called msdynce_ActivitiesPatch. Now that I'm trying to remove completely unrelated managed solution, removal of it fails due to "dependency" to entity named "Activity record for the teams chat", brought to us by aforementioned msdynce_ActivitiesPatch. From normal solutions view, there's no such ActivitiesPatch solution to be found, even if it can be found in solution history. Also manual removal of this entity dependency fails. How do I get rid of this?




  • Wayne Lestwer Yan Profile Picture
    on at
    RE: How to remove msdynce_ActivitiesPatch, as it is blocking the uninstallation of unrelated solution

    I updated the reply above

  • lukas.schauffele Profile Picture
    5 on at
    RE: How to remove msdynce_ActivitiesPatch, as it is blocking the uninstallation of unrelated solution

    I am unsure what values I need to substitute for 'APP ID' and 'COMP ID'. Could you please elaborate?

  • Suggested answer
    Wayne Lestwer Yan Profile Picture
    on at
    RE: How to remove msdynce_ActivitiesPatch, as it is blocking the uninstallation of unrelated solution

    The following steps occurred in my resolution process with Microsoft:

    1. Microsoft Support ran some backend script against my tenancy that removed the dependency on msdynce_ActivitiesPatch

    2. Attempt to remove FieldService solution lead to another non descript error. Microsoft engineers interrogated the back end and advised me to delete the setting msdyn_knowledgemanagement using a direct url reference


    https://YOUR ENVIRONMENT.crmREGION.dynamics.com/main.aspx?appid=YOUR APP ID&forceUCI=1&pagetype=entityrecord&etn=msdyn_knowledgemanagementsetting&id=YOUR COMP ID

    3. Then successfully removed the solution FieldService

    The appid (YOUR APP ID) is the unique id of any Power Platform application that is active within the specified environment. In our case the id for the component (YOUR COMP ID) was the identity of the dynamics entity msdyn_incidenttype. Microsoft provided me with this guid during the investigation from their own diagnostic views. I found a way to lookup this id using an API call as follows:

    https://YOUR ENVIRONMENT URL/api/data/v9.0/msdyn_knowledgemanagementsettings

    This yields a fragment of JSON from which you can find the guid in the value pair msdyn_knowledgemanagementsettingid for the relevant knowledge based entity (in this case "msdyn_entityname": "msdyn_incidenttype").

    Some further investigation reveals that you can use the following url to see the entities on which knowledge management has been activated:

    https://YOUR ENVIRONMENT URL/main.aspx?pagetype=inlinedialog&name=KnowledgeSettings&forceUCI=1

    The URL above shows a screen where there are options to de-activate knowledge management for specific entity types. The incident type msdyn_incidenttype is part of the field services solution. So switching off knowledge management dependencies on this entity type might help.

  • Wayne Lestwer Yan Profile Picture
    on at
    RE: How to remove msdynce_ActivitiesPatch, as it is blocking the uninstallation of unrelated solution

    In particular this is problematic in attempting to remove the Field Services solution.  msdynce_ActivitiesPatch has dependencies on the Field Services solution and in particular the Agreement entity. I have not found a solution for this!!!

    Have also raised a support request.

  • Mahdyar Profile Picture
    65 on at
    RE: How to remove msdynce_ActivitiesPatch, as it is blocking the uninstallation of unrelated solution

    We have the same issue when we want to delete FieldService solution which is dependent on this patch.

    I have raised a ticket with Microsoft as well.

    But, I have tried this XRMToolbox plugin (Managed Solution Deletion Tool):

     pastedimage1649168138820v1.png

    With this tool, you can see msdynce_ActivitiesPatch in the list, but when you want to delete it, it tells you it is restricted and you can't delete it. So, that's the reason we can't see it in the solutions list in make.powerapps or the legacy solutions list.

  • Steve Cook Profile Picture
    10 on at
    RE: How to remove msdynce_ActivitiesPatch, as it is blocking the uninstallation of unrelated solution

    Thanks, I've raised a support ticket with MS so I'll let you know what they say

  • Tuomas Soinne Profile Picture
    5 on at
    RE: How to remove msdynce_ActivitiesPatch, as it is blocking the uninstallation of unrelated solution

    Not yet. Just hoping for some hardcore dynamics guru to step in and tell us how to do it. What I can tell so far (after studying similar problems people are posting) is that I should be able to remove the patch, but for some reason, I'm not. It should be visible in solutions list, but it isn't. Only thing I can tell for at least some certainty is that this probably is not intended behaviour.

    Please let me know in this thread if you manage to find the solution. I'm continuing my work to find one as well.

  • Tuomas Soinne Profile Picture
    5 on at
    RE: How to remove msdynce_ActivitiesPatch, as it is blocking the uninstallation of unrelated solution

    Greetings mr. Zhao,

    Thank you for this suggesting this, unfortunately, it's not helping. I'm not able to see the "msdynce_ActivitiesPatch" as a solution in solutions list. Also, if I go to my default solution, and try to remove anything related to msdynce_ActivitiesPatch, it fails.

  • Steve Cook Profile Picture
    10 on at
    RE: How to remove msdynce_ActivitiesPatch, as it is blocking the uninstallation of unrelated solution

    I'm having the same problem, unable to remove tables from solutions because of this patch, did you find a way round this?

  • Community Member Profile Picture
    on at
    RE: How to remove msdynce_ActivitiesPatch, as it is blocking the uninstallation of unrelated solution

    Hi Tuomas Soinne:

    Please try the solution in the following thread:

    Unable to uninstall Solution - Power Platform Community (microsoft.com)

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,125 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,871 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans