Hello Guys.
I'm trying to export an unmanaged solution which contain a patch. When i execute the Request, the following error is thrown:
"Cannot modify solution because it has the following patches"
Here is the code I'm using to export the solution:
ExportSolutionRequest exportSolutionRequest = new ExportSolutionRequest();
exportSolutionRequest.Managed = false;
exportSolutionRequest.SolutionName = solution;
ExportSolutionResponse exportSolutionResponse = (ExportSolutionResponse)service.Execute(exportSolutionRequest);
*This post is locked for comments
This is the expected behaviour. Once the patch is created, the base solution becomes a parent and will be locked. So in order to export and import the parent solution, first you have to clone the solution. So that the patch solution will be merged with the base solution and then becomes unlocked.
Please refer to the below blog,
365withoutcode.blogspot.com/.../managing-solutions-in-dynamics-365-part_11.html
Hi Leonardo,
This is expected behavior docs.microsoft.com/.../use-segmented-solutions-patches-simplify-updates
After you have created the first patch for a parent solution, the solution becomes locked, and you can’t make any changes in this solution or export it. However, if you delete all of its child patches, the parent solution becomes unlocked.
Once you have a patch, you can export the patch
Updating.
The error is happening in UI too.
Mohamed Amine Mahmoudi
83
Super User 2025 Season 1
Community Member
54
Victor Onyebuchi
6