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 / Syntax error in filter...
Power Automate
Unanswered

Syntax error in filter query for character "-"

(0) ShareShare
ReportReport
Posted on by 5

Hi

 

may i know how to write "Email-work eq 'abc'" in the excel List rows function in the query input?

 

I have tried "Email_x002d_work" but it said the field is not found.

 

Please help~ Thanks

 

 

photoPA.png

Categories:
I have the same question (0)
  • Rhiassuring Profile Picture
    8,692 Moderator on at

    You've got the right syntax if your Column Name is Email-Work in the table in your spreadsheet. Is that the column name, case-sensitive and all?

  • brianmclchiu Profile Picture
    5 on at

    Yes. it is the column name and the case is correct.

    the error message is 

     

    Syntax error at position 6 in 'Email-work eq '1''.
    inner exception: Syntax error at position 6 in 'Email-work eq '1''.

  • grantjenkins Profile Picture
    11,063 Moderator on at

    I think this might be a limitation with the Excel Filter Query not allowing hyphens. You could return all items from Excel the use a Filter array to filter on your column. Note that my Excel Table column is called Test-Hyphen

     

    grantjenkins_0-1700378923666.png

  • brianmclchiu Profile Picture
    5 on at

    it is one of the solution. but the excel I have around 5000 rows. it will take 2 minutes for loading all then filter. If i use "ID eq xxxx" for the other role. it only spend 10 sec. 

     

    It is one of the solution but it is not efficient. 

    another way is to change the column name without "-" but i think it is not the purpose of the setting..... 

     

    I may wait few more days for someone who can tell how to make "-" in the filter query....

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!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 262 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 227

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard