Resolved: Issue with deployment when Custom API was removed

Danish NaglekarDyn365CE2 years ago44 Views

Custom API is a great feature added to Dataverse. It gives you many flexibilities and can create complex JSON requests or response messages. In order to learn how you can make complex JSON messages; check out this post.

Now the issue at hand is we created a Custom API in our Dev instance and associated a plugin to it. Since then we had deployed the components to higher environments as a managed solution.

Later, we identified that we do not need this Custom API and we want to delete it. So we did the following which did not work:

  • Delete the Custom API and its associated request & response parameters
  • Unregister the Plugin using Plugin Registration Tool
  • Remove the plugin code from the code assembly
  • Updated the new assembly using Plugin Registration Tool

After doing all of the above steps in Dev we initiated the deployment to the higher environment using a regular update solution method. This failed with the following error:

Existing plug-in types have been removed. Please update major or minor verion of plug-in assembly.

I tried several things to see if I can fix the higher environment itself but I ran into managed solution issues. But when we did the following steps that worked for us:

  • Remove the Custom API and its associated request/response parameters from Dev
  • Deploy the managed solution to the higher environment using the stage & upgrade method so that the Custom API components are deleted
  • Manually unregister the plugin using Plugin Registration Tool in Dev
  • Remove the plugin code from the code assembly
  • Updated the new assembly using Plugin Registration Tool in Dev
  • Manually remove the plugin from all the higher environments
  • Deploy the managed solution to the higher environment using the update method

For more content subscribe to my blogs and follow me on:

Become one of my sponsors on GitHub

Original Post https://powermaverick.dev/2022/07/25/resolved-issue-with-deployment-when-custom-api-was-removed/

0 Votes: 0 Upvotes, 0 Downvotes (0 Points)

Leave a reply

Join Us
  • X Network2.1K
  • LinkedIn3.8k
  • Bluesky0.5K
Support The Site
Events
April 2025
MTWTFSS
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30     
« Mar   May »
Follow
Sign In/Sign Up Sidebar Search
Popular Now
Loading

Signing-in 3 seconds...

Signing-up 3 seconds...