Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

How create API with paging ?

Hi all,   I tried to compose power query M code for an API request that requires paging, because with a single request a maximum of 500 rows is returned. I looked at other posts, including this art...
  • BA_Pete's avatar
    BA_Pete
    3 years ago

     

    There's a couple of things that immediately spring to mind:

     

    1) Have you set up your paged call like this, using RelativePath?

    Using this RelativePath structure for the Web.Contents is a key aspect of avoiding Dynamic Data Source errors.

    You may need to adjust which parts of the URL sit within the core/RelativePath sections.

    You may also need to use the same structure for your original ping call, but I've never had issues with this initial call being the basic Web.Contents structure.

     

    2) Have you deleted all unused queries in the Dataflow that don't use the correct Web.Contents structure?

    I've found that, even if incorrectly-structured calls are disabled from loading, they still cause the entire DF to fail on initial query validation. Not sure why, just something I've experienced.

     

    Pete