web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Export solution with ExportSolutionRequest throw error if it has a patch

(0) ShareShare
ReportReport
Posted on by 152

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

I have the same question (0)
  • Leonardo Mizikami Profile Picture
    152 on at

    Updating.

    The error is happening in UI too.

  • Suggested answer
    Radu Chiribelea Profile Picture
    6,667 on at

    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

  • Suggested answer
    Dilip Kumar - CRM Profile Picture
    67 on at

    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

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
ScottDurow Profile Picture

ScottDurow 2

#2
GJones Profile Picture

GJones 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans