Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
sunam
New Member

XML encoding issue - unexpected token (string with &)

Hi,

 

I'm facing the below error while loading an XML file through Power Query

DataFormat.Error: Xml processing failed. Either the input is invalid or it isn't supported. (Internal error: '<' is an unexpected token. The expected token is ';'. Line 1544, position 46.)
Details:
    [Binary]

 

The file itself has this

<?xml version="1.0" encoding="iso-8859-1"?>

 

The issue is apparently with this line in the XML (and thereafter)

<ss:Cell><ss:Data ss:Type="String">FINCK&CO</ss:Data></ss:Cell>

 

I assume the & sign is not compatible with the encoding I've chosen or the creation of the file is using wrong encoding tag somehow?? I've tried multiple of the different encoding choices (multiple ISO's, UTF's, Latin1's). Does anyone have any idea how to solve this?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@sunam 
I am not familiar with XML code, but it says "<" is the problem of this error. Did you make sure the xml code were written correctly.

 

Paul

View solution in original post

2 REPLIES 2
sunam
New Member

Thanks Paul, I'm leaning towards the incorrect xml code as well. Did some digging on stackoverflow and looks like it just would need to be &amp; instead of &. I'll still keep this "open" as I did not yet receive reply from the responsible parties to the actual xml document (ie. whether they think its correct or not).

Anonymous
Not applicable

@sunam 
I am not familiar with XML code, but it says "<" is the problem of this error. Did you make sure the xml code were written correctly.

 

Paul

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.