Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

List rows // Excel // Filter Query // Problem with multiple Filters with Symbols in Column names and values

(0) ShareShare
ReportReport
Posted on by

Hi,
i was successfully running my flow until i tried to add more filter queries @list rows present in a table.

Successfull version-> Filter Query: Stage eq 'Running'

Error at-> Filter Query: Stage eq 'Running' and Project Requestor (OU) ne ' North America' and Project Requestor (OU) ne 'Materials Processing & North America'

"Project Requestor (XY)" is column name whereas i have to filter out a String value with "&" in it..

So i can't really locate the problem. 
List rows_FilterErr.png

  • Community Power Platform Member Profile Picture
    on at
    Re: List rows // Excel // Filter Query // Problem with multiple Filters with Symbols in Column names and values

    I can filter the table with an external action "Filter Array": 

    @And(not(equals(item()?['Project_x0020_Requestor_x0020_(OU)'], 'Materials North America')), not(equals(item()?['Project_x0020_Requestor_x0020_(OU)'], 'Materials Processing & Services North America')))

    now how can i extract a column out of this filtered array/table into an array?
    Like after filtering out project with the condition i mentioned now i get a reduced table and out of it i want to extract the column "Project Manager" to get their names into an array.
    2023-06-21 10_23_56-Edit your flow _ Power Automate und 3 weitere Seiten - Geschäftlich – Microsoft​.png

    Trying the above mention method i get the following error:
    The 'from' property value in the 'select' action inputs is of type 'String'. The value must be an array.

    2023-06-21 10_26_06-.png


  • Community Power Platform Member Profile Picture
    on at
    Re: List rows // Excel // Filter Query // Problem with multiple Filters with Symbols in Column names and values

    Unfortunately after i followed your advice i get the following message:

    ')' or operator expected at position 34 in '(Stage eq 'Running') and (Project Requestor (OU) ne 'Materials North America') and (Project Requestor (OU) ne 'Materials Processing & Services North America')'.
    inner exception: ')' or operator expected at position 34 in '(Stage eq 'Running') and (Project Requestor (OU) ne 'Materials North America') and (Project Requestor (OU) ne 'Materials Processing & Services North America')'.
    clientRequestId: 883603b6-bd94-4486-b724-0c90c88febf5

  • v-wenjuan-msft Profile Picture
    Microsoft Employee on at
    Re: List rows // Excel // Filter Query // Problem with multiple Filters with Symbols in Column names and values

    Hi @Anonymous ,

     

    Try to surround each condition with cracket:

     

    (Stage eq 'Running') and (Project Requestor (OU) ne ' North America') and (Project Requestor (OU) ne 'Materials Processing & North America')

     

     

    If it doesn't work either, you can put the 2nd and 3rd filter query in a "Filter query".

     

    Reference:

    OData Filter query in SharePoint Get items in Flow [5fce-5b2d-9d9-4dce] (sharepains.com)

     

    Community Support Team _ Wenjuan Zou

    If this post helps, then please consider Accept it as the solution to help the other members find it.

  • Community Power Platform Member Profile Picture
    on at
    Re: List rows // Excel // Filter Query // Problem with multiple Filters with Symbols in Column names and values

    i get the following error message:

    Syntax error at position 40 in 'Stage eq 'Running' and Project Requestor (OU) ne 'Materials North America' and Project Requestor (OU) ne 'Materials Processing & Services North America''.

    So the problem is "(" and ")" as column names but the excel file is getting generated by a bot so i can't change them. How can i assure that these symbols get accepted

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,651 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow