Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

CRM Solution Packager crashes when unpacking a solution containing a Flow

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

We use the Solution Packager to extract and repack our solutions so we can keep them under version control. This has been working well for months, but now that we have added a Flow to one of our solutions, the Solution Packager is crashing (error at end of post) while extracting the solution. This is happening with the latest version of the packager (9.0.3.1765) from the Microsoft.CrmSdk.CoreTools nuGet package (9.0.2.12).

Flow workflows are contained in the solution as JSON files, while CRM workflows are XAML. From the error raised it looks as if the packager doesn't support workflows as anything other than XAML files.

Does the Solution Packager not support the full range of solution contents, and if so, how should we go about extracting, versioning, and deploying Flows which relate to a solution?

-----

Cannot find child element XamlFileName of element Workflow.
SolutionPackager: Exception thrown: System.ArgumentException: Cannot find child element XamlFileName of element Workflow.
at Microsoft.Crm.Tools.SolutionPackager.Helper.GetElementValue[T](XElement element, String childName, Boolean throwIfNull, Func`2 converter, T default)
at Microsoft.Crm.Tools.SolutionPackager.Helper.GetElementValue(XElement element, String childName, Boolean throwIfNull, String default)
at Microsoft.Crm.Tools.SolutionPackager.WorkflowProcessor.CreateComponent(XElement element)
at Microsoft.Crm.Tools.SolutionPackager.ComponentProcessorBase.CreateComponents(XElement element)
at Microsoft.Crm.Tools.SolutionPackager.ZipReader.LoadCustomizations(Stream customizationXml, Context context)
at Microsoft.Crm.Tools.SolutionPackager.ZipReader.Load()
at Microsoft.Crm.Tools.SolutionPackager.SolutionPackager.Run(IPackageReader reader, IPackageWriter writer)
at Microsoft.Crm.Tools.SolutionPackager.SolutionPackager.Run()
at Microsoft.Crm.Tools.SolutionPackager.Program.Main(String[] args), returning error code '1'

*This post is locked for comments

  • Suggested answer
    Shidin Haridas Profile Picture
    Shidin Haridas 3,497 on at
    RE: CRM Solution Packager crashes when unpacking a solution containing a Flow

    Ensure that the latest SDK version is used.

    Version 9.0.3.1 has the required fix.

    www.nuget.org/.../9.0.3.1

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: CRM Solution Packager crashes when unpacking a solution containing a Flow

    That was my conclusion as well, but I was hoping that someone would be able to tell me I was doing something wrong. I'll get it raised with our account manager.

    Thanks.

  • Verified answer
    a33ik Profile Picture
    a33ik 84,325 Most Valuable Professional on at
    RE: CRM Solution Packager crashes when unpacking a solution containing a Flow

    Hello,

    I believe this is just not implemented. I would recommend to get in touch with Microsoft Support and ask gently to implement it.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,375 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans