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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
v-eqin-msft
Community Support
Community Support

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
v-eqin-msft
Community Support
Community Support

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors