Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us at FabCon Vienna from September 15-18, 2025, for the ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM. Get registered

Reply
bcarlson_f
Regular Visitor

Copy Activity REST API - Paging

I am having a problem with paging in ADF. What i need to do is to make an initial call to a REST API, and then use "offset" that comes from the body as a parameter in subsequent calls. I can get it working, as in it doesn't fail, but it doesn't pull back the correct data. I think what it's doing is removing my other parameters. How do I get this scenario working?

 

First call should be:

"https://api.hubapi.com/email/public/v1/events?limit=1000&startTimestamp=1744243200&offset="
or
"https://api.hubapi.com/email/public/v1/events?limit=1000&startTimestamp=1744243200"
I've tested and it doesn't matter which.
 
Subsequent calls should be:
"https://api.hubapi.com/email/public/v1/events?limit=1000&startTimestamp=1744243200&offset="
+ the offset from the results body.
 
First, I don't know how to verify because the copy activity input just says "type": "RestSource", but I think what ADF is doing is to send:
"https://api.hubapi.com/email/public/v1/events?offset=" & the offset from the results,
i.e. removing the "limit=1000&startTimestamp=1744243200"
Even though I can't figure out how to see the URL in ADF, I can duplicate the results by using a REST testing tool. The problem is that data is coming back that occurs before the specified timestamp.
 
I've followed the documentation in this page: https://learn.microsoft.com/en-us/azure/data-factory/connector-rest?tabs=data-factory#pagination-sup... (Example 1) but I get an error about invalid character, 7b. I've also tried about 100 different combinations from other examples I've found on YT and Google, but can't find anything that's exactly this besides the MS documentation linked.
  
Here's one example of something that works, but pulls the wrong data:
relativeUrl = "events?limit=1000&startTimestamp=1744243200&offset=" (Adding "{offset}" as the example suggests causes the 7b error)
bcarlson_f_0-1744400772779.png

 

Any help would be appreciated. Even a link to something that goes deep into explaining what's going on behind the scenes with this so I can troubleshoot. Unfortunately, most examples just explain at a high level and are not giving me what I need to troubleshoot this, such as seeing the actual URL that ADF is sending.
 
It's troubling because I know exactly what I need to do, but not how to make ADF do it.
 
Thanks.
1 ACCEPTED SOLUTION
v-sathmakuri
Community Support
Community Support

Hi @bcarlson_f ,

 

Thank you for reaching out to Microsoft Fabric Community.

 

As this is microsoft fabrics forum, i would suggest raising a ticket is ADF forum https://techcommunity.microsoft.com/category/azuredatabases/discussions/azuredatafactory 

 

If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it! 

 

Thank you!!

View solution in original post

4 REPLIES 4
v-sathmakuri
Community Support
Community Support

Hi @bcarlson_f ,

 

Thank you for reaching out to Microsoft Fabric Community.

 

As this is microsoft fabrics forum, i would suggest raising a ticket is ADF forum https://techcommunity.microsoft.com/category/azuredatabases/discussions/azuredatafactory 

 

If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it! 

 

Thank you!!

Thanks. I've posted over there. For me, the breadcrumbs say this is a Data Factory forum but I do see fabric in the URL.

lbendlin
Super User
Super User

7b is "left curly bracket".  You don't seem to specify an actual offset value.

Thanks. That specific error comes from when I try to follow the example in the linked ADF Documentation page. If you take a look at example 1, they show an image of the configuration that has a curly bracket. When I try that though, I get the error. The examples I have don't have it since it didn't work.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

May FBC25 Carousel

Fabric Monthly Update - May 2025

Check out the May 2025 Fabric update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.