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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Heetesh
Regular Visitor

An error occurred while processing the semantic model refresh in Desktop power BI and on Service

Data source error: Expression.Error: There weren't enough elements in the enumeration to complete the operation.. {error "Microsoft.Mashup.Engine1.Runtime.ValueException: [Expression.Error] Value was not specified.#(cr)#(lf) at Microsoft.Mashup.Engine1.Language.ValueCreator.CreateValueForNotImplemented(INotImplementedExpression expression)#(cr)#(lf) at Microsoft.Mashup.Engine1.Runtime.ListValue.DemandArrayListValue.get_Item(Int32 index)#(cr)#(lf) at Microsoft.Data.Mashup.ProviderCommon.MashupResource.TryGetValue(Func`1 getValue, IValue& value, String& errorMessage)#(cr)#(lf)Record"}. Microsoft.Data.Mashup.ErrorCode = 10063. Detail = {error "Microsoft.Mashup.Engine1.Runtime.ValueException: [Expression.Error] Value was not specified.#(cr)#(lf) at Microsoft.Mashup.Engine1.Language.ValueCreator.CreateValueForNotImplemented(INotImplementedExpression expression)#(cr)#(lf) at Microsoft.Mashup.Engine1.Runtime.ListValue.DemandArrayListValue.get_Item(Int32 index)#(cr)#(lf) at Microsoft.Data.Mashup.ProviderCommon.MashupResource.TryGetValue(Func`1 getValue, IValue& value, String& errorMessage)#(cr)#(lf)Record"}. ;There weren't enough elements in the enumeration to complete the operation.. The exception was raised by the IDataReader interface. Please review the error message and provider documentation for further information and corrective action.
Cluster URI: WABI-UAE-NORTH-A-PRIMARY-redirect.analysis.windows.net
Activity ID: 84ec5f4c-42b6-463f-85d0-d2d5622e8c96
Request ID: 1923df7f-87eb-c767-15a5-3ff169ff16a0
Time: 2026-02-25 11:37:52Z

1 ACCEPTED SOLUTION
MohdZaid_
Solution Sage
Solution Sage

Hey @Heetesh , 

This error is coming from Power Query, not from DAX or the Power BI Service itself. The message “There weren’t enough elements in the enumeration” usually means that somewhere in your query, Power BI is trying to access a value from a list, row, or column that does not exist. In simple terms, the query expects some data to be there, but during refresh it finds nothing or something different.

 

A very common reason for this is when the query tries to access the first row using something like {0} or expands a merged table assuming rows are available. If the source returns zero rows at refresh time, Power Query throws this error. Another common cause is when a column was renamed, removed, or its structure changed in the source system, but your transformation steps still reference the old structure.

 

Since the error is happening both in Desktop and in the Service, it confirms that the issue is in the Power Query transformation logic, not in the gateway or cloud environment. The best way to fix it is to open Power Query Editor in Desktop, go through the Applied Steps one by one, and identify exactly which step is failing. Most of the time, the issue appears during a Merge, Expand, Custom Column, or index-based extraction step.

 

Once you identify the problematic step, you can fix it by adding proper error handling, such as using try … otherwise null, or by adjusting the logic so it does not assume that data will always be present. It is also a good idea to confirm with your database team whether any schema changes were made recently, such as removed columns or modified views.

 

In short, the problem is caused by a transformation step that expects data in a specific structure, but during refresh that structure is not fully available. Reviewing and making the query more defensive will resolve the issue.

 

If this explanation helped, please mark it as the solution so others can find it easily.

If it helped, a quick Kudos is always appreciated it highlights useful answers for the community.

Thanks for being part of the discussion!

View solution in original post

4 REPLIES 4
v-aatheeque
Community Support
Community Support

Hi @Heetesh 

We wanted to follow up to check if you’ve had an opportunity to review the previous responses. If you require further assistance, please don’t hesitate to let us know.

MohdZaid_
Solution Sage
Solution Sage

Hey @Heetesh , 

This error is coming from Power Query, not from DAX or the Power BI Service itself. The message “There weren’t enough elements in the enumeration” usually means that somewhere in your query, Power BI is trying to access a value from a list, row, or column that does not exist. In simple terms, the query expects some data to be there, but during refresh it finds nothing or something different.

 

A very common reason for this is when the query tries to access the first row using something like {0} or expands a merged table assuming rows are available. If the source returns zero rows at refresh time, Power Query throws this error. Another common cause is when a column was renamed, removed, or its structure changed in the source system, but your transformation steps still reference the old structure.

 

Since the error is happening both in Desktop and in the Service, it confirms that the issue is in the Power Query transformation logic, not in the gateway or cloud environment. The best way to fix it is to open Power Query Editor in Desktop, go through the Applied Steps one by one, and identify exactly which step is failing. Most of the time, the issue appears during a Merge, Expand, Custom Column, or index-based extraction step.

 

Once you identify the problematic step, you can fix it by adding proper error handling, such as using try … otherwise null, or by adjusting the logic so it does not assume that data will always be present. It is also a good idea to confirm with your database team whether any schema changes were made recently, such as removed columns or modified views.

 

In short, the problem is caused by a transformation step that expects data in a specific structure, but during refresh that structure is not fully available. Reviewing and making the query more defensive will resolve the issue.

 

If this explanation helped, please mark it as the solution so others can find it easily.

If it helped, a quick Kudos is always appreciated it highlights useful answers for the community.

Thanks for being part of the discussion!

v-aatheeque
Community Support
Community Support

Hi @Heetesh 

Following up to confirm if the earlier responses addressed your query. If not, please share your questions and we’ll assist further.

rohit1991
Super User
Super User

Hii @Heetesh 

 

It usually happens when a step references a column/index that no longer exists, a stored procedure returns inconsistent columns, or the source data structure changed (especially with DirectQuery/SQL or IDataReader sources). Review the last applied steps in Power Query, check for Index, Expanded Columns, or custom functions referencing missing fields, and validate that the SQL query or stored procedure always returns a consistent schema. Fix the mismatched step, refresh in Desktop successfully, then republish and refresh in Service.


Did it work? ✔ Give a Kudo • Mark as Solution – help others too!

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.

Top Solution Authors