yesterday
I'm implementing DABs, Jobs, and Notebooks.
For configure management, I set parameters on databricks.yml.
but I can't get parameters on notebook after executed a job successfully.
databricks bundle validate
databricks bundle plan -t dev
databricks bundle deploy --target dev --profile my_dev
================================================================================
Processing Date:
Target Catalog (from DABs):
Target Schema (from DABs):
================================================================================
(couldn't catch!)
I assume "dbutils.widgets.text("target_catalog", "", "Target Catalog (from DABs)")" on Notebook can catch a Job parameter which DABs set.
How can I handle this issue?
Thanks.
yesterday
Step 1 - Remove widget creation lines
Delete:
dbutils.widgets.text("target_catalog", "", "Target Catalog")
dbutils.widgets.text("target_schema", "", "Target Schema")
dbutils.widgets.text("processing_date", "", "Processing Date")
Step 2 - Use only widget getters
processing_date = dbutils.widgets.get("processing_date")
target_catalog = dbutils.widgets.get("target_catalog")
target_schema = dbutils.widgets.get("target_schema")
print("Processing Date:", processing_date)
print("Target Catalog:", target_catalog)
print("Target Schema:", target_schema)
yesterday
Thank you so much for your reply. But
I've confirmed that "Job parameters" are set well on WEB UI as "processing_date
2025-11-12"
Notenook give off an error on "processing_date = dbutils.widgets.get("processing_date")" LINE
ERROR MESSAGE: Py4JJavaError: An error occurred while calling o404.getArgument.
Configure tasks: https://docs.databricks.com/aws/en/dev-tools/bundles/job-task-types#configure-tasks
See the section which start a word : "# This notebook receives the message as a parameter."
It says that "dbutils.widgets.text("received_message", "")" is nessesary.
Any ideas?
Thank you so much
9 hours ago
In DABS, you don't need to pass to a single task, etc, target_catalog: "{{job.parameters.target_catalog}}" as job parameters are passed anyway, so remove those lines as you are passing blank.
Job parameters are automatically available to every task inside that job.
3 hours ago
Thank you so much for your reply
I've removed "target_catalog: "{{job.parameters.target_catalog}}""
re-run the job and notebook
From WEB UI, i can see ja ob successfully started, a task related to the job, and a notebook related to the task linked with.
Manually run the notebook, then cells have succesfully done.
Still I can't see the result well:
Output of the cell:
=======================
Target Catalog (from DABs):
Target Schema (from DABs):
========================
I've confirmed that the job parameters were well set.
When I explicitly set "dbutils.widgets.text("target_catalog", "dev-catalog", "Target Catalog")" on notebook, of course it works well.( I couldd catch it!)
So I assume core issue is parameter getter from Job parameter which is well set to Widgets on notebook.
Any ideas?
If you provide any code about DABs Parameter which works successfully, I'm glad to see it.
From my research, I still can't find any mistake.
Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!
Sign Up Now