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
rdnguyen
Helper V
Helper V

Pivot related error

Hi all,

 

I tried different way and cannot get through this error message:

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"}. RootActivityId = c8095f03-967e-4b22-8d75-b1956ac25171.Param1 = 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"} Request ID: eb004ba7-6527-da1d-85ed-ce55a152c83b.

 

Sample data is as following

ID     Test      Value

A      T1         1%

A      T2         2.1  

B      T2         3.2

B      T3         Pass

 

Then I pivoted to get

ID    T1     T2     T3

A     1%    2.1    null

B      null   3.2    Pass

 

From the Power Query Editor, everything look fine, but error arose at the refresh. I wonder if you experienced this, how do you get through with a sufficient solution.

 

Thanks

2 REPLIES 2
rdnguyen
Helper V
Helper V

Hi @Daryl-Lynch-Bzy ,

The error occured at Power BI Service level, only at refresh stage. Total row count is about 32,000 rows before pivoting, data source is another power BI dataflow. If pivoting successfully, the number of columns maximumly generated is 42.

I recently moved that pivoting part to SQL to avoid complication. Pivoting within Power Query seems nice but I just cannot understand the error message to troubleshoot it.

Thanks.

 

Daryl-Lynch-Bzy
Resident Rockstar
Resident Rockstar

Hi @rdnguyen , I am wondering if you have tried the pivot transformation in Dataflow?  Note when you say refresh, I assume you mean the Power BI web service refresh and not the Power BI Desktop refresh.  If it is the later, could you have the 32-bit version of Power BI installed as there are a lot of Int32 reference in the above.  By the way, how many rows are in the "Sample Data" table and what is the Source?

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.