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 / Having trouble with Pa...
Power Automate
Answered

Having trouble with Pagination

(0) ShareShare
ReportReport
Posted on by 697

Hello,

 

So I am just trying to do a very simple data extraction from a website, but it's my first time doing Pagination. I am just basically extracting these columns : 

CharlesBrewer_0-1706110870269.png

For the pages, I right clicked the arrow and did "set to pager"

CharlesBrewer_1-1706110909398.png

 

If I do only 1 page, it extracts fine. If I do "All Available" it does GO to page 2, but then it just errors "failed to extract data". Not sure what I am doing wrong, I assume it can't read the data on page 2 even though it's the same.  For the extract data advanced settings I did keep it as default so maybe I need to set something : 

CharlesBrewer_2-1706111046402.png

 

 

  • CharlesBrewer Profile Picture
    697 on at

    Even trying it a different way, with a loop and just clicking on next, it wont extract page 2. I think it's because the base css selector changes from page 1 to 2? 

     

     

    Page 1 : html > body > form > div:eq(1) > table > tbody > tr > td:eq(2) > div:eq(1) > div > div:eq(1) > div:eq(1) > div > rdcondelement14 > table > tbody > tr
    Page 2 : html > body > form > div:eq(1) > table > tbody > tr > td:eq(2) > div:eq(1) > div > div:eq(1) > div:eq(1) > div > rdcondelement12 > table > tbody > tr

     

    One is rdcondelement14 and one is rdcondelement12, which is weird

  • CharlesBrewer Profile Picture
    697 on at

    Yes that seems to be the issue but I don't know how to fix it 😕

  • Verified answer
    CharlesBrewer Profile Picture
    697 on at

    Nevermind, it only does the rdcondelement14 on page 1 and only on initial load. If I click on another page and go back to page 1 it fixed it to rdcondelement12, so no biggy since I just needed a quick one time run.

  • WillSG Profile Picture
    352 Moderator on at

    Hi @CharlesBrewer   I hope you are doing well.

     

    The pagination seems to be working perfectly if the Not went from Pag1 to Pag2.

     

    It seems that the issue is the selector that you just found:


    html > body > form > div:eq(1) > table > tbody > tr > td:eq(2) > div:eq(1) > div > div:eq(1) > div:eq(1) > div > rdcondelement12 > table > tbody > tr

     

    You can try modifying it, here's a simplified selector that should work for ALL pages:

     

    html > body > form > div:eq(1) > table > tbody > tr > td:eq(2) > div:eq(1) > div > div:eq(1) > div:eq(1) > div > [class^="rdcondelement"] > table > tbody > tr

     

    In this selector, [class^="rdcondelement"] targets an element with a class attribute starting with "rdcondelement”, hence we are using the sign ^ which means start with.

     

    Hope this helps,


    If I have addressed your inquiry successfully, kindly consider marking my response as the preferred solution. If you found my assistance helpful, a 'Thumbs Up' would be greatly appreciated.

     

    Additionally, if you have any questions, feel free to DM me, and we can initiate a discussion.

     

    Kind regards,

     

    Will SG

    Managing Director & Automation Lead

    RAMS CR (Recruitment & Automation)

    LinkedIn Profile

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

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 289

#2
11manish Profile Picture

11manish 282 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 119

Last 30 days Overall leaderboard