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

Notifications

Announcements

No record found.

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?




I have the same question (0)
  • Community Member Profile Picture
    on at

    Hi Tuomas Soinne:

    Please try the solution in the following thread:

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

  • Steve Cook Profile Picture
    10 on at

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

  • Tuomas Soinne Profile Picture
    5 on at

    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.

  • Tuomas Soinne Profile Picture
    5 on at

    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.

  • Steve Cook Profile Picture
    10 on at

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

  • Mahdyar Profile Picture
    67 on at

    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.

  • Wayne Lestwer Yan Profile Picture
    on at

    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.

  • Suggested answer
    Wayne Lestwer Yan Profile Picture
    on at

    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.

  • lukas.schauffele Profile Picture
    5 on at

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

  • Wayne Lestwer Yan Profile Picture
    on at

    I updated the reply above

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Martin Dráb Profile Picture

Martin Dráb 45 Most Valuable Professional

#2
iampranjal Profile Picture

iampranjal 36

#3
Satyam Prakash Profile Picture

Satyam Prakash 31

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans