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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Stack overflow while appending in Dataflow

Hello,

I am trying to append 30 tables, 20-100MB max each, in Dataflows. I am getting this error: Evaluation resulted in a stack overflow and cannot continue.

The tables are all similar, originating from JSON files.

They all look like this:
let
Source = SharePoint.Files(SharepointSource, [ApiVersion = 15]),
importedfile = Source{[Name="FILE_NAME.Json",#"Folder Path"=SharepointSource & SharepointFolder]}[Content],
importedJSON = Json.Document(importedfile),
#"Converted to Table" = Table.FromList(importedJSON, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
// Convert the first record to a table to extract column names
FirstRecord = #"Converted to Table"{0}[Column1],
FirstRecordTable = Table.FromRecords({FirstRecord}),
ColumnNames = Table.ColumnNames(FirstRecordTable),
// Expand the table using dynamic column names
#"Expanded Table" = Table.ExpandRecordColumn(#"Converted to Table", "Column1", ColumnNames, ColumnNames)
in
#"Expanded Table"

 

and the append is this:

let
Source = Table.Combine({TABLE1, TABLE2, ETC...}),
TRANSFORMATIONS,

TRANSFORMATIONS,

TRANSFORMATIONS
in
RESULT

 

- Solutions i've tried:
Buffering each table before appending

#"Expanded Table" = Table.ExpandRecordColumn(#"Converted to Table", "Column1", ColumnNames, ColumnNames),
    BufferedTable = Table.Buffer(#"Expanded Table")
in
    BufferedTable

 

 

During the evaluation, the virtual memory of Dataflow is 6GB. Does that mean that Dataflow doesn't support combining 30 tables TOTALING 1.5GB? That's a huge deal breaker.

Status: Investigating
Comments
Anonymous
Not applicable

Hi  @rabihbadr 

According to the limitations of dataflow it is mentioned inside that a dataflow can only have a maximum of 50 tables, if it exceeds that, you need to create more than one dataflow. you can check your data according to the relevant limitations to see if it exceeds the limit.

Power Query Online Usage Limits - Power Query | Microsoft Learn

vyetao1msft_0-1721098450831.png

 

Best Regards,
Community Support Team _ Ailsa Tao