Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

401 Unauthorized error with Dataverse List Rows after enabling pagination

(2) ShareShare
ReportReport
Posted on by 105

I'm working in a Logic App, but I get this same error in Power Automate.

 

I am trying to return more than 5000 records from a Dataverse List Rows action and have turned on pagination and set the threshold to 100000. I am receiving a 401 error so assuming it is not refreshing the token for the subsequent requests? Are there org settings I need to enable in order to use paginated results from Dataverse?

 

Thanks in Advance!

  • Suggested answer
    Matthew Profile Picture
    9 on at
    401 Unauthorized error with Dataverse List Rows after enabling pagination
    This seems to be fixed today.
     
  • arxvn Profile Picture
    4 on at
    Re: 401 Unauthorized error with Dataverse List Rows after enabling pagination

    Switch from list rows from select environment to list rows.

  • arxvn Profile Picture
    4 on at
    Re: 401 Unauthorized error with Dataverse List Rows after enabling pagination

    It works for list rows, it fails on list rows from select environment

     

  • erea Profile Picture
    39 on at
    Re: 401 Unauthorized error with Dataverse List Rows after enabling pagination

    In case this helps anyone, we figured out the issue though don't have a direct resolution. 

     

    Pagination works fine when you use "List rows", but pagination does not go passed 5000 rows for "List rows from selected environment". Very annoying and not sure if its intended or an oversight. 

     

    Just FYI that to get around it, I had to do an alphabetical loop to pull all records that start with A, then B, then C, etc. 

     

  • RobAGR Profile Picture
    2 on at
    Re: 401 Unauthorized error with Dataverse List Rows after enabling pagination

    I am having the same issue. Pagination causes failure.

  • erea Profile Picture
    39 on at
    Re: 401 Unauthorized error with Dataverse List Rows after enabling pagination

    I am currently experiencing the same issue. Was there ever a solution? I am assuming its a setting somewhere as everything i read says that you should be able to pull up to 100k records. 

  • Cosmic_Kitchen Profile Picture
    105 on at
    Re: 401 Unauthorized error with Dataverse List Rows after enabling pagination

    Thanks for the reply!


    I am using a service principal with system admin privileges and I have also attempted with my own credentials which also has system admin.

    The action works consistently for 5000 rows or less when pagination is turned off, and fails consistently with pagination turned on. 

  • Mitanshu Profile Picture
    1,635 Super User 2025 Season 1 on at
    Re: 401 Unauthorized error with Dataverse List Rows after enabling pagination

    Can you confirm that the connection is still valid ?

    happyume_0-1701885908027.png

     

     

    Has the credential changed/refreshed (for example user has changed their account password)?

    happyume_1-1701886031688.png

     



    Does the authenticated user still have the permission to do the READ operation?

     

    If you try to retrieve only a single row, does that remove the error?

     

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If this post or my previous reply was useful in other ways, please consider giving it Thumbs Up.

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492