<?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: Dynamic File Loading in Dataflow Gen 2 Based on a Variable Folder Structure in Dataflow</title>
    <link>https://community.fabric.microsoft.com/t5/Dataflow/Dynamic-File-Loading-in-Dataflow-Gen-2-Based-on-a-Variable/m-p/3972341#M3095</link>
    <description>&lt;P&gt;I'm not sure I follow. The desired requirements talk about using a Pipelines-centric mechanism with even reading the folder structure, but this was posted in the Dataflows forum and with a title of Dynamic Loading in Dataflow Gen2. Whats the logic that you want to implement in Dataflow Gen2?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could use a metadata driven approach. You could read, from "somewhere", what folder or set of files to read and then apply a set of filters to the queries that you create in Power Query that will leverage the values from that "somewhere" and thus reaching the set of files or folders that you wish to use for your Dataflow Gen2.&lt;/P&gt;</description>
    <pubDate>Tue, 04 Jun 2024 20:32:55 GMT</pubDate>
    <dc:creator>miguel</dc:creator>
    <dc:date>2024-06-04T20:32:55Z</dc:date>
    <item>
      <title>Dynamic File Loading in Dataflow Gen 2 Based on a Variable Folder Structure</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/Dynamic-File-Loading-in-Dataflow-Gen-2-Based-on-a-Variable/m-p/3970494#M3087</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H4&gt;Scenario:&lt;/H4&gt;&lt;P&gt;In our Data Lake (Bronze Layer), we have a hierarchical folder structure organized by year, month, and day. Every day, a new folder with potentially several new JSON files is added for that particular day. The goal is to manage this dynamic structure and implement a method that allows for step-by-step file loading to Silver-Layer Table. The selection of the file to be loaded should be controlled by a trigger in a pipeline (for example using a foreach loop)&lt;/P&gt;&lt;H4&gt;Folder Structure:&lt;/H4&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Year
|-- Month
    |-- Day
        |-- file1.json
        |-- file2.json
        |-- ...&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H4&gt;Desired Requirements:&lt;/H4&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;Dynamic Reading of Folder Structure:&lt;/STRONG&gt; The pipeline must be able to dynamically read the existing folder structure to determine which days are already present and do not need to be loaded.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Step-by-Step File Loading:&lt;/STRONG&gt; The pipeline should be configured to load one file at a time based on a trigger, if possible.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Pipeline Control:&lt;/STRONG&gt; A foreach loop or a similar mechanism should be implemented to determine which file to load. This allows for flexibility in automating the process and loading specific files based on metadata or other criteria.&lt;/LI&gt;&lt;/OL&gt;&lt;H4&gt;Previously Tested Approaches:&lt;/H4&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Introducing Parameters Filled by the Trigger:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I added Parameter in the Dataflow for folder and file names, that could be passed dynamically&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Problem:&lt;/STRONG&gt; In a pipeline activity, it seems that parameters cannot be passed to the Dataflow in Fabric. &lt;A href="https://community.fabric.microsoft.com/t5/Data-Pipelines/Pipeline-parameters-passing-to-Dataflows-Gen-2-parameter-values/m-p/3643623" target="_blank" rel="noopener"&gt;Info from this Topic in January 2024&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any best Practice for loading from evolving hierachical folderstructure with Dataflow Gen2? Is it even possible?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2024 07:11:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/Dynamic-File-Loading-in-Dataflow-Gen-2-Based-on-a-Variable/m-p/3970494#M3087</guid>
      <dc:creator>KKO</dc:creator>
      <dc:date>2024-06-04T07:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic File Loading in Dataflow Gen 2 Based on a Variable Folder Structure</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/Dynamic-File-Loading-in-Dataflow-Gen-2-Based-on-a-Variable/m-p/3971745#M3090</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="754224" data-lia-user-login="KKO" class="lia-mention lia-mention-user"&gt;KKO&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Thanks for using Fabric Community.&lt;BR /&gt;Please feel free to refer this doc to gets some insights on your query -&lt;BR /&gt;&lt;A href="https://www.mssqltips.com/sqlservertip/6246/azure-data-factory-get-metadata-example/" target="_blank"&gt;Azure Data Factory Get Metadata Example (mssqltips.com)&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.youtube.com/watch?v=L165TgZZfHk" target="_blank"&gt;2. Get File Names from Source Folder Dynamically in Azure Data Factory (youtube.com)&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this might provide some insights. Please do let me know incase of further queries.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2024 14:24:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/Dynamic-File-Loading-in-Dataflow-Gen-2-Based-on-a-Variable/m-p/3971745#M3090</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-04T14:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic File Loading in Dataflow Gen 2 Based on a Variable Folder Structure</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/Dynamic-File-Loading-in-Dataflow-Gen-2-Based-on-a-Variable/m-p/3972341#M3095</link>
      <description>&lt;P&gt;I'm not sure I follow. The desired requirements talk about using a Pipelines-centric mechanism with even reading the folder structure, but this was posted in the Dataflows forum and with a title of Dynamic Loading in Dataflow Gen2. Whats the logic that you want to implement in Dataflow Gen2?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could use a metadata driven approach. You could read, from "somewhere", what folder or set of files to read and then apply a set of filters to the queries that you create in Power Query that will leverage the values from that "somewhere" and thus reaching the set of files or folders that you wish to use for your Dataflow Gen2.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2024 20:32:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/Dynamic-File-Loading-in-Dataflow-Gen-2-Based-on-a-Variable/m-p/3972341#M3095</guid>
      <dc:creator>miguel</dc:creator>
      <dc:date>2024-06-04T20:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic File Loading in Dataflow Gen 2 Based on a Variable Folder Structure</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/Dynamic-File-Loading-in-Dataflow-Gen-2-Based-on-a-Variable/m-p/3976763#M3106</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="754224" data-lia-user-login="KKO" class="lia-mention lia-mention-user"&gt;KKO&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Did you got a chance to check the previous response on this thread?&amp;nbsp;&lt;BR /&gt;We haven’t heard from you on the last response and was just checking back to see if your query was answered.&lt;BR /&gt;Otherwise, will respond back with the more details and we will try to help .&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2024 10:12:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/Dynamic-File-Loading-in-Dataflow-Gen-2-Based-on-a-Variable/m-p/3976763#M3106</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-06T10:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic File Loading in Dataflow Gen 2 Based on a Variable Folder Structure</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/Dynamic-File-Loading-in-Dataflow-Gen-2-Based-on-a-Variable/m-p/3979222#M3111</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="754224" data-lia-user-login="KKO" class="lia-mention lia-mention-user"&gt;KKO&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet .&lt;BR /&gt;In case if you have any resolution please do share that same with the community as it can be helpful to others . &lt;BR /&gt;Otherwise, will respond back with the more details and we will try to help . &lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2024 09:10:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/Dynamic-File-Loading-in-Dataflow-Gen-2-Based-on-a-Variable/m-p/3979222#M3111</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-07T09:10:06Z</dc:date>
    </item>
  </channel>
</rss>

