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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Get Items action on Sh...
Power Automate
Unanswered

Get Items action on SharePoint list returning inconsistent data

(0) ShareShare
ReportReport
Posted on by 406

A user has sent me examples of reports, produced by Power Automate, which she says are incorrect. I have checked the flow and after doing my own tests, it seems that the Get Items action which selects the data for the report, is not working correctly.

 

I have rerun the same flow several times in quick succession and the Get Items action is returning a different number of records and the dataset returned contains duplicate values. For example:

 

Run timeRecords returnedNumber of duplicates
12.52203539
14.29202428
14.35205548
15.01205248

I have also noted that records values are missing from each set returned. It seems possible that the duplicate records have replaced the missing ones.

The action is reading a SharePoint table containing about 48,000 records and is using an indexed column to select the records and sort them by this field. The action's Filter Query parameter is:

 

Session_x0020_time ge '2023-11-01T00:00:00.000Z' and Session_x0020_time le '2023-12-01T00:00:00.000Z'

 

and the action's Order By value parameter is:

 

Session_x0020_time

 

I retested the flow, removing the Order By parameter and the results were now consistent and (as far as I can tell) correct:

Run timeRecords returnedNumber of duplicates
15.5520520
16.0420520

 

Is there some sort limit that this query is hitting that is preventing it returning the correct data?

Categories:
I have the same question (0)
  • creativeopinion Profile Picture
    10,502 Super User 2025 Season 2 on at

    @biterbit You'll need to check the following:

     

    • Depending on how many items you have in your SP list, you may. need to turn on pagination and set a threshold in the Get Items action
    • Your filter query is using UTC time. If your Session times are stored in your local time zone, this can be the source of your issue. Consider using a Convert Time Zone action. 

     

    For more flow troubleshooting tips—check out this YT Tutorial: 5 Power Automate Troubleshooting FAQs and Helpful Tips for Creating Better Flows

     

    IN THIS VIDEO:

    ✅ How to troubleshoot a false Condition action result

    ✅ How to get dynamic content when it isn’t selectable from the list of dynamic content

    ✅ How to troubleshoot an Apply to Each action that isn’t looping through

    ✅ How to troubleshoot a skipped Apply to Each action

    ✅ How to troubleshoot a Filter Query

    ✅ How to use a SharePoint yes/no column in a Filter Query

    ✅ How to use Compose actions to troubleshoot a Power Automate flow

    ✅ How to troubleshoot multiple emails being sent

    ✅ How to troubleshoot multiple Teams messages being sent

     

    Hope this helps!

    If I helped you solve your problem—please mark my post as a solution ✅.
    Consider giving me a 👍 if you liked my response!

    👉 Level up your Power Automate skills by checking out my tutorials on YouTube
    👉 Tips and Tricks on TikTok and Instagram

  • biterbit Profile Picture
    406 on at

    @creativeopinion Thanks for your response. I already have pagination set on the Get Items action with a threshold of 5000 records. The times are stored as UTC in the SharePoint list and the variability of the results minute-to-minute do not indicate a time zone issue, since the source field is always set to 00 or 30 minutes past an hour.

    The consistent results since I removed the Order By parameter would seem to indicate that the problem stems from some SharePoint indexing limitation.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard