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 / Filter Query in List r...
Power Automate
Answered

Filter Query in List rows in a table Error

(0) ShareShare
ReportReport
Posted on by 60

I am trying to filter my Excel document for certain values using Power Automate and then emailing the resultant rows. 

 

Currently, my flow looks like: 

Capture1.PNG

 

I am basically filtering on a column in my data set called 'ERP Site Location Code' for a certain value and receiving all associated rows. However, I get the following error: ')' or ',' expected at position 7 in 'eq(ERP Site Location Code, "ZCOW1")'.

 

I don't understand what I'm doing wrong. I also did verify my excel file contains the correct column name: 

tareenmj_1-1664387232662.png

 

 

Categories:
I have the same question (0)
  • Sundeep_Malik Profile Picture
    6,499 on at

    Hey @tareenmj 

    Not sure that syntax works or not.

    Try writing the below syntax:

     

    Column name eq 'Value'

     

    So for you:

     

    ERP Site Location Code eq 'ZCOW1'

  • tareenmj Profile Picture
    60 on at

    Thank you for the help, I tried that and seem to be receiving the same error and I think it is because of the fact that my Column name has spaces, I even tried doing: eq(ERP_x0020_Site_x0020_Location_x0020_Code, 'ZCOW1') but this results in another error saying: Invalid filter clause: cannot find the 'ERP_x0020_Site_x0020_Location_x0020_Code' column.

     

    I think this has to do with spacing but I'm unsure on how to reference a space in Power Automate

  • Sundeep_Malik Profile Picture
    6,499 on at

    @tareenmj 

    Try without spaces.

  • Verified answer
    v-liwei-msft Profile Picture
    Microsoft Employee on at

    Hi  @tareenmj 

     

    This is a known limitation, the Filter Query in List rows present in a table action does not support the use of fields with spaces in the field name as filter parameters.

    I suggest you to use the Filter array feature.

     

    Best Regards,

    Levi

  • tareenmj Profile Picture
    60 on at

    Thanks for the input, would this result in similar time performances? A) If I receive all results, and then do a filter array, and B) Changing the column names to perform a Filter Query? 

  • Sundeep_Malik Profile Picture
    6,499 on at

    @tareenmj 

    That would definately affect the performance.

    Renaming the excel columns will be the best way.

     

    So let's say: you have 100 rows in your excel with filter query you are just fetching the required rows. 

    But with Filter array you will be fetching entire rows and then processing. 

     

    Just check out the below batch process that might help to reduce your flow times for excel processing: 

     

    https://powerusers.microsoft.com/t5/Power-Automate-Cookbook/Excel-Batch-Create-Update-and-Upsert/td-p/1624706

  • tareenmj Profile Picture
    60 on at

    Thanks Sundeep! Your answers and recommendation was very helpful. I did try removing spaces from my Excel file and i was able to receive data within 3 seconds (my excel file has a count of 250k rows). I did have a feeling that fetching all rows would drastically reduce performance and obviously with an excel file with that many rows, I would have to do some batch processing. I'm just going with the removing spaces approach but I don't like how power automate is so buggy.

  • Sundeep_Malik Profile Picture
    6,499 on at

    @tareenmj

    Yup I know, faced one situation today. I had made a flow yesterday. Today it gave error in 1 variable. Copied the same flow line by line, expression by expression and made another flow and its working fine. And the first flow is still giving error.

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 589

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 284 Super User 2026 Season 1

Last 30 days Overall leaderboard