<?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: Need Help with Dynamic Folder Strcuture for Files Loaded to a LakeHouse in Pipelines</title>
    <link>https://community.fabric.microsoft.com/t5/Pipelines/Need-Help-with-Dynamic-Folder-Strcuture-for-Files-Loaded-to-a/m-p/3931437#M3421</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="408286" data-lia-user-login="kewaynes333" class="lia-mention lia-mention-user"&gt;kewaynes333&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thanks for using Fabric Community.&lt;/P&gt;
&lt;P&gt;Here’s a general approach you can take:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Lookup Activity&lt;/STRONG&gt;: Use a Lookup activity to retrieve the list of tables that you want to copy. This could be a list of tables in your source database or a list of files in your ALDS container.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;ForEach Activity&lt;/STRONG&gt;: Use a ForEach activity to iterate over the list of tables/files retrieved by the Lookup activity. Inside the ForEach activity, you can include a Copy Data activity.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Copy Data Activity&lt;/STRONG&gt;: In the Copy Data activity, you can specify the source (your ALDS container) and the destination (your LakeHouse). You can use dynamic content to specify the table/file name in the source and the folder structure in the destination based on the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;dateSold&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;column.&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Here’s an example of how you can specify the folder structure dynamically:&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt; @concat(formatDateTime(convertTimeZone(item().dateSold, 'UTC', 'yyyy/MM'), 'UTC'), '/', item().tableName)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This will create a folder structure like Year/Month/TableName in your LakeHouse for each table/file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can refer to this link:&lt;BR /&gt;&lt;A href="https://www.serverlesssql.com/fabric-lakehouse-loading-inspired-by-end-to-end/" target="_blank"&gt;Fabric Lakehouse Loading using Data Pipelines &amp;amp; Notebooks – Inspired by MS End-to-End Tutorials (serverlesssql.com)&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Please let me know if you have any further questions.&lt;/P&gt;</description>
    <pubDate>Mon, 20 May 2024 06:20:00 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-05-20T06:20:00Z</dc:date>
    <item>
      <title>Need Help with Dynamic Folder Strcuture for Files Loaded to a LakeHouse</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Need-Help-with-Dynamic-Folder-Strcuture-for-Files-Loaded-to-a/m-p/3930750#M3419</link>
      <description>&lt;P&gt;I have a few hundred thousand house records as parquet files in an ALDS container. I want to load these files into a LakeHouse as files. I'm assuming it's best practice to load them into the LH using some sort of structure, like Year/Month of the date of sale.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How could I do this in a data pipeline. I've been trying to use a LookUp and ForEach Activity that contains a Copy Data Acvitity. And then trying to use a dynamic expression for the destination folder. But I haven't had any luck as I just keep getting errors due to my dynamic expressions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, the dateSold column in my data is in&amp;nbsp;&lt;SPAN&gt;Unix timestamp format.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any thoughts on how I could approach this?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 19 May 2024 20:55:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Need-Help-with-Dynamic-Folder-Strcuture-for-Files-Loaded-to-a/m-p/3930750#M3419</guid>
      <dc:creator>kewaynes333</dc:creator>
      <dc:date>2024-05-19T20:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help with Dynamic Folder Strcuture for Files Loaded to a LakeHouse</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Need-Help-with-Dynamic-Folder-Strcuture-for-Files-Loaded-to-a/m-p/3931437#M3421</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="408286" data-lia-user-login="kewaynes333" class="lia-mention lia-mention-user"&gt;kewaynes333&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thanks for using Fabric Community.&lt;/P&gt;
