Medium severityexecution
Power BI Refresh Error:
NOTEBOOK_EXECUTION_ERROR
What does this error mean?
A Snowflake Notebook cell or workflow-triggered notebook run failed during execution, caused by a Python exception, SQL error, or resource constraint within the notebook environment.
Common causes
- 1A Python cell raised an unhandled exception that propagated and halted the notebook
- 2A SQL cell executed a DML statement the notebook role does not have permission to run
- 3The notebook warehouse was suspended and did not auto-start within the query timeout
- 4A package dependency imported in the notebook is not available in the Snowflake container runtime version
How to fix it
- 1Step 1: Open the failed notebook in Snowsight and review the cell output for the specific error message.
- 2Step 2: For Python errors, add try/except blocks to isolate the failing cell and log the exception.
- 3Step 3: For SQL permission errors, grant the required privileges to the notebook role on the target objects.
- 4Step 4: Confirm the warehouse assigned to the notebook is running and has sufficient capacity.
- 5Step 5: For missing packages, add them to the notebook's Packages panel and restart the kernel.