web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Dynamics - Pagination ...
Power Automate
Unanswered

Dynamics - Pagination Error "not well formed uri"

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,

 

I have a flow that's pulling ~5100 records from dynamics. I have it split up the following way:

  1. One initial "list records" block pulls the first 1000 items (and sets a few relevant variables)
  2. A "do until" block, with a "list records" block inside (pulling 1000 items at a time) runs until all items are pulled

Here are all of the aspects of my query:

  • top=1000
  • order by "name"
  • gt clause on the "name" field (the value it uses changes for each pull)
  • a few other simple "filter" clauses
  • expands 2 related entities

For every "list records" block in the entire flow, Pagination is turned on with a threshold of 5000. 

 

The first pull executes successfully, and usually one or 2 loops of the "do until" block. After that, the "list records" in the "do until" block throws an error: "The response is not a valid paginated response. The specified nextLink '...' is not a well formed URI".

 

It's not a consistent failure - sometimes it's the second loop, sometimes the third. When I upped the limit to 3000 records (resulting in only one execution of the "do until" block), it didn't fail at all. 

 

Does anyone know why this might be happening? 

 

 

 

Categories:
  • v-alzhan-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    Could you please share a screenshot of the configuration of your flow?

     

    Best regards,

    Alice       

     

    Community Support Team _ Alice Zhang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi Alice,

     

    Here you go. It's 2 separate screenshots, but the yes/no match up.

    ListRecords2 is where it fails (sometimes on the 2nd loop, sometimes on the 3rd): 

     

    Here are the settings for both List records:

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 229 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 223 Super User 2026 Season 2

#3
Valantis Profile Picture

Valantis 136 Super User 2026 Season 2

Last 30 days Overall leaderboard