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
kpkp
New Member

Issue/bug with removing column frome M query table definition that use DeltaLake.Table source.

I use the latest version of Power BI Desktop and prepare the table with following definition:

 

let
Source = AzureStorage.DataLake(Fact_DeltaLake_path, [HierarchicalNavigation=true]),
DeltaTable = DeltaLake.Table(Source),
#"Filtered Rows" = Table.SelectRows(DeltaTable, each [Year] = 2023)
in
#"Filtered Rows"

And after I want to remove some of columns:

 

let
Source = AzureStorage.DataLake(Fact_DeltaLake_path, [HierarchicalNavigation=true]),
DeltaTable = DeltaLake.Table(Source),
#"Filtered Rows" = Table.SelectRows(DeltaTable, each [Year] = 2023 and [PeriodTypeId] = 1 and [VersionId] = 0 and [Month] = 12 and [DataGroupId] = 4),
#"Removed Columns" = Table.RemoveColumns(#"Filtered Rows",{"BatchId", "AmountYtd"})
in
#"Removed Columns"

Last step throw the exception:

 

Error Message:
Index was outside the bounds of the array.
Stack Trace:
Microsoft.Mashup.Host.Document.SerializedException
at Microsoft.Mashup.Evaluator.EvaluationHost.OnException(IEngineHost engineHost, IMessageChannel channel, ExceptionMessage message)
at Microsoft.Mashup.Evaluator.MessageHandlers.TryDispatch(IMessageChannel channel, Message message)
at Microsoft.Mashup.Evaluator.MessageHandlers.Dispatch(IMessageChannel channel, Message message)
at Microsoft.Mashup.Evaluator.ChannelMessenger.ChannelMessageHandlers.TryDispatch(IMessageChannel channel, Message message)
at Microsoft.Mashup.Evaluator.MessageHandlers.Dispatch(IMessageChannel channel, Message message)
at Microsoft.Mashup.Evaluator.Interface.IMessageChannelExtensions.WaitFor[T](IMessageChannel channel)
at Microsoft.Mashup.Evaluator.RemotePreviewValueSource.PreviewValueSource.WaitFor(Func`1 condition, Boolean disposing)
at Microsoft.Mashup.Evaluator.RemotePreviewValueSource.PreviewValueSource.get_SmallValue()
at Microsoft.Mashup.Evaluator.Interface.TracingPreviewValueSource.get_SmallValue()
at Microsoft.Mashup.Host.Document.Analysis.PackageDocumentAnalysisInfo.PackagePartitionAnalysisInfo.SetPreviewValue(EvaluationResult2`1 result, Func`1 getStaleSince, Func`1 getSampled)
Stack Trace Message:
Index was outside the bounds of the array.

Seems like DeltaLake.Table feature have bugs because it rely on column order number - for example, when I remove last one column it works, but deleting of first one throws the same with the samse stack trace.

Maybe I need to implement it in other way for DeltaLake table or there are some workarounds.

1 REPLY 1
lbendlin
Super User
Super User

If you have a Pro license you can open a Pro ticket at https://admin.powerplatform.microsoft.com/newsupportticket/powerbi
Otherwise you can raise an issue at https://community.fabric.microsoft.com/t5/Issues/idb-p/Issues .

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.