cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Not able to catch structured streaming exception

415963
New Contributor II

I would like to catch and handle an exception in a structured streaming job.

The databricks notebook still displays the exception, regardless of added exception handling (see attached screenshot)

I guess that the exception is displayed by the cell output. Is it possible to ignore the stream display in the cell output?

3 REPLIES 3

Debayan
Databricks Employee
Databricks Employee

Hi,

Could you please expand the error section and paste it here? 

Also, please tag @Debayan with your next comment which will notify me. Thanks!

415963
New Contributor II

@Debayan 

The notebook fails, even though I would like to catch that exception and return a different message to the caller. Hence, the notebook should end successfully.

Debayan
Databricks Employee
Databricks Employee

Hi, I understand, could you please also provide the last line of the error after scrolling down in the notebook cell? 

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group