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

View all the Fabric Data Days sessions on demand. View schedule

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.