Showing results for 
Search instead for 
Did you mean: 
Advocate II
Advocate II

Custom API in managed solution. Cannot Delete.


I've been using the new Custom API functionality for a while now without any issue. (General availability since March 2021) 


However, I just found out that I was unable to delete a managed solution that contains a Custom API from an environment.


For example, I have a very simple solution that contains a custom API with 1 parameter and 1 response property. (+ plugin assembly)




I tried on several demo environments and always get the same error message when I try to delete the managed solution.

"Failed deleting solution. Sql error: Generic SQL error. CRM ErrorCode: -2147204784 Sql ErrorCode: -2146232060 Sql Number: 547"



There is no such error when the solution is unmanaged, I can delete the solution and the artifacts with no issue.


As anyone else seen this behavior? 


All my custom API projects are community projects so I can't really open a case and I was hoping to get the attention of the product team with this post.






Super User
Super User

@HemantG - who's the right person to tag on this?

Frequent Visitor

Any resolution on this. I have similar issues, beginning to think it's not worth using managed solutions. But should I be using unmanaged solutions in a production environment?

Helpful resources

UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (2,864)