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

Notifications

Announcements

No record found.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans