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
Anonymous
Not applicable

Expression Error in the sample file query

Hi,

 

My query returns this after previously:

 

An error occurred in the ‘Sample File’ query. Expression.Error: There weren't enough elements in the enumeration to complete the operation.
Details:
Table

 

The query fetches 2 csv files from a folder. But now suddenly this appears. How to fix this?

 

Thanks!

1 REPLY 1
Nolock
Resident Rockstar
Resident Rockstar

Hi @Anonymous,

please check that all column names are unique. It looks like you have at least one column name twice in your file.

If it isn't your case, please post a sample of your data and your Power Query query.

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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.

Top Solution Authors