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 / SQL Get Rows with filt...
Power Automate
Unanswered

SQL Get Rows with filter - Messed up output

(0) ShareShare
ReportReport
Posted on by 22

Hi!

I'm using the action SQL Get rows (v2) to get a list of users from a data base view. To get only active users I added the filter query "Status eq 1". I thought that it worked as it should until i noticed that 3 users (of ~2500) was missing. To test I skipped the filter inside the action but added an array filter action with "@equals(item()?['Status'], 1)". Now I got all the users but strangely I got the exact same number of users in both scenarios. Further investigation showed that I had a couple of duplicates in the scenario with the filter inside "Get Rows" instead of my missing users. Can any one explain this behavior?

Categories:
I have the same question (0)
  • Christopher S Profile Picture
    Microsoft Employee on at

    Hi @SpÃ¥ngberg 

     

    You can try by enabling pagination on the Get rows action in Flow, you can find this by clicking on the 3 dots and then settings:

    chsanche_0-1599522544181.png

    On there, you can select the number of records that you can to retrieve with pagination:

    chsanche_1-1599522599826.png

     

     

    Best Regards,

     

  • SpÃ¥ngberg Profile Picture
    22 on at

    Hi!

     

    Pagination is already enabled and that seams to be part of the problem if it combines with filter.

     

    • If I disable pagination I don't get any duplicates (although I only get 2048 of 2276 records in the output).
    • If I enable pagination and filtering i get 6 duplicates (that does not exist in the SQL database).
    • If I enable pagination but filtering in a "Filter array action" it seams to work.
    • If I enabling pagination and filtering AND putting an unique value (like Email or EmployeeNo)  in "Order by" it seams to work. A non unique value i "Order by" (like Status) generates duplicates.

     

    So, the best workaround seams to be to put a unique value in "Order by' but the bug still annoys me...

     

    Regards!

    // Tomas

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 77 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 68

#3
Expiscornovus Profile Picture

Expiscornovus 56 Most Valuable Professional

Last 30 days Overall leaderboard