- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2024 01:05 AM - edited 04-19-2024 01:06 AM
We were using this method and this was working as expected in Databricks 13.3.
def read_file():
try:
df_temp_dlr_kpi = spark.read.load(raw_path,format="csv", schema=kpi_schema)
return df_temp_dlr_kpi
except Exception as e:
error_message = str(e)
print(error_message)
dbutils.notebook.exit('Fail')
But now we have upgraded databricks to 14.3 and now method get returned without catching the exception when the file is not available.
When we call the method, unhandled exception generates as shown below.
Can anyone explain why we are experiencing this behaviour, and the solution to catch the exception?
Thanks in advance
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2024 02:13 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2024 02:13 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2024 03:24 AM
Thank you @daniel_sahal for the reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2024 12:05 PM
Hi, has this been resolved? I am still seeing this issue with Runtime 14.3 LTS
Thanks in advance.

