<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Requirement to run a databricks job from another job based on custom conditions using DAB in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/requirement-to-run-a-databricks-job-from-another-job-based-on/m-p/125148#M47355</link>
    <description>&lt;P&gt;ok, you do include the resources dir in your databricks.yml?&lt;BR /&gt;Because this should work.&lt;/P&gt;</description>
    <pubDate>Mon, 14 Jul 2025 10:08:35 GMT</pubDate>
    <dc:creator>-werners-</dc:creator>
    <dc:date>2025-07-14T10:08:35Z</dc:date>
    <item>
      <title>Requirement to run a databricks job from another job based on custom conditions using DAB</title>
      <link>https://community.databricks.com/t5/data-engineering/requirement-to-run-a-databricks-job-from-another-job-based-on/m-p/125131#M47347</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I'm using &lt;STRONG&gt;Databricks Asset Bundles&lt;/STRONG&gt; to deploy a job that includes a run_job_task, which requires a job_id to trigger another job.&lt;/P&gt;&lt;P&gt;For different targets (dev, staging, prod), I need to pass different job_ids dynamically. To achieve this, I’ve defined the variable in the variables section and tried to override it per environment in the targets section.&lt;/P&gt;&lt;P&gt;However, when I run databricks bundle validate, I encounter the following error:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;ERROR: Variable &lt;SPAN class=""&gt;'job_id'&lt;/SPAN&gt; &lt;SPAN class=""&gt;is&lt;/SPAN&gt; incorrectly defined &lt;SPAN class=""&gt;in&lt;/SPAN&gt; target &lt;SPAN class=""&gt;override&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Here’s a simplified version of what I’m trying:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;LI-CODE lang="python"&gt;variables:
  job_id:
    description: Downstream job ID

targets:
  dev:
    variables:
      job_id: 1234

  staging:
    variables:
      job_id: 5678

  prod:
    variables:
      job_id: 91011

resources:
  jobs:
    main_job:
      name: trigger-${bundle.target}-downstream
      tasks:
        - task_key: trigger_downstream
          run_job_task:
            job_id: ${var.job_id}
            wait_for_completion: true&lt;/LI-CODE&gt;&lt;P&gt;Is this the correct way to define and override variables for different targets in Asset Bundles? Or should this be handled differently (e.g., through variable-overrides.json or CLI)?&lt;/P&gt;&lt;P&gt;Appreciate any guidance!&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jul 2025 08:59:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/requirement-to-run-a-databricks-job-from-another-job-based-on/m-p/125131#M47347</guid>
      <dc:creator>adhi_databricks</dc:creator>
      <dc:date>2025-07-14T08:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: Requirement to run a databricks job from another job based on custom conditions using DAB</title>
      <link>https://community.databricks.com/t5/data-engineering/requirement-to-run-a-databricks-job-from-another-job-based-on/m-p/125140#M47353</link>
      <description>&lt;P&gt;can you try to add a default value for the variable definition (besides the description)? It can be anything.&lt;BR /&gt;For the rest this seems ok.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jul 2025 09:30:41 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/requirement-to-run-a-databricks-job-from-another-job-based-on/m-p/125140#M47353</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2025-07-14T09:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: Requirement to run a databricks job from another job based on custom conditions using DAB</title>
      <link>https://community.databricks.com/t5/data-engineering/requirement-to-run-a-databricks-job-from-another-job-based-on/m-p/125146#M47354</link>
      <description>&lt;P&gt;Have already tried adding the default value , still the same error was displayed.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jul 2025 09:58:35 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/requirement-to-run-a-databricks-job-from-another-job-based-on/m-p/125146#M47354</guid>
      <dc:creator>adhi_databricks</dc:creator>
      <dc:date>2025-07-14T09:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: Requirement to run a databricks job from another job based on custom conditions using DAB</title>
      <link>https://community.databricks.com/t5/data-engineering/requirement-to-run-a-databricks-job-from-another-job-based-on/m-p/125148#M47355</link>
      <description>&lt;P&gt;ok, you do include the resources dir in your databricks.yml?&lt;BR /&gt;Because this should work.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jul 2025 10:08:35 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/requirement-to-run-a-databricks-job-from-another-job-based-on/m-p/125148#M47355</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2025-07-14T10:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: Requirement to run a databricks job from another job based on custom conditions using DAB</title>
      <link>https://community.databricks.com/t5/data-engineering/requirement-to-run-a-databricks-job-from-another-job-based-on/m-p/125150#M47356</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/124788"&gt;@adhi_databricks&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Could you also provide output of&amp;nbsp;databricks bundle validate --debug ?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jul 2025 10:19:11 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/requirement-to-run-a-databricks-job-from-another-job-based-on/m-p/125150#M47356</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2025-07-14T10:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: Requirement to run a databricks job from another job based on custom conditions using DAB</title>
      <link>https://community.databricks.com/t5/data-engineering/requirement-to-run-a-databricks-job-from-another-job-based-on/m-p/125154#M47358</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/124788"&gt;@adhi_databricks&lt;/a&gt;&amp;nbsp; Also, one think that is always worth to do - update databricks cli to newest version. I tried to reproduce your error, but in my case everything went smoothly (without a need to define default variable in top-level mapping).&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jul 2025 10:31:16 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/requirement-to-run-a-databricks-job-from-another-job-based-on/m-p/125154#M47358</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2025-07-14T10:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: Requirement to run a databricks job from another job based on custom conditions using DAB</title>
      <link>https://community.databricks.com/t5/data-engineering/requirement-to-run-a-databricks-job-from-another-job-based-on/m-p/125387#M47435</link>
      <description>&lt;P&gt;Hey folks, Thanks for the help here&lt;BR /&gt;Was able to solve this issue with updating the databricks cli to latest version&lt;BR /&gt;Thanks once again!!&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jul 2025 05:45:59 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/requirement-to-run-a-databricks-job-from-another-job-based-on/m-p/125387#M47435</guid>
      <dc:creator>adhi_databricks</dc:creator>
      <dc:date>2025-07-16T05:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: Requirement to run a databricks job from another job based on custom conditions using DAB</title>
      <link>https://community.databricks.com/t5/data-engineering/requirement-to-run-a-databricks-job-from-another-job-based-on/m-p/125391#M47438</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/124788"&gt;@adhi_databricks&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Glad that it work for you. If my answer was helpful, consider marking it as an accepted solution. This way, the next person with a similar question will be able to find the solution to their problem more quickly.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="szymon_dybczak_0-1752647868397.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/18219iC46CA94CB617366F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="szymon_dybczak_0-1752647868397.png" alt="szymon_dybczak_0-1752647868397.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jul 2025 06:39:53 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/requirement-to-run-a-databricks-job-from-another-job-based-on/m-p/125391#M47438</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2025-07-16T06:39:53Z</dc:date>
    </item>
  </channel>
</rss>

