<?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: Fabric pipelines - Limit no of records read from a table in Pipelines</title>
    <link>https://community.fabric.microsoft.com/t5/Pipelines/Fabric-pipelines-Limit-no-of-records-read-from-a-table/m-p/4213652#M5662</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="802722" data-lia-user-login="nkailasamurthy" class="lia-mention lia-mention-user"&gt;nkailasamurthy&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lookup activity: Lookup activities in Microsoft Fabric can return up to 5000 rows, but do not allow you to add custom query directly to limit the number of rows.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ForEach activity: You can specify whether items in a batch should be processed sequentially or in parallel, and set the maximum number of items to be processed concurrently via Batch count. Batch count: You can specify whether items in a batch should be processed sequentially or in parallel, and set the maximum number of items to be processed simultaneously through Batch count.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For more details, you can refer to below document:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-factory/lookup-activity" target="_blank"&gt;Lookup activity - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-factory/foreach-activity" target="_blank"&gt;ForEach activity - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Adamk Kong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider &lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Thu, 03 Oct 2024 02:48:45 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-10-03T02:48:45Z</dc:date>
    <item>
      <title>Fabric pipelines - Limit no of records read from a table</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Fabric-pipelines-Limit-no-of-records-read-from-a-table/m-p/4213012#M5660</link>
      <description>&lt;P&gt;I'm developing a fabric pipeline where I have to bring in data from a table and run a for each loop within which&lt;SPAN&gt;&amp;nbsp;I'm making an API call for every record by dynamically building the body of the api call. And I have a rate limit of 200 calls per hour for the endpoint I'm accessing. So I'm looking to bring in 200 records at a time for a pipeline run(something like select * from limit 200).I will be running the pipeline multiple times depending on the total number of records. As I'm not executing for each loop sequentially, I couldn't use a counter variable for the loop and stop processing once it reaches 200. So my question is how do I bring in specific number of records from the table?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I explored lookup and copy activity but neither of them let me add custom query&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance for any suggestion&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2024 18:58:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Fabric-pipelines-Limit-no-of-records-read-from-a-table/m-p/4213012#M5660</guid>
      <dc:creator>nkailasamurthy</dc:creator>
      <dc:date>2024-10-02T18:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric pipelines - Limit no of records read from a table</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Fabric-pipelines-Limit-no-of-records-read-from-a-table/m-p/4213652#M5662</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="802722" data-lia-user-login="nkailasamurthy" class="lia-mention lia-mention-user"&gt;nkailasamurthy&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lookup activity: Lookup activities in Microsoft Fabric can return up to 5000 rows, but do not allow you to add custom query directly to limit the number of rows.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ForEach activity: You can specify whether items in a batch should be processed sequentially or in parallel, and set the maximum number of items to be processed concurrently via Batch count. Batch count: You can specify whether items in a batch should be processed sequentially or in parallel, and set the maximum number of items to be processed simultaneously through Batch count.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For more details, you can refer to below document:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-factory/lookup-activity" target="_blank"&gt;Lookup activity - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-factory/foreach-activity" target="_blank"&gt;ForEach activity - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Adamk Kong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider &lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2024 02:48:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Fabric-pipelines-Limit-no-of-records-read-from-a-table/m-p/4213652#M5662</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-10-03T02:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric pipelines - Limit no of records read from a table</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Fabric-pipelines-Limit-no-of-records-read-from-a-table/m-p/4237859#M5863</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="802722" data-lia-user-login="nkailasamurthy" class="lia-mention lia-mention-user"&gt;nkailasamurthy&lt;/a&gt;&amp;nbsp;- Is your source table a Lakehouse Table?&amp;nbsp; &amp;nbsp;You can use the Lookup Activity to limit the number of records returned when using a SQL Data Source.&amp;nbsp; &amp;nbsp;We do this today to retrieve a list of table names that we need to loop through to sync data from a different source.&amp;nbsp; We will often limit that query to the Top 5 rows when doing testing in Dev.&amp;nbsp; However, when connected to the Lakehouse I do not think you can do a limit.&amp;nbsp; What I have not tried is setting up a SQL Data Connection to the Lakehouse to see whether or not that will behave like a SQL endpoint.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it is a Lakehouse Table, you could also look at calling a Notebook from the Pipeline.&amp;nbsp; That would allow you to limit the # of rows, retrieve data from the API and write the results wherever it is needed.&amp;nbsp; I am currently doing this to sync data from a 3rd party API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jeremy&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2024 01:59:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Fabric-pipelines-Limit-no-of-records-read-from-a-table/m-p/4237859#M5863</guid>
      <dc:creator>jwinchell40</dc:creator>
      <dc:date>2024-10-11T01:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric pipelines - Limit no of records read from a table</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Fabric-pipelines-Limit-no-of-records-read-from-a-table/m-p/4238952#M5878</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="599628" data-lia-user-login="jwinchell40" class="lia-mention lia-mention-user"&gt;jwinchell40&lt;/a&gt;&amp;nbsp; Thanks for your suggestions. My source is a lakehouse table and I ended up using a notebook to copy certain number of records to another table which I'm reading in the pipeline with a lookup. Not the best solution but got it to work this way&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2024 14:10:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Fabric-pipelines-Limit-no-of-records-read-from-a-table/m-p/4238952#M5878</guid>
      <dc:creator>nkailasamurthy</dc:creator>
      <dc:date>2024-10-11T14:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric pipelines - Limit no of records read from a table</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Fabric-pipelines-Limit-no-of-records-read-from-a-table/m-p/4239208#M5880</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="802722" data-lia-user-login="nkailasamurthy" class="lia-mention lia-mention-user"&gt;nkailasamurthy&lt;/a&gt;&amp;nbsp;- Glad to hear you found a solution.&amp;nbsp; I took the same approach you did when I first ran into this issue except I loaded the data into a DW Table and used that in my lookup.&amp;nbsp; Hopefully, the lookup up activity will allow for queries on Lakehouse Tables.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2024 17:48:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Fabric-pipelines-Limit-no-of-records-read-from-a-table/m-p/4239208#M5880</guid>
      <dc:creator>jwinchell40</dc:creator>
      <dc:date>2024-10-11T17:48:43Z</dc:date>
    </item>
  </channel>
</rss>

