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 / Invalid Expression Whe...
Power Automate
Answered

Invalid Expression When Filtering GetItems

(0) ShareShare
ReportReport
Posted on by 24

I'm building a Flow to run from a PowerApps.  I was running into issues with a simple filter query, so I broke this part off into a separate flow as a sanity check.  When I run my Flow I get an invalid expression.  What am I doing wrong?

List Name=Equipment

Column Name = PO#

OData Filter= PO# eq 'PO' (Dynamic Content from the input)

I'm trying to return a set of values from other columns in the list based on the input of PO#.

 

OData1.pngOData2.pngOData3.png

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,828 Most Valuable Professional on at

    Hi @csteiner73,

     

    It is very likely that the # is encoded in the internal field name.


    Can you try this instead:

    PO_x0023_ eq '@{triggerBody()['text']}'

     

    A list of these encoding characters can be found on for example @Paulie78 his blog:

    https://www.tachytelic.net/2021/06/encode-sharepoint-column-names-to-internal/

     

  • Verified answer
    Redders Profile Picture
    546 on at

    Try switching experimental features on to see if you can select the column name that way, it might highlight a different issue?

     

    Go to Settings cog, (top right) > View all power automate settings

     

    Redders_0-1663680544620.png

    Then switch on experimental features

    Redders_1-1663680645078.png

     

    What that will do will allow you to select the column within your list

  • csteiner73 Profile Picture
    24 on at

    Yup this did it.  Turns out the display name of the column (PO#) was different than the actual name of the column (po).  Thankas a ton everyone!

     

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 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard