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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.