<?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 For each: nested JAR task can’t reference upstream taskValues in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/for-each-nested-jar-task-can-t-reference-upstream-taskvalues/m-p/129319#M48494</link>
    <description>&lt;P&gt;I’m creating a For each with a nested &lt;STRONG&gt;JAR task.&amp;nbsp;&lt;BR /&gt;init_job (notebook) sets dbutils.jobs.taskValues.set("my_value", ...), and the For each container depends on init_job.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;but the UI says: “Reference … can only be used in a task that depends on task 'init_job'.” This seems wrong because the nested task has a transitive dependency via the For each.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="javasquez_0-1755874934680.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/19264i68AD013F21D7AE11/image-size/medium?v=v2&amp;amp;px=400" role="button" title="javasquez_0-1755874934680.png" alt="javasquez_0-1755874934680.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If I switch the&lt;STRONG&gt; JAR nested task to Notebook Task, it can read the value correctly. for example:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is this a bug/known limitation for JAR tasks inside For each?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="javasquez_1-1755874991786.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/19265iBA37982D5D2C8625/image-size/medium?v=v2&amp;amp;px=400" role="button" title="javasquez_1-1755874991786.png" alt="javasquez_1-1755874991786.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 22 Aug 2025 15:10:40 GMT</pubDate>
    <dc:creator>javasquez</dc:creator>
    <dc:date>2025-08-22T15:10:40Z</dc:date>
    <item>
      <title>For each: nested JAR task can’t reference upstream taskValues</title>
      <link>https://community.databricks.com/t5/data-engineering/for-each-nested-jar-task-can-t-reference-upstream-taskvalues/m-p/129319#M48494</link>
      <description>&lt;P&gt;I’m creating a For each with a nested &lt;STRONG&gt;JAR task.&amp;nbsp;&lt;BR /&gt;init_job (notebook) sets dbutils.jobs.taskValues.set("my_value", ...), and the For each container depends on init_job.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;but the UI says: “Reference … can only be used in a task that depends on task 'init_job'.” This seems wrong because the nested task has a transitive dependency via the For each.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="javasquez_0-1755874934680.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/19264i68AD013F21D7AE11/image-size/medium?v=v2&amp;amp;px=400" role="button" title="javasquez_0-1755874934680.png" alt="javasquez_0-1755874934680.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If I switch the&lt;STRONG&gt; JAR nested task to Notebook Task, it can read the value correctly. for example:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is this a bug/known limitation for JAR tasks inside For each?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="javasquez_1-1755874991786.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/19265iBA37982D5D2C8625/image-size/medium?v=v2&amp;amp;px=400" role="button" title="javasquez_1-1755874991786.png" alt="javasquez_1-1755874991786.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Aug 2025 15:10:40 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/for-each-nested-jar-task-can-t-reference-upstream-taskvalues/m-p/129319#M48494</guid>
      <dc:creator>javasquez</dc:creator>
      <dc:date>2025-08-22T15:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: For each: nested JAR task can’t reference upstream taskValues</title>
      <link>https://community.databricks.com/t5/data-engineering/for-each-nested-jar-task-can-t-reference-upstream-taskvalues/m-p/129335#M48500</link>
      <description>&lt;P&gt;Yep—this is a current Workflows limitation. Task value refs ({{tasks.&amp;lt;key&amp;gt;.values.&amp;lt;name&amp;gt;}}) only work if the consuming task directly depends on the producer. A For Each/group dependency doesn’t count—nested tasks don’t inherit those edges for interpolation. That’s why the UI complains even though the group depends on init_job.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Aug 2025 18:01:06 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/for-each-nested-jar-task-can-t-reference-upstream-taskvalues/m-p/129335#M48500</guid>
      <dc:creator>WiliamRosa</dc:creator>
      <dc:date>2025-08-22T18:01:06Z</dc:date>
    </item>
  </channel>
</rss>

