Microsoft Fabric · Notebook activity

“Notebook execution failed at Notebook service with http status code - '200'” in a Fabric pipeline

This sentence is the Notebook activity’s wrapper around whatever stopped the notebook. The 200 is only the HTTP status the Notebook service returned to the pipeline. The cause is the text after Error name and Error value: an exception raised by your code, or a Spark session that could not start.

The error
Notebook execution failed at Notebook service with http status code - '200', please check the Run logs on Notebook, additional details - 'Error name - AnalysisException, Error value - [SCHEMA_NOT_FOUND] The schema `LH_Raw` cannot be found. Verify the spelling and correctness of the schema and catalog.'

What this error means

A pipeline does not run notebook code itself. It asks the Notebook service to run the notebook and waits for the result. When the run ends in failure, the activity reports this sentence and adds the type of the exception as Error name and its message as Error value. The example above is one such pair; yours will differ.

So the same first line appears for very different problems. Read the two fields first, then open the notebook run for the output of the cell that failed.

Why it happens

  • An exception in the notebook’s code. Error name is the exception class, such as AnalysisException or Py4JJavaError, and Error value is its message: a schema or table that cannot be found, a column that cannot be resolved, a path that does not exist.
  • No lakehouse to run Spark SQL against. Error value contains Spark SQL queries are only possible in the context of a lakehouse. Please attach a lakehouse to proceed. The notebook relies on a default lakehouse that is not attached to it.
  • The Spark session could not start. Error value begins with Failed to create Livy session for executing notebook, and the reason follows it. One reason is TooManyRequestsForCapacity: the capacity has reached its limit for Spark jobs. Another is a sign-in or token error from the connection selected in the Notebook activity.
  • A child notebook failed. A notebook started with notebookutils.notebook.run or runMultiple raised an error, and the parent reports it as a Py4JJavaError.

How to fix it

  1. Read Error name and Error value

    Copy the whole message from the pipeline run’s Output tab. Everything after additional details - is the notebook’s own error.

  2. Open the notebook run

    Open the notebook, select Run and then All runs, or open Recent runs from the notebook’s menu in the workspace. Select the failed run to see its details and logs.

  3. Fix what the error names

    For an exception in the code, correct the query, table, column or path that the message names. For the lakehouse message, attach a default lakehouse to the notebook, or refer to tables and files by their full names.

  4. For a session that could not start, read the reason

    The text after Failed to create Livy session for executing notebook says why. For TooManyRequestsForCapacity, Microsoft’s advice is to cancel an active Spark job in the Monitoring hub, choose a larger capacity, or try again later. For a sign-in or token error, check the connection selected in the Notebook activity. When it uses a workspace identity, Microsoft lists three requirements: the identity is created in the pipeline’s own workspace, the tenant setting that lets service principals call Fabric public APIs is switched on, and the identity has at least Contributor access to the notebook’s workspace.

  5. Rerun the pipeline

    Run the pipeline again and confirm in Recent runs that the notebook run succeeded.

How to stop it coming back

  • Attach the default lakehouse to every notebook a pipeline runs, or refer to tables and files by their full names.
  • Raise clear exceptions in the notebook, with the table or file name in the message, so the pipeline error can be read without opening the run.
  • After deploying to another workspace, check that the Notebook activity’s connection belongs to that workspace.

With PipelineMender AI

The next failed run explains itself.

PipelineMender reads the failing activity’s error, input and output through the Fabric REST API. For a Notebook activity that error is this message, so the report starts from Error name and Error value, relates them to the pipeline definition, and gives the likely root cause with a fix to review. It reads the pipeline’s view of the failure, not the notebook’s cell output.

Is the error in front of you now? Start a trial, choose Report an incident and paste it in. No connection is needed for that.

  • Read-only access
  • You review every change
  • No model training

Questions

Common questions about this error.

Why does the error say status code 200 if the notebook failed?

The 200 is the HTTP status the Notebook service returned to the pipeline. It does not describe your code. The failure is described by Error name and Error value in the same message.

Where are the run logs the message mentions?

Open the notebook, select Run and then All runs, or open Recent runs from the notebook or the pipeline in the workspace. Selecting the failed run shows its details and logs.

The notebook works when I run it by hand. Why does it fail in the pipeline?

A pipeline run does not share your interactive session. The usual differences are the default lakehouse, the parameter values the pipeline passes, and the identity the activity runs as.

Checked against: Notebook activity in Microsoft Fabric View an item’s recent runs How to use Microsoft Fabric notebooks Monitor pipeline runs in Microsoft Fabric Concurrency limits and queueing in Apache Spark for Microsoft Fabric

Last reviewed 13 November 2026 against Microsoft’s documentation. PipelineMender AI is an independent product and is not affiliated with Microsoft or Databricks; product names are trademarks of their owners.