cancel
Showing results for 
Search instead for 
Did you mean: 
Get Started Discussions
Start your journey with Databricks by joining discussions on getting started guides, tutorials, and introductory topics. Connect with beginners and experts alike to kickstart your Databricks experience.
cancel
Showing results for 
Search instead for 
Did you mean: 

Databricks Dashboard run from Job issue

anilsampson
New Contributor II

Hello, i am trying to trigger a databricks dashboard via workflow task.

1.when i deploy the job triggering the dashboard task via local "Deploy bundle" command deployment is successful.

2. when i try to deploy to a different environment via CICD while deploying validation is successful. but deploy bundle is failing on the dashboard task with below error:

cannot create job: No task defined for dashboard task

 

im using below in resource.yml

tasks:
- task_key: dashboard_task
dashboard_task:
subscription:
subscribers:
- user_name: ${workspace.current_user.userName} # Replace this with the email of snapshot subscriber email
paused: false
warehouse_id: ${var.warehouse_id}
dashboard_id: ${resources.dashboards.nyc_taxi_trip_analysis.id}

1 REPLY 1

SP_6721
Contributor

Hi @anilsampson ,

The error means your dashboard_task is not properly nested under the tasks section.

tasks:

- task_key: dashboard_task
  dashboard_task:
    dashboard_id: ${resources.dashboards.nyc_taxi_trip_analysis.id}
    warehouse_id: ${var.warehouse_id}
    subscription:
      subscribers:
        - user_name: ${workspace.current_user.userName}
    paused: false

Make sure dashboard_task is indented under the task item (not at the same level as tasks:)

Thanks,
Shibin P