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? 

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.