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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Expression Error : There weren't enough elements in the enumeration to complete the operation

Hi,

 

During Data refresh its failing stating "There weren't enough elements in the enumeration to complete the operation" but i'm not sure in which table i'm getting this error and how to fix this error. Any help to identify and resolved this error.

 

Regards,

Tamilselvi K

1 ACCEPTED SOLUTION
Anonymous
Not applicable

That usually means that you are trying to perform operations on an empty table or list. To fix it, go to the query editor and see  which table is not loading; you should see an error. You can review each step to see which is causing the error. 
--Nate

View solution in original post

5 REPLIES 5
LoopytheRabbit
New Member

When this error happens at 'pivot column --It could be duplicated value in some columns, make sure every data in one row is unique.  

Fowmy
Super User
Super User

@Anonymous 

Go to the query editor refresh and check which query generates an error and identify the line. Have you done any Pivot Columns operations?


Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Anonymous
Not applicable

That usually means that you are trying to perform operations on an empty table or list. To fix it, go to the query editor and see  which table is not loading; you should see an error. You can review each step to see which is causing the error. 
--Nate

It works for me. We are referring to Sharepoint list and an excel template. Unfortunately, my colleague rename the file. Once I change the name in Power Query, data loaded. Thanks!

Thank you very much. This worked the magic for me!

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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