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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

[DataFormat.Error] Format error in package.

Hi Everyone,

 

I'm getting data from a SharePoint folder from xlsx tables, everything works fine till I Apply changes, it gives me this error

"OLE DB or ODBC error: [DataFormat.Error] Format error in package.. An unexpected exception occurred."

I checked every step in the power query and noticed that this error occurs when loading more data while filtering a column and this error starts from expanding step 
Also, I checked the regional format for these xlsx files and they are the same

Anyone can help!!!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

You may use try...otherwise to handle such an error, like:

= Table.TransformColumns(Source, {{"column name",each try DateTime.FromText(_) otherwise null, type datetime}})

 

A similar thread:

https://community.powerbi.com/t5/EdX-Specific-Training-Discussion/OLE-DB-or-ODBC-Error-DataFormat-Error/td-p/125137

 


Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous ,

 

You may use try...otherwise to handle such an error, like:

= Table.TransformColumns(Source, {{"column name",each try DateTime.FromText(_) otherwise null, type datetime}})

 

A similar thread:

https://community.powerbi.com/t5/EdX-Specific-Training-Discussion/OLE-DB-or-ODBC-Error-DataFormat-Error/td-p/125137

 


Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Thanks a lot Eyelyn, it works

Helpful resources

Announcements
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.