<?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: REST API connection pagination inside Copy Activity Source, AbsoluteUrl points to wrong URL. in Pipelines</title>
    <link>https://community.fabric.microsoft.com/t5/Pipelines/REST-API-connection-pagination-inside-Copy-Activity-Source/m-p/4798115#M8333</link>
    <description>&lt;P&gt;When you choose AbsoluteUrl in the pagination rules, the REST connector assumes that the "next" value returned from the API is the full URL to call next. It ignores both:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The "Base URL" you configured in the linked service&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Any Relative URL you configured in the Copy Activity&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Since your "next" only contains the tail path, the connector starts building the request from the domain root, which explains why /iot/api/subscriptions disappears. Given your "next" is /details?... and you always need /iot/api/subscriptions before it, the RelativeUrl + concat() expression approach is the cleanest and does not require redesigning the pipeline.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"paginationRules": {
    "absoluteUrl": null,
    "relativeUrl": "@concat('/iot/api/subscriptions', json(activity('CopyDataFromAPI').output.response)['next'])"
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Replace CopyDataFromAPI with your activity name&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Ensure the json() path correctly extracts "next"&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;If you want, I can give you the exact JSON snippet for the Copy Activity Source that will prepend /iot/api/subscriptions on every "next" call so the connector never drops that segment again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please 'Kudos' and 'Accept as Solution' if this answered your query.&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Aug 2025 14:23:54 GMT</pubDate>
    <dc:creator>Vinodh247</dc:creator>
    <dc:date>2025-08-15T14:23:54Z</dc:date>
    <item>
      <title>REST API connection pagination inside Copy Activity Source, AbsoluteUrl points to wrong URL.</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/REST-API-connection-pagination-inside-Copy-Activity-Source/m-p/4794050#M8326</link>
      <description>&lt;P&gt;Hi. I've set up Copy Activity to pull data from an API, and having a hard time to paginate.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;API looks like this :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://serviceportal.telenorconnexion.com/iot/api/subscriptions/" target="_blank" rel="noopener"&gt;https://serviceportal.telenorconnexion.com/iot/api/subscriptions/details?{some parameters}&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This call's response contains "next" of next url to call, which looks like this :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
  ~~
  "next": "/details?q=CO~~~",
  ~~
}&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;-&amp;gt; just the end part of first call.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;so "next" doesn't give FULL url to call.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So I've created Connection to this :&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;A href="https://serviceportal.telenorconnexion.com/iot/api/subscriptions/" target="_blank" rel="noopener"&gt;https://serviceportal.telenorconnexion.com/iot/api/subscriptions&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and set Relative URL to&amp;nbsp;&lt;A href="https://serviceportal.telenorconnexion.com/iot/api/subscriptions/" target="_blank" rel="noopener"&gt;details?{some parameters}&lt;/A&gt;&amp;nbsp;, and the first call goes fine.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I've done my research to paginate "next", and AbsoluteUrl looks like my solution, so I set up like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Then this error pops up:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ErrorCode=RestCallFailedWithServerError,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=Rest call failed with server error, status code 503 ServiceUnavailable, please check your activity settings and remote server issues.
Request URL: https://serviceportal.telenorconnexion.com/details?{some_parameter~~} &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It pulls "next" value correctly, but call is being made to&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://serviceportal.telenorconnexion.com/iot/api/subscriptions/" target="_blank" rel="noopener"&gt;https://serviceportal.telenorconnexion.com/&lt;/A&gt;&amp;nbsp;, not&amp;nbsp;&lt;A href="https://serviceportal.telenorconnexion.com/iot/api/subscriptions/" target="_blank" rel="noopener"&gt;https://serviceportal.telenorconnexion.com/iot/api/subscriptions&lt;/A&gt;&amp;nbsp;that I've set the connection to.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Looks like in pagination, it pulls baseUrl(not using the connection is set to) from Connection somehow, then use to paginate.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I've tried making connection to&amp;nbsp;&lt;A href="https://serviceportal.telenorconnexion.com/iot/api/subscriptions/" target="_blank" rel="noopener"&gt;https://serviceportal.telenorconnexion.com/&lt;/A&gt;&amp;nbsp; and start with&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/iot/api/subscriptions/details/?q=~~~ in Relative URL, but shows same error. I can't find a way to put "/iot/api/subscriptions" in front of response's "next".&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Anyone can help?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Aug 2025 07:05:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/REST-API-connection-pagination-inside-Copy-Activity-Source/m-p/4794050#M8326</guid>
      <dc:creator>younghoon_kim</dc:creator>
      <dc:date>2025-08-12T07:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: REST API connection pagination inside Copy Activity Source, AbsoluteUrl points to wrong URL.</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/REST-API-connection-pagination-inside-Copy-Activity-Source/m-p/4798115#M8333</link>
      <description>&lt;P&gt;When you choose AbsoluteUrl in the pagination rules, the REST connector assumes that the "next" value returned from the API is the full URL to call next. It ignores both:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The "Base URL" you configured in the linked service&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Any Relative URL you configured in the Copy Activity&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Since your "next" only contains the tail path, the connector starts building the request from the domain root, which explains why /iot/api/subscriptions disappears. Given your "next" is /details?... and you always need /iot/api/subscriptions before it, the RelativeUrl + concat() expression approach is the cleanest and does not require redesigning the pipeline.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"paginationRules": {
    "absoluteUrl": null,
    "relativeUrl": "@concat('/iot/api/subscriptions', json(activity('CopyDataFromAPI').output.response)['next'])"
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Replace CopyDataFromAPI with your activity name&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Ensure the json() path correctly extracts "next"&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;If you want, I can give you the exact JSON snippet for the Copy Activity Source that will prepend /iot/api/subscriptions on every "next" call so the connector never drops that segment again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please 'Kudos' and 'Accept as Solution' if this answered your query.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Aug 2025 14:23:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/REST-API-connection-pagination-inside-Copy-Activity-Source/m-p/4798115#M8333</guid>
      <dc:creator>Vinodh247</dc:creator>
      <dc:date>2025-08-15T14:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: REST API connection pagination inside Copy Activity Source, AbsoluteUrl points to wrong URL.</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/REST-API-connection-pagination-inside-Copy-Activity-Source/m-p/4799146#M8334</link>
      <description>&lt;P&gt;can't apply your suggestion.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;@concat('/iot/api/subscriptions', json(activity('copyFromAPIToLakehouseBronzePagination').output)['next'])&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;The output of activity 'copyFromAPIToLakehouseBronzePagination' can't be referenced since it is either not an ancestor to the current activity or does not exist&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 18 Aug 2025 03:38:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/REST-API-connection-pagination-inside-Copy-Activity-Source/m-p/4799146#M8334</guid>
      <dc:creator>younghoon_kim</dc:creator>
      <dc:date>2025-08-18T03:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: REST API connection pagination inside Copy Activity Source, AbsoluteUrl points to wrong URL.</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/REST-API-connection-pagination-inside-Copy-Activity-Source/m-p/4805030#M8365</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1330787" data-lia-user-login="younghoon_kim" class="lia-mention lia-mention-user"&gt;younghoon_kim&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;SPAN&gt;If your API can be configured to return the full URL in&amp;nbsp;"next"&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;like:&lt;BR /&gt;Then you can use:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;"paginationRules": {
  "absoluteUrl": "$.next"
}&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;If the API only returns a root-relative path like&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;/details?q=CO~~~"&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;then you cannot use absolute url directly. Instead,&amp;nbsp;Use python to resolve the relative&amp;nbsp;"next" using&amp;nbsp; url join:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;from urllib.parse import urljoin
base = "https://serviceportal.telenorconnexion.com/iot/api/subscriptions/"
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Fri, 22 Aug 2025 12:25:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/REST-API-connection-pagination-inside-Copy-Activity-Source/m-p/4805030#M8365</guid>
      <dc:creator>v-sdhruv</dc:creator>
      <dc:date>2025-08-22T12:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: REST API connection pagination inside Copy Activity Source, AbsoluteUrl points to wrong URL.</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/REST-API-connection-pagination-inside-Copy-Activity-Source/m-p/4806736#M8371</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1330787" data-lia-user-login="younghoon_kim" class="lia-mention lia-mention-user"&gt;younghoon_kim&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;SPAN&gt;Just wanted to check if you got a chance to review the suggestions provided and whether that helped you resolve your query?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Aug 2025 11:26:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/REST-API-connection-pagination-inside-Copy-Activity-Source/m-p/4806736#M8371</guid>
      <dc:creator>v-sdhruv</dc:creator>
      <dc:date>2025-08-25T11:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: REST API connection pagination inside Copy Activity Source, AbsoluteUrl points to wrong URL.</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/REST-API-connection-pagination-inside-Copy-Activity-Source/m-p/4810311#M8394</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/1330787" target="_blank"&gt;@younghoon_kim&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Just wanted to check if you got a chance to review the suggestions provided and whether that helped you resolve your query&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Aug 2025 11:54:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/REST-API-connection-pagination-inside-Copy-Activity-Source/m-p/4810311#M8394</guid>
      <dc:creator>v-sdhruv</dc:creator>
      <dc:date>2025-08-28T11:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: REST API connection pagination inside Copy Activity Source, AbsoluteUrl points to wrong URL.</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/REST-API-connection-pagination-inside-Copy-Activity-Source/m-p/4812651#M8406</link>
      <description>&lt;P&gt;API provider seems to be unable to change API unfortunately..&lt;/P&gt;</description>
      <pubDate>Mon, 01 Sep 2025 00:57:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/REST-API-connection-pagination-inside-Copy-Activity-Source/m-p/4812651#M8406</guid>
      <dc:creator>younghoon_kim</dc:creator>
      <dc:date>2025-09-01T00:57:49Z</dc:date>
    </item>
  </channel>
</rss>

