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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
jisaac
Helper I
Helper I

Running multiple instances of the same Notebook concurrently

I have a pipeline that needs to runs two Notebook activities (A and B) before running the third Notebook activity (C).

Activities A and B both run the same Notebook but with different parameters: they're doing the same operation on different tables. After both of those tables have been operated on by the Notebooks, it is supposed to run Activity C which runs an operation on both of those tables.

 

The problem is that, despite being able to give it parameters, the Notebooks error when they are run at the same time. The second instance to run causes the first run to Fail with a strange error. Say the first run is A and the second is B by a few second delay. A fails after B starts. Clicking on A to view the Notebook snapshot pulls up two identical snapshots for B, with no trace of the A run left behind.

 

I get the same behavior with or without High Concurrency sessions setup.

 

Is there a way to run the same Notebook twice at the same time with different parameters?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @jisaac ,

 

I recommend using a single call to a notebook that calls mssparkutils.notebook.runMultiple() in order to execute multiple calls to the notebook in a single Spark session. This approach allows Spark to utilize its ability to efficiently perform concurrent tasks.

 

For more detailed information, please refer to:

Microsoft Spark Utilities (MSSparkUtils) for Fabric - Microsoft Fabric | Microsoft Learn

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

View solution in original post

2 REPLIES 2
uselessai_in
Helper II
Helper II
Anonymous
Not applicable

Hi @jisaac ,

 

I recommend using a single call to a notebook that calls mssparkutils.notebook.runMultiple() in order to execute multiple calls to the notebook in a single Spark session. This approach allows Spark to utilize its ability to efficiently perform concurrent tasks.

 

For more detailed information, please refer to:

Microsoft Spark Utilities (MSSparkUtils) for Fabric - Microsoft Fabric | Microsoft Learn

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Fabric Update Carousel

Fabric Monthly Update - September 2025

Check out the September 2025 Fabric 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.

Top Kudoed Authors