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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
KCosgrove
New Member

OLE DB or ODBC error: [Expression.Error] We couldn't fold the expression to the data source.

Using Snowflake and DirectQuery.  Previously the file has opened in powerbi desktop and the data model updated without issue.  The file was published to power bi service.  Data refresh on PBI Service failed today.

 

This error message now occurs when attempting to open the powerbi desktop file "OLE DB or ODBC error: [Expression.Error] We couldn't fold the expression to the data source. Please try a simpler expression..".  We get the option to report the issue or cancel, then the file does not open - so there is no way to fix any query folding issues.

 

The error message is occuring on this version and all previous versions we have saved of the report in our archive.

 

Any assistance on how to open the file would be appreciated.

4 REPLIES 4
v-yalanwu-msft
Community Support
Community Support

Hi, @KCosgrove ;

To get faster and better technical support for this issue, If you have Pro account you could try to open a support ticket. you may directly create a support ticket.


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

KCosgrove
New Member

Thanks @amitchandak, I appreciate the response and link.  I'm confident to be able to fix the folding issue once we get access to the file, unfortunately once the error message appears, the only options are report and cancel.  The file does not open.  

amitchandak
Super User
Super User

@KCosgrove , A new Blog from Chris on the same topic, see if that can help

https://blog.crossjoin.co.uk/2022/05/08/understanding-the-we-couldnt-fold-the-expression-to-the-data...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

This blog is quite helpful.

According to the blog, I created a View to resolve the problem.

 

Thanks!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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.