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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
NunoTrigo1986
Helper I
Helper I

Pipeline that works fine on azure data factory dont work on factory

Hi,

 

I have a pipeline reads an excel file with a table with around 20 rows. each row has parameters to use on a post request. 

 

excel looks like:

NunoTrigo1986_1-1720002330012.png

 

pipeline should send this requests ang save json file that get in response. 

 

NunoTrigo1986_0-1720002261919.png

 

This works fine when using Azure Data Factory, completing in about a minute or two. However, when running the same flow on Microsoft Fabric, it keeps running indefinitely. 

 

NunoTrigo1986_2-1720002608789.png

some of the tasks show following error:

 

-> ErrorCode=FlattenFailedInHierarchicalFlattenStage,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=Failed to flatten data, error message: Exception of type 'System.OutOfMemoryException' was thrown.,Source=Microsoft.DataTransfer.ClientLibrary,''Type=System.OutOfMemoryException,Message=Exception of type 'System.OutOfMemoryException' was thrown.,Source=mscorlib,'

 

 

it seems the system runs out of memory, what should i do to prevent that ? when running on azure data fabrick i do use default runtime. 

 

1 ACCEPTED SOLUTION
v-nuoc-msft
Community Support
Community Support

Hi @NunoTrigo1986 

 

ForEach activity is used to iterate over a collection and executes specified activities in a loop.

 

You can try breaking the data into smaller batches to reduce memory usage.

 

ForEach activity - Microsoft Fabric | Microsoft Learn

 

Check if you can allocate more memory for the pipe in Microsoft Fabric.

 

Scale your Fabric capacity - Microsoft Fabric | Microsoft Learn

 

Regards,

Nono Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-nuoc-msft
Community Support
Community Support

Hi @NunoTrigo1986 

 

ForEach activity is used to iterate over a collection and executes specified activities in a loop.

 

You can try breaking the data into smaller batches to reduce memory usage.

 

ForEach activity - Microsoft Fabric | Microsoft Learn

 

Check if you can allocate more memory for the pipe in Microsoft Fabric.

 

Scale your Fabric capacity - Microsoft Fabric | Microsoft Learn

 

Regards,

Nono Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

JanFabricDE_carousel

Fabric Monthly Update - January 2025

Explore the power of Python Notebooks in Fabric!

JanFabricDW_carousel

Fabric Monthly Update - January 2025

Unlock the latest Fabric Data Warehouse upgrades!