cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
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
Esteemed Contributor III
Esteemed Contributor III

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
Esteemed Contributor III
Esteemed Contributor III

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