Databricks workflow deployment issue

suryateja405555
New Contributor III

The below one is the data bricks workflow. Note: ETL_schema check is if/else task in databricks workflow)

suryateja405555_2-1732082532269.png

Declaring below taskValues based on some conditions in ETL_data_check notebooks. Based on the below output the next task"ETL_schema_checks" (if/else) will be executed.

if failure:
dbutils.jobs.taskValues.set(key="flag_mismatch",value="failure")
else:
dbutils.jobs.taskValues.set(key="flag_mismatch",value="success")
using above if/else condtition etl_data_checks.

i am trying to deploy the workflow using databricks asset bundles. Below is the job definition. while deploying the code i am getting error "A managed resource tasks" "ETL_data_checks" has not been declared in the root module."

suryateja405555_3-1732083107096.png

 

Could you please explain, what is the exact issue here, how to fix it?
Thanks in Advance!!