Solution Packager adding invalid xml to customizations.xml RRS feed

  • Question

  • Hi,

    When using SolutionPackager.exe to pack extracted solution into zip it seems the packed customizations.xml will include invalid xml if solution file includes entities with SavedQueries and Visualizations. Other scenarios might be impacted also.

    Steps to reproduce:

    1. Create a solution with an entity (I used activitypointer)
    2. Create a custom view
    3. Create a custom chart
    4. Export solution
    5. Extract solution
    6. Pack solution

    When importing the packed solution I get the following error:

    The element 'Visualizations' has invalid child element 'savedqueries'. List of possible elements expected: 'visualization'.

    When examining the files i found that if solution file includes both SavedQueries and Visualizations the extracted visualization files will include an invalid root node <savedqueries>

    Would include an image to show this but cannot...

    When packing the solution with SolutionPackager.exe the invalid node is added to customizations.xml resulting in the packed solution file not being able to import.

    Any suggestions on how to correct this are most welcome.

    Wednesday, January 3, 2018 10:33 AM