Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Chart Import Error: not valid XML or does not conform to the chart schema

(0) ShareShare
ReportReport
Posted on by 150

I'm following instructions found here, Modifying Multi-Series Dynamics CRM Charts to Use a Single Axis - CRM Software Blog | Dynamics 365 to remove the secondary axis for a multi-series chart.

I've exported the chart, opened it in Notepad, removed the yAxisType, saved it over the exported XML file, but when I try to import it again, I receive this error:

The specified XML file "Opps--YTD.xml" is either not valid XML or does not conform to the chart schema.

  • Steve Zhao2 Profile Picture
    Steve Zhao2 on at
    RE: Chart Import Error: not valid XML or does not conform to the chart schema

    Hi AdmWombat,

    I'm glad to hear that. Cheers!

  • mcrthomas Profile Picture
    mcrthomas 150 on at
    RE: Chart Import Error: not valid XML or does not conform to the chart schema

    I think I have it working now. I was trying to upload in the form view rather than in advanced settings. It worked in advanced settings.

    It's not showing in the list view drop down for charts, but I am able to add the new version to a dashboard.

  • mcrthomas Profile Picture
    mcrthomas 150 on at
    RE: Chart Import Error: not valid XML or does not conform to the chart schema

    Sure.  This is the version I'm trying to import,

    <visualization>

    <visualizationid>{9834979b-eec4-ed11-83ff-000d3a565cf9}</visualizationid>

    <name>Revenue & Budget--All YTD</name>

    <description>null</description>

    <primaryentitytypecode></primaryentitytypecode>

    <datadescription><datadefinition><fetchcollection><fetch mapping="logical" aggregate="true"><entity name="opportunity"><attribute name="name" groupby="true" alias="_CRMAutoGen_groupby_column_Num_0"/><attribute name="actualvalue" aggregate="sum" alias="_CRMAutoGen_aggregate_column_Num_0"/><attribute name="estimatedvalue" aggregate="sum" alias="_CRMAutoGen_aggregate_column_Num_14"/></entity></fetch></fetchcollection><categorycollection><category alias="_CRMAutoGen_groupby_column_Num_0"><measurecollection><measure alias="_CRMAutoGen_aggregate_column_Num_0"/></measurecollection><measurecollection><measure alias="_CRMAutoGen_aggregate_column_Num_14"/></measurecollection></category></categorycollection></datadefinition></datadescription>

    <presentationdescription><Chart Palette="None" PaletteCustomColors="91,151,213; 213,112,44; 160,116,166; 178,134,0; 68,114,196; 90,139,56; 37,94,145; 158,72,14; 117,55,125; 153,115,0; 38,68,120; 67,104,43; 86,122,154; 192,120,72; 167,129,172; 178,143,35; 105,142,208; 112,154,83; 50,125,194; 210,96,18; 150,83,159; 183,138,0; 51,90,161; 90,138,57;"><Series><Series ChartType="Bar" IsValueShownAsLabel="True" Font="{0}, 9.5px" LabelForeColor="59, 59, 59" CustomProperties="PointWidth=0.75, MaxPixelPointWidth=40"><SmartLabelStyle Enabled="True"/></Series><Series ChartType="Bar" IsValueShownAsLabel="True" Font="{0}, 9.5px" LabelForeColor="59, 59, 59" CustomProperties="PointWidth=0.75, MaxPixelPointWidth=40"><SmartLabelStyle Enabled="True"/></Series></Series><ChartAreas><ChartArea BorderColor="White" BorderDashStyle="Solid"><AxisY LabelAutoFitMinFontSize="8" TitleForeColor="59, 59, 59" TitleFont="{0}, 10.5px" LineColor="165, 172, 181" IntervalAutoMode="VariableCount"><MajorGrid LineColor="239, 242, 246"/><MajorTickMark LineColor="165, 172, 181"/><LabelStyle Font="{0}, 10.5px" ForeColor="59, 59, 59"/></AxisY><AxisX LabelAutoFitMinFontSize="8" TitleForeColor="59, 59, 59" TitleFont="{0}, 10.5px" LineColor="165, 172, 181" IntervalAutoMode="VariableCount"><MajorTickMark LineColor="165, 172, 181"/><MajorGrid LineColor="Transparent"/><LabelStyle Font="{0}, 10.5px" ForeColor="59, 59, 59"/></AxisX><AxisY2 LabelAutoFitMinFontSize="8" TitleForeColor="59, 59, 59" TitleFont="{0}, 10.5px" LineColor="165, 172, 181" IntervalAutoMode="VariableCount"> <MajorGrid LineColor="239, 242, 246"/> <MajorTickMark LineColor="165, 172, 181"/> <LabelStyle Font="{0}, 10.5px" ForeColor="59, 59, 59"/> </AxisY2></ChartArea></ChartAreas><Titles><Title Alignment="TopLeft" DockingOffset="-3" Font="{0}, 13px" ForeColor="59, 59, 59"/></Titles><Legends><Legend Alignment="Center" LegendStyle="Table" Docking="right" IsEquallySpacedItems="True" Font="{0}, 11px" ShadowColor="0, 0, 0, 0" ForeColor="59, 59, 59"/></Legends></Chart></presentationdescription>

    <isdefault>false</isdefault>

    </visualization>

  • Steve Zhao2 Profile Picture
    Steve Zhao2 on at
    RE: Chart Import Error: not valid XML or does not conform to the chart schema

    Hi AdmWombat,

    Could you provide the chart xml?

  • mcrthomas Profile Picture
    mcrthomas 150 on at
    RE: Chart Import Error: not valid XML or does not conform to the chart schema

    Exact same error. Tried it in Chrome as well as Edge. Also tried to Export and Import with no changes, but I get the same error.

  • Suggested answer
    Steve Zhao2 Profile Picture
    Steve Zhao2 on at
    RE: Chart Import Error: not valid XML or does not conform to the chart schema

    Hi AdmWombat,

    I followed the blog you provided, and I can import it successfully.

    Original chart:

    pastedimage1679392316845v1.png

    Delete the YAxisType property and import chart:

    pastedimage1679392371161v2.png

    It seems that your chart xml is invalid. Please try to export it and only delete the YAxisType property to try again.

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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,642 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,371 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans