Skip to main content

Notifications

Community site session details

Community site session details

Session Id : qaYTlTNBhiX+Bl9M0xcNLw
Power Automate - General Discussion
Unanswered

power automate filter query returns non existing result

Like (0) ShareShare
ReportReport
Posted on 6 Sep 2021 10:54:04 by 832

Hello All,

 

I have a document library that I want to filter for a yes/no column... this worked for quite some time, now after holiday it returns results that are not there...  from the file that i can download/look in i get the IDs

Sifu_0-1630925558545.png

and filter for them... only one file exists the other I can filter for but there's nothing in, any idea why is that?

Sifu_1-1630925605786.png

 

 

  • Sifu Profile Picture
    832 on 06 Sep 2021 at 13:29:45
    Re: power automate filter query returns non existing result

    1) Is the connection in your account or is it a shared/service account? ServiceAccount that has however full access

    2) Are they files in subfolders? yes

    3) Are they folders/subfolders? yes

     

    but I solved it by replacing the yes/no column with a text column where the default value is NO ...it seems to work fine

  • eric-cheng Profile Picture
    5,171 on 06 Sep 2021 at 13:04:07
    Re: power automate filter query returns non existing result

    Hi @Sifu ,

     

    So it is returning you items that you cannot see in the library?

     

    Assuming you have selected the correct SPO site and library name:

     

    1) Is the connection in your account or is it a shared/service account?

    2) Are they files in subfolders?

    3) Are they folders/subfolders?

     

    --------------------------------------------------------------------------
    If I have answered your question, please mark my post as a solution
    If you have found my response helpful, please give it a thumbs up

    Connect on LinkedIn

  • Sifu Profile Picture
    832 on 06 Sep 2021 at 12:41:36
    Re: power automate filter query returns non existing result

    no matter how, it still returns me items that are not existing, i suspect there is a problem with the SPO list

    Sifu_0-1630932076521.png

     

  • eric-cheng Profile Picture
    5,171 on 06 Sep 2021 at 12:35:32
    Re: power automate filter query returns non existing result

    Hi @Sifu ,

     

    Sorry, please try the below filters:

     

    To get no items

    ericcheng_10-1630931488948.png

     

     

    To get yes items

    ericcheng_9-1630931468345.png

     

    Test Library with 3 files

    ericcheng_12-1630931607744.png

    ericcheng_15-1630931671930.png

     

    ericcheng_14-1630931629999.png

     

    Please note that if you created your column AFTER you uploaded the files, you won't return those files as they have null/empty values rather than False.  You will need to either manually update the properties to No and save OR add another condition for null.

     

    --------------------------------------------------------------------------
    If I have answered your question, please mark my post as a solution
    If you have found my response helpful, please give it a thumbs up

    Connect on LinkedIn

     

     

     

     

     

     

  • eric-cheng Profile Picture
    5,171 on 06 Sep 2021 at 12:26:56
    Re: power automate filter query returns non existing result

    .

  • Sifu Profile Picture
    832 on 06 Sep 2021 at 12:00:44
    Re: power automate filter query returns non existing result

    it still pulls the not existing files, ..., also it seems to be same for "no", "false" or "0"

  • eric-cheng Profile Picture
    5,171 on 06 Sep 2021 at 11:49:48
    Re: power automate filter query returns non existing result

    Hi @Sifu ,

     

    Whilst the SP column is a Yes/No field, you will need to use true / false in your odata filter.

     

    Please refer to my screenshot earlier.

     

    To return all Yes Items

     

    ericcheng_0-1630928922235.png

     

     

    To return all No Items 

     

    ericcheng_1-1630928958922.png

     

    --------------------------------------------------------------------------
    If I have answered your question, please mark my post as a solution
    If you have found my response helpful, please give it a thumbs up

    Connect on LinkedIn

  • Sifu Profile Picture
    832 on 06 Sep 2021 at 11:24:31
    Re: power automate filter query returns non existing result

    the column seems fine:

    Sifu_0-1630927380007.png

    the flow looks like this:

    Sifu_1-1630927446663.png

     

  • eric-cheng Profile Picture
    5,171 on 06 Sep 2021 at 11:14:08
    Re: power automate filter query returns non existing result

    Hi @Sifu ,

     

    How many items are in your list? Has the SP column changed? Can you share the filter you are using?

     

    To return columns with yes, it should be: 

     

    ericcheng_1-1630926696196.png

     

    Can you use the output in a Compose action to get the length() and see how many items are returned 

     

    length(outputs('Get_items')?['body/value'])

     

    ericcheng_2-1630926794550.png

     

    or alternatively us it within a loop?

     

    ericcheng_3-1630926828771.png

     

    --------------------------------------------------------------------------
    If I have answered your question, please mark my post as a solution
    If you have found my response helpful, please give it a thumbs up

    Connect on LinkedIn

     

     

     

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,771 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,091 Most Valuable Professional

Leaderboard
Loading started