12-08-2021 09:19 AM
Hi,
I am trying to process millions of records by using REST GET snap API call. I am getting Read time out error. Is there a best way to bring in millions of records in REST call without facing Read time out failure during execution? Currently I am using Mapper–>REST GET–>Mapper for further processing.
Please let me know with your tips.
Regards,
Amar
12-09-2021 12:17 AM
Hi @amardeep2021 ,
As @bojanvelevski said, pagination should do the job.
Check the documentation about the API you are using and see if it supports pagination.
Here REST Get you can find more about it.
Look for the attributes “Has Next” and “Next URL”.
Regards
12-09-2021 08:14 AM
Hi All,
Thanks for your suggestions.
Yes REST GET has ‘Has Next’ and ‘Next URL’
Regards,
Amardeep Shanmugam.
12-09-2021 11:46 AM
I am trying to pull data from Workday API. I don’t have ‘Has Next’ and ‘Next URL’ expression, it’s blank. Just to clarify. Does this gives anyone on what should be the solution.? Please let me know.
12-09-2021 11:54 AM
Moreover, I have only these information in output preview of REST GET snap during validation. I don’t see offset in there. Please let me know with this information how can I implement pagination to avoid failure?
12-09-2021 01:15 PM
Hi @amardeep2021,
By default the ‘Has Next’ and ‘Next URL’ are blank because you need to specify the ‘Has Next’ condition and ‘Next URL’ to be called. And as I can see, this is an empty response you are getting. Which endpoint are you trying to call ?
And, you should really look into the documentation of the API itself. That’s the only way to find how you can use pagination.