- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2025 09:23 AM
I am trying to deploy a job with a for_each_task using DAB and Terraform and I am unable to properly pass the task value into the subsequent task.
These are my job tasks definition in the YAML:
I am setting the parameter with: dbutils.jobs.taskValues.set(...) and retrieving it through: dbutils.widgets.get() because I am using scala in my notebooks and task values only seem to work with Python, so I use the widgets to retrieve them. But this should not mess with parameter setup into yaml.
- Labels:
-
Workflows
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2025 07:35 AM
We have been testing and find out the issue (I just realized that my anonymization of the names removed the source of the error).
We have tracked down to the inputs parameter of the for_each_task. It seems that is unable to call to task names with dashes: "{{tasks.Task-ETL_Get_Params.values.key}}" won't work because of the -. You can either use underscores or shortcut with ``: "{{tasks.`Task-ETL_Get_Params`.values.key}}".
I hope this helps to other people.