Azure Data Factory - Data Flow Pagination

Müller, André 71 Reputation points
2023-05-23T09:51:40.1833333+00:00

Hi, i´m using ADF to process rest api from microsoft defender api/machines to get list of all machines.

To handle the limit i´m using pagination in copy activity

User's image

I want to use same in data flow:

User's image

But here it´s not working and it only fetches till limit of 10k rows.

Thx in advance for any advice

André

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,624 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. QuantumCache 20,366 Reputation points Moderator
    2023-05-23T17:24:51.3733333+00:00

    Hello @Müller, André

    It worked in the Pipeline Copy Activity and not working when using via Data Flow, right?

    What is the request URL looks like? Something like below..?

    HTTP GET https://api.securitycenter.microsoft.com/api/machines?$filter=healthStatus+ne+'Active'&$top=100

    Did you see the Note mentioned in the documentation, may be we can check the syntax!
    The pagination rules in mapping data flows is different from it in copy activity in the following aspects:

    1. Range is not supported in mapping data flows.
    2. [''] is not supported in mapping data flows. Instead, use {} to escape special character. For example, body.{@odata.nextLink}, whose JSON node @odata.nextLink contains special character . .

    User's image

    I tried the DataFlow with Pagination Rules: AbsoluteURL worked for me.
    User's image

    User's image

    User's image

    My REST API response has a property called @odata.context

    __with Special characters, so i have followed as per the documentation and i was able to read the value and write to the output!
    __
    [''] is not supported in mapping data flows. Instead, use {} to escape special character.

    User's image

    User's image

    The mapping is Good!

    User's image

    User's image


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.