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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
remojsy
New Member

DataFormat.Error: 'x' is an undeclared prefix. Line 2, position 1344

Hi all

I am having an issue when combining multiple Excel files (stored in SharePoint online) in a Dataflow (or in PowerQuery).  Annoyingly, the preview values of my transformation steps are fine however when I refresh the complete dataset I get the error:

"DataFormat.Error: 'x' is an undeclared prefix. Line 2, position 1344."

 

I assume this will be an problem with one of the Excel files however I am unable to determine which file has the issue (adding a 'keep errors' step doesn't help).  Any guidance to either find or mitigate the issue will be very gratefully received.

 

Rem

1 REPLY 1
edhans
Super User
Super User

If you don't have a lot of excel files, just remove one at a time and refresh each time to see which one stops causing the error.

 

If you have a lot, remove half, then refresh. then remove half again, refresh, etc. Sometimes it is trial and error to get the issue to pop up.

 

You could also try sorting the data in PQ but if it is a lot of records and the error is in the middle of your sort, it won't help much.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors