<?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: File_arrival trigger in Workflow in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/file-arrival-trigger-in-workflow/m-p/76605#M35276</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/88135"&gt;@brockb&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;At task level it is working fine. Thanks.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jul 2024 10:27:00 GMT</pubDate>
    <dc:creator>NavyaSinghvi</dc:creator>
    <dc:date>2024-07-03T10:27:00Z</dc:date>
    <item>
      <title>File_arrival trigger in Workflow</title>
      <link>https://community.databricks.com/t5/data-engineering/file-arrival-trigger-in-workflow/m-p/76288#M35182</link>
      <description>&lt;P&gt;I am using&amp;nbsp; "&lt;SPAN&gt;job.trigger.file_arrival.location" in job parameters to get triggered file location . But I am getting error "&lt;SPAN&gt;job.trigger.file_arrival.location is not allowed&lt;/SPAN&gt;". How can I get triggered file location in workflow ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2024 11:40:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/file-arrival-trigger-in-workflow/m-p/76288#M35182</guid>
      <dc:creator>NavyaSinghvi</dc:creator>
      <dc:date>2024-07-01T11:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: File_arrival trigger in Workflow</title>
      <link>https://community.databricks.com/t5/data-engineering/file-arrival-trigger-in-workflow/m-p/76341#M35200</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/110124"&gt;@NavyaSinghvi&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Can you please confirm the Requirements and Limitations listed in this doc:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.databricks.com/en/workflows/jobs/file-arrival-triggers.html#requirements" target="_blank"&gt;https://docs.databricks.com/en/workflows/jobs/file-arrival-triggers.html#requirements&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If each of those are met, perhaps you could share a screenshot of your setup with the error message?&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2024 16:27:15 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/file-arrival-trigger-in-workflow/m-p/76341#M35200</guid>
      <dc:creator>brockb</dc:creator>
      <dc:date>2024-07-01T16:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: File_arrival trigger in Workflow</title>
      <link>https://community.databricks.com/t5/data-engineering/file-arrival-trigger-in-workflow/m-p/76508#M35235</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/88135"&gt;@brockb&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;All requirements from documents are met. I am able to trigger workflow based on file arrival. But can not use&amp;nbsp;&lt;SPAN&gt;job.trigger.file_arrival.location in job parameters.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2024 12:59:05 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/file-arrival-trigger-in-workflow/m-p/76508#M35235</guid>
      <dc:creator>NavyaSinghvi</dc:creator>
      <dc:date>2024-07-02T12:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: File_arrival trigger in Workflow</title>
      <link>https://community.databricks.com/t5/data-engineering/file-arrival-trigger-in-workflow/m-p/76561#M35266</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/110124"&gt;@NavyaSinghvi&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Thank you for clarifying that. I believe I was able to replicate the issue you're describing and was able to circumvent it by adding `job.trigger.file_arrival.location` as a&amp;nbsp;&lt;EM&gt;task-&lt;/EM&gt;level parameter, and&amp;nbsp;&lt;EM&gt;not&amp;nbsp;&lt;/EM&gt;as a job-level parameter.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="brockb_0-1719977522755.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/9159i2904165F44B5D274/image-size/medium?v=v2&amp;amp;px=400" role="button" title="brockb_0-1719977522755.png" alt="brockb_0-1719977522755.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Can you please give that a try and let me know how it goes?&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2024 03:33:01 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/file-arrival-trigger-in-workflow/m-p/76561#M35266</guid>
      <dc:creator>brockb</dc:creator>
      <dc:date>2024-07-03T03:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: File_arrival trigger in Workflow</title>
      <link>https://community.databricks.com/t5/data-engineering/file-arrival-trigger-in-workflow/m-p/76605#M35276</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/88135"&gt;@brockb&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;At task level it is working fine. Thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2024 10:27:00 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/file-arrival-trigger-in-workflow/m-p/76605#M35276</guid>
      <dc:creator>NavyaSinghvi</dc:creator>
      <dc:date>2024-07-03T10:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: File_arrival trigger in Workflow</title>
      <link>https://community.databricks.com/t5/data-engineering/file-arrival-trigger-in-workflow/m-p/106011#M42345</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/88135"&gt;@brockb&lt;/a&gt;&amp;nbsp;, I added parameter at both the job and task level. Value is not replaced by actual name of the file that triggered the job. Can you please let me know what I am missing? Thanks,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;job_parameters=[JobParameter(default='{{job.trigger.file_arrival.location}}', name='loc', value=None)]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;base_parameters={'loc1': '{{job.trigger.file_arrival.location}}', 'location': '{{job.trigger.file_arrival.location}}', 'loc2': '{{job.parameters.loc}}', 'job.trigger.file_arrival.location': '{{job.trigger.file_arrival.location}}', 'loc3': '{{job.trigger.file_arrival.location}}'}&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jan 2025 03:22:00 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/file-arrival-trigger-in-workflow/m-p/106011#M42345</guid>
      <dc:creator>raghu2</dc:creator>
      <dc:date>2025-01-17T03:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: File_arrival trigger in Workflow</title>
      <link>https://community.databricks.com/t5/data-engineering/file-arrival-trigger-in-workflow/m-p/106136#M42401</link>
      <description>&lt;P&gt;The parameters are passed as widgets to the job. After defining the parameters in the job definition, With following code I was able to access the data associated with the parameter:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;widget_names &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; [&lt;/SPAN&gt;&lt;SPAN&gt;"loc1"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"loc2"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"loc3"&lt;/SPAN&gt;&lt;SPAN&gt;] &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;# Add all expected parameter names here&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;print&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"Parameters passed to the notebook:"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;for&lt;/SPAN&gt;&lt;SPAN&gt; name &lt;/SPAN&gt;&lt;SPAN&gt;in&lt;/SPAN&gt;&lt;SPAN&gt; widget_names:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;try&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; value &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; dbutils.widgets.&lt;/SPAN&gt;&lt;SPAN&gt;get&lt;/SPAN&gt;&lt;SPAN&gt;(name)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;print&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;f&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;SPAN&gt;name&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;SPAN&gt;value&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;except&lt;/SPAN&gt; &lt;SPAN&gt;Exception&lt;/SPAN&gt; &lt;SPAN&gt;as&lt;/SPAN&gt;&lt;SPAN&gt; e:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;print&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;f&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;SPAN&gt;name&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;: Not defined (Error: &lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;SPAN&gt;str&lt;/SPAN&gt;&lt;SPAN&gt;(e)&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;)"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 17 Jan 2025 20:06:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/file-arrival-trigger-in-workflow/m-p/106136#M42401</guid>
      <dc:creator>raghu2</dc:creator>
      <dc:date>2025-01-17T20:06:30Z</dc:date>
    </item>
  </channel>
</rss>

