cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

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!!
 
1 REPLY 1

Brahmareddy
Honored Contributor

Hi @suryateja405555, How are you doing today?

As per my understanding, Make sure ETL_data_checks is properly declared in the tasks section of your workflow configuration in the root module. For example, add it with a task_key and its respective properties like notebook_path and cluster_key. Verify that ETL_schema_checks references the correct task_key for ETL_data_checks, ensuring the dependency aligns with the workflow logic. Double-check naming consistency between the task definition and its references to avoid any mismatches. After fixing, validate the asset bundle using the Databricks CLI to ensure there are no errors in the configuration. Lastly, confirm that all tasks have their cluster resources appropriately associated.

Please give a try and let me know if helps. Good day.

Regards,

Brahma

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group