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.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156