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

View all the Fabric Data Days sessions on demand. View schedule

Reply
NAkhliesh
Regular Visitor

Rest API Pagination Issue

We are using Copy Activity for getting data from Oracle P6 Rest API. But we are getting only 5000 records due to pagination.

While using QueryParameter,we are getting duplicate data of the first 5000 records multiple times.

NAkhliesh_0-1733394121166.png

Could you please help me to get Incremental data.

 

Over alternative approach the bearer token is not getting generated using Web Activity.
Need help on this.

1 ACCEPTED SOLUTION

I don't see any variable used in your relative url which holds the pagination. You should follow the documentation which url  parameters you should use. But, let's say you have two url parameters offset and count. Your relative url should be

service/dataservice/runquery?configCode=ds_p6adminuser&offset=offsetVariable&count=5000. 
You should have created a variable named offsetVariable and count should be equal to the last column of your pagination rules, which is also 5000 in your screenshot. You should change {offset} to the variable offsetVariable. 

View solution in original post

4 REPLIES 4
NAkhliesh
Regular Visitor

Hi Xiaoxin Sheng,

The Url and Relative Url we are using is these:

https://ksa1.p6.oraclecloud.com

/xxxxxx/pds/rest-service/dataservice/runquery?configCode=ds_p6adminuser

and provided the pagination as below:

NAkhliesh_0-1733645045122.png

and the output is we are getting 40 times duplicate data.

Could you help us to get the Incremental data.

I don't see any variable used in your relative url which holds the pagination. You should follow the documentation which url  parameters you should use. But, let's say you have two url parameters offset and count. Your relative url should be

service/dataservice/runquery?configCode=ds_p6adminuser&offset=offsetVariable&count=5000. 
You should have created a variable named offsetVariable and count should be equal to the last column of your pagination rules, which is also 5000 in your screenshot. You should change {offset} to the variable offsetVariable. 

Anonymous
Not applicable

HI @NAkhliesh,

Can you please share some more detailed information about this api and its definitions? They should help us clarify your scenario and test.

BTW, if you not clear how to use copy activity with pagination api, you can also try to invoke notebook and use pyspark code to handle these. 

Reference link:

pagination rule in copy activity

Configure REST in a copy activity - Microsoft Fabric | Microsoft Learn

Regards,

Xiaoxin Sheng

FabianSchut
Super User
Super User

Hi, I think your parameter offset is not set correctly. What is your relative URL and are you using parameters for this setup? I found this post helpful in understanding the necessary steps: https://techcommunity.microsoft.com/blog/fasttrackforazureblog/implementing-pagination-with-the-copy.... Please read step 2 carefully and check if that setup is used correctly.

Helpful resources

Announcements
November Fabric Update Carousel

Fabric Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.