databricks notebook parameter works in interactive mode but not in the job
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2025 11:02 PM
Hi guys
I've added a parameter "files_mask " to a notebook, with a default value.
The job running this notebook broke with error: com.databricks.dbutils_v1.InputWidgetNotDefined: No input widget named files_mask is defined
Code: mask = dbutils.widgets.get('files_mask')
The problem is, it works in interactive mode but not in the job. How do I use parameters defined in the notebook as-is, without redefining them in job? I'm happy for them to run on defaults as declared in the notebook.