Forum Discussion
Fabric Notebook notebookutils.notebook.exit('Output Value') not working
- 1 year ago
Hi Arundhati_Sen1,
Thank you for your update.
As a workaround, kindly review the following steps that may assist in resolving the issue:
- Please refer to the Fintech library's documentation or source code to identify any known issues or conflicts with other modules.
- If the exit function is critical, consider placing the exit logic before importing the Fintech library, as this may help prevent any interference.
exit_value = {"status":"successful"}notebookutils.notebook.exit(exit_value)
from fintech import register
Additionally, please find below a reference link that may be helpful in resolving the issue:Solved: Re: Python (not spark) Notebook exitValue issue - Microsoft Fabric Community
If you find our response helpful, kindly mark it as the accepted solution and provide kudos. This will assist other community members facing similar queries.
Thank you.
Hi,
You may try to import only required functions from the fintech package instead of the whole library. Like this example:
from fintech.sepa import Account, SEPACreditTransfer
It may be the case that fintech has some own exit function that interferes with your used function.
So try to remove the whole 'import fintech' line and only import specific packages used.
- Arundhati_Sen11 year agoFrequent Visitor
As per official document before importing anyt module from fintech library it needs to be registered (Python Fintech Documentation - joonis.de)
so I only imported register from fintech, not the entire library. But still issue persists. Any other workaround?Even if I only import register from fintech still same thing happening. Please help
- FabianSchut1 year agoSolution Sage
Does it work when you use
mssparkutils.notebook.exit()instead of notebookutils?
- Arundhati_Sen11 year agoFrequent Visitor
No I have verified that also is not working, same error