&lt;P&gt;Here’s a general approach you can take:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Lookup Activity&lt;/STRONG&gt;: Use a Lookup activity to retrieve the list of tables that you want to copy. This could be a list of tables in your source database or a list of files in your ALDS container.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;ForEach Activity&lt;/STRONG&gt;: Use a ForEach activity to iterate over the list of tables/files retrieved by the Lookup activity. Inside the ForEach activity, you can include a Copy Data activity.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Copy Data Activity&lt;/STRONG&gt;: In the Copy Data activity, you can specify the source (your ALDS container) and the destination (your LakeHouse). You can use dynamic content to specify the table/file name in the source and the folder structure in the destination based on the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;dateSold&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;column.&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Here’s an example of how you can specify the folder structure dynamically:&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt; @concat(formatDateTime(convertTimeZone(item().dateSold, 'UTC', 'yyyy/MM'), 'UTC'), '/', item().tableName)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This will create a folder structure like Year/Month/TableName in your LakeHouse for each table/file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can refer to this link:&lt;BR /&gt;&lt;A href="https://www.serverlesssql.com/fabric-lakehouse-loading-inspired-by-end-to-end/" target="_blank"&gt;Fabric Lakehouse Loading using Data Pipelines &amp;amp; Notebooks – Inspired by MS End-to-End Tutorials (serverlesssql.com)&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Please let me know if you have any further questions.&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2024 06:20:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Need-Help-with-Dynamic-Folder-Strcuture-for-Files-Loaded-to-a/m-p/3931437#M3421</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-20T06:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help with Dynamic Folder Strcuture for Files Loaded to a LakeHouse</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Need-Help-with-Dynamic-Folder-Strcuture-for-Files-Loaded-to-a/m-p/3933559#M3437</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the response and guidance. I run into an error saying that the convertTimeZone function doesn't accept an integer. I believe this is because my dateSold column is in Unix timestamp format (milliseconds, I believe).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried to account for this:&lt;/P&gt;&lt;P&gt;@concat(formatDateTime(addSeconds('1970-01-01T00:00:00Z', div(item().dateSold, 1000)), 'yyyy/MM'), '/', item().tableName)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But now I get this error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The expression 'concat(formatDateTime(addSeconds('1970-01-01T00:00:00Z', div(item().dateSold, 1000)), 'yyyy/MM'), '/', item().tableName)' cannot be evaluated because property 'tableName' doesn't exist, available properties are 'dateSold, propertyType, lotAreaValue, address, imgSrc, price, bedrooms, longitude, latitude, listingStatus, zpid, listingSubType, contingentListingType, daysOnZillow, bathrooms, livingArea, country, currency, lotAreaUnit, hasImage'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2024 22:11:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Need-Help-with-Dynamic-Folder-Strcuture-for-Files-Loaded-to-a/m-p/3933559#M3437</guid>
      <dc:creator>kewaynes333</dc:creator>
      <dc:date>2024-05-20T22:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help with Dynamic Folder Strcuture for Files Loaded to a LakeHouse</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Need-Help-with-Dynamic-Folder-Strcuture-for-Files-Loaded-to-a/m-p/3936702#M3463</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="408286" data-lia-user-login="kewaynes333" class="lia-mention lia-mention-user"&gt;kewaynes333&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Error Property ‘tableName’ doesn’t exist: &lt;BR /&gt;The error message indicates that the property tableName does not exist in the current context. The available properties are ‘dateSold, propertyType, lotAreaValue, address, imgSrc, price, bedrooms, longitude, latitude, listingStatus, zpid, listingSubType, contingentListingType, daysOnZillow, bathrooms, livingArea, country, currency, lotAreaUnit, hasImage’. If you intended to use one of these existing properties, you should replace tableName with the correct property name.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;@concat(formatDateTime(addSeconds('1970-01-01T00:00:00Z', div(item().dateSold, 1000)), 'yyyy/MM'), '/', item().&amp;lt;correct_property_name&amp;gt;)&lt;/STRONG&gt;&lt;BR /&gt;Replace &amp;lt;correct_property_name&amp;gt; with the actual property you want to use. If you still encounter issues t&lt;SPAN&gt;his might require a deeper investigation from our engineering team about your workspace, and the logic behind it to properly understand what might be happening.&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Please go ahead and raise a support ticket to reach our support team:&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://support.fabric.microsoft.com/support" target="_blank" rel="noopener nofollow noreferrer"&gt;https://support.fabric.microsoft.com/support&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;Please provide the ticket number here as we can keep an eye on it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2024 16:58:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Need-Help-with-Dynamic-Folder-Strcuture-for-Files-Loaded-to-a/m-p/3936702#M3463</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-21T16:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help with Dynamic Folder Strcuture for Files Loaded to a LakeHouse</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Need-Help-with-Dynamic-Folder-Strcuture-for-Files-Loaded-to-a/m-p/3940434#M3498</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="408286" data-lia-user-login="kewaynes333" class="lia-mention lia-mention-user"&gt;kewaynes333&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet. Otherwise, will respond back with the more details and we will try to help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 16:52:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Need-Help-with-Dynamic-Folder-Strcuture-for-Files-Loaded-to-a/m-p/3940434#M3498</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-22T16:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help with Dynamic Folder Strcuture for Files Loaded to a LakeHouse</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Need-Help-with-Dynamic-Folder-Strcuture-for-Files-Loaded-to-a/m-p/3944661#M3523</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/408286" target="_blank"&gt;@kewaynes333&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet. Otherwise, will respond back with the more details and we will try to help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2024 17:15:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Need-Help-with-Dynamic-Folder-Strcuture-for-Files-Loaded-to-a/m-p/3944661#M3523</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-23T17:15:27Z</dc:date>
    </item>
  </channel>
</rss>

