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 / List rows // Excel // ...
Power Automate
Unanswered

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

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

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

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    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

  • v-wenjuan-msft Profile Picture
    Microsoft Employee on at

    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
    Microsoft Employee on at

    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

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    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


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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 573

#2
Valantis Profile Picture

Valantis 407

#3
11manish Profile Picture

11manish 387

Last 30 days Overall leaderboard