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 CRM (Archived)

How do you retrieve the appropriate dependency using RetrieveDependenciesForDeleteRequest

(1) ShareShare
ReportReport
Posted on by

I'm trying to delete a managed solution but keep getting the following error: 

The SdkMessageProcessingStep() component cannot be deleted because it is referenced by 1 other components. For a list of referenced components, use the RetrieveDependenciesForDeleteRequest.

Now the RetrieveDependenciesForDeleteRequest needs the type code for SdkMessageProcessingStep which is 92 and an objectId. But I don't know what this object id is because the error does not provide it. What is recommend approach to diagnosing such dependency errors?

*This post is locked for comments

I have the same question (0)
  • Mahendar Pal Profile Picture
    45,095 on at

    Hi,

    You can traverse solution to get it's component object type code , Did you check this sample code : msdn.microsoft.com/.../gg509063.aspx

  • cranialsurge Profile Picture
    on at

    On running this sample code, I get a list of dependencies for multiple component types. Is there any way to narrow this down to exactly why I am getting the message above while trying to delete a managed solution? Without being able to narrow this down somehow, it looks impossible to figure out what the problem is here.

  • Mahendar Pal Profile Picture
    45,095 on at

    Try to parse exception, you should be able to get some pointer for your specific component (which you are not able to delete) from exception  and then should be able to filter result-set based on that component. I have not worked on this requirement but I am hoping you should be able to get that component, try to see what information you are getting in exception.

    Hope it will help.

  • cranialsurge Profile Picture
    on at

    YOu mean try to parse the exception while deleting the solution via an SDK call instead of via the UI?

  • Mahendar Pal Profile Picture
    45,095 on at

    yes, put your code under try and catch blog and catch fault exception and try to parse it.

  • cranialsurge Profile Picture
    on at

    Unfortunately the exception that is thrown on trying to delete the solution is way too generic. All the faultexception returns is "Solution dependencies exist, cannot uninstall.". There is no additional info that is helpful anywhere either in the innerexception or the detail.

  • Ram Prakash Duraisamy Profile Picture
    2,287 on at

    Try to Change your plugin ISOLOATION mode to Sandbox and try again

  • Suggested answer
    KhoaNguyen Profile Picture
    on at

    You can try executing the function by typing this into the browser address bar: 

    org************.crm*.dynamics.com/.../RetrieveDependenciesForDelete(ObjectId=CA2EED21-4E10-0466-08A6-83647CD4DD3E,ComponentType=1)

    Note that the URL above is case sensitive. Replace the Object ID and component type with that of the one you want to get dependencies from.

    If you're successful in executing this function, please mark as answered to help potential future readers.

    References:

    About the function and parameters: RetrieveDependenciesForDelete Function (Microsoft.Dynamics.CRM) | Microsoft Docs

    About how to execute functions via Dataverse API: Web API Functions and Actions Sample (Microsoft Dataverse) - Power Apps | Microsoft Docs

    (this one is an unbound function with parameters)

    ComponentType reference: SolutionComponent table/entity reference (Microsoft Dataverse) - Power Apps | Microsoft Docs

    Tip: To pass a guid parameter, you don't need quote or apostrophe

  • Tim_Hof Profile Picture
    40 on at

    Hi KhoaNguyen

    Thanks for opting this solution. I want to delete a plugin assembly. Using plugin registration tool, I find the assembly ID, and assume I have to use this as an object id. Going through the SolutionComponentTable of Microsoft, I find Plugin Assemblies are of type 91.

    However, using below link, ****dev.crm4.dynamics.com/main.as....../RetrieveDependenciesForDelete(ObjectId=e98a56e5-6cce-42bb-a7f8-fe0e24a6e848,ComponentType=91) I get an error message. Any clue where this is going wrong?

    Thanks for your help.

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 CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans