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

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

Reply
Anonymous
Not applicable

An error occurred in the ‘Sample File (2)’ query. Expression.Error: There weren't enough elements in

I am experiencing the error after I have removed the data and uploaded it again in Data source-

An error occurred in the ‘Sample File (2)’ query. Expression.Error: There weren't enough elements in the enumeration to complete the operation. Details: [Table]Screenshot 2023-08-31 134346.png
 
How can I rectify this?
 
This is happending for all my 3 queries.
 
 
 
2 ACCEPTED SOLUTIONS
mussaenda
Super User
Super User

Hi @Anonymous ,

 

you need to  go the Sample file of that query and check the steps

View solution in original post

AmiraBedh
Super User
Super User

Revisit any steps in the Power Query Editor that access specific rows, columns, or positions. Make sure that they are still applicable to the modified data structure.

Check the variable you assigned to SampleFile (I assume you need to check the file path there) 

 


Proud to be a Power BI Super User !

Microsoft Community : https://docs.microsoft.com/en-us/users/AmiraBedhiafi
Linkedin : https://www.linkedin.com/in/amira-bedhiafi/
StackOverflow : https://stackoverflow.com/users/9517769/amira-bedhiafi
C-Sharp Corner : https://www.c-sharpcorner.com/members/amira-bedhiafi
Power BI Community :https://community.powerbi.com/t5/user/viewprofilepage/user-id/332696

View solution in original post

2 REPLIES 2
AmiraBedh
Super User
Super User

Revisit any steps in the Power Query Editor that access specific rows, columns, or positions. Make sure that they are still applicable to the modified data structure.

Check the variable you assigned to SampleFile (I assume you need to check the file path there) 

 


Proud to be a Power BI Super User !

Microsoft Community : https://docs.microsoft.com/en-us/users/AmiraBedhiafi
Linkedin : https://www.linkedin.com/in/amira-bedhiafi/
StackOverflow : https://stackoverflow.com/users/9517769/amira-bedhiafi
C-Sharp Corner : https://www.c-sharpcorner.com/members/amira-bedhiafi
Power BI Community :https://community.powerbi.com/t5/user/viewprofilepage/user-id/332696
mussaenda
Super User
Super User

Hi @Anonymous ,

 

you need to  go the Sample file of that query and check the steps

Helpful resources

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

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.