calling another notebook with mssparkutils.notebook.run - Kernel doesn't exist

Garon Fabienne 20 Reputation points
2023-03-15T07:46:42.0666667+00:00

i am not able to execute a notebook with mssparkutils.notebook.run. However the magic command %run 'notebook' works. i am getting an error like this:

com.microsoft.spark.notebook.msutils.NotebookExecutionException: Fetch notebook content for <notebook> failed with exception: Request to fetchNotebookContent failed with status code 400 error {"message":"Kernel doesn't exist: <id>. Please reopen notebook or contact support."

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
4,980 questions
{count} votes

Accepted answer
  1. ShaikMaheer-MSFT 38,451 Reputation points Microsoft Employee
    2023-03-16T14:41:11.51+00:00

    Hi Garon Fabienne,

    Thank you for posting query in Microsoft Q&A Platform.

    I am able to run my notebook using mssparkutils.notebook.run(). It seems intermittent issue to me. Could you please try to close all notebook sessions and retry opening everything freshly and see if that helps?

    Please check below my repro details.

    User's image

    Hope this helps. If not, please consider having support ticket so that dedicated team can have deeper look internally on logs to understand more and help with resolution. Click here to create support ticket.


    Please consider hitting Accept Answer button. Accepted answers help community as well.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. NPizzuti 56 Reputation points
    2024-05-28T16:29:06.04+00:00

    If your notebook is running in a GitHub integrated Synapse environment and you keep getting "Request to fetchNotebookContent failed with status code 400 error System level submitter mismatch. kernelId:...", check that your Session Configurations do not have "Run as Managed Identity" enabled - this can block usage of mssparkutils.notebook.run executions.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.