# ERR\_SPARK\_PYSPARK\_CODE\_FAILED\_UNSPECIFIED: Pyspark code failed[¶](https://doc.dataiku.com/dss/latest/troubleshooting/errors/ERR_SPARK_PYSPARK_CODE_FAILED_UNSPECIFIED.html#err-spark-pyspark-code-failed-unspecified-pyspark-code-failed "Permalink to this headline")

## Description[¶](https://doc.dataiku.com/dss/latest/troubleshooting/errors/ERR_SPARK_PYSPARK_CODE_FAILED_UNSPECIFIED.html#description "Permalink to this headline")

This error can happen when:

* Running a Pyspark recipe

* Running a plugin recipe that uses Pyspark

This error indicates that the Pyspark execution failed, and threw a Python exception.

* The message of the error contains the full error message from Spark

* Additional details, including the Python stack, are available in the job log

## Remediation[¶](https://doc.dataiku.com/dss/latest/troubleshooting/errors/ERR_SPARK_PYSPARK_CODE_FAILED_UNSPECIFIED.html#remediation "Permalink to this headline")

You need to carefully read both the error message, and the logs of the job that failed. Between them, they contain all information which is available to understand why the Pyspark code threw an exception.
