Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowFabric Data Days Monthly is back. Join us on March 26th for two expert-led sessions on 1) Getting Started with Fabric IQ and 2) Mapping & Spacial Analytics in Fabric. Register now
Hello everyone!
I want to run a notebook with mssparkutils but want to continue with the code execution if the called notebook run fails, analog to having pipeline items in sequence "upon completion". Is this possible, and if so, how?
So far I tried:
import sys
try:
mssparkutils.notebook.run("00_Broken_Notebook")
except: # catch *all* exceptions
e = sys.exc_info()[0]
write_to_page("<p>Error: %s</p>" % e)
Thanks for any help!
Solved! Go to Solution.
Hi @Anonymous ,
Thanks for using Fabric Community.
Below code is working for me -
Test Notebook 1 -
Test Notebook 2 -
import logging
try:
mssparkutils.notebook.run("Test Notebook 1")
except Exception as e:
logging.exception(e)
print("it is running")
Hope this is helpful. Do let me know incase of further queries.
Hi @Anonymous ,
Thanks for using Fabric Community.
Below code is working for me -
Test Notebook 1 -
Test Notebook 2 -
import logging
try:
mssparkutils.notebook.run("Test Notebook 1")
except Exception as e:
logging.exception(e)
print("it is running")
Hope this is helpful. Do let me know incase of further queries.
Hi @Anonymous ,
Glad to know that your query got resolved. Please continue using Fabric Community on your further queries.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Fabric update to learn about new features.
| User | Count |
|---|---|
| 16 | |
| 7 | |
| 4 | |
| 3 | |
| 3 |