Skip to main content

Notifications

Community site session details

Community site session details

Session Id : ss4m/RLf+l2w1g+WQG0mba
Power Automate - General Discussion
Answered

OData filter query help

Like (0) ShareShare
ReportReport
Posted on 16 May 2024 15:21:30 by 6

I need to filter a table by 2 columns and copy the visible rows over to another table.  I keep getting an OData filter query syntax error.   I can't figure out why. 

 

Here's my flow:

andrewpmize_2-1715872708139.png

Headers in the first table:

andrewpmize_0-1715872285467.png

 

Odata filter query (recommended by Copilot)

andrewpmize_1-1715872624151.png

the error:

"Syntax error at position 13 in 'STATUS DETAIL eq 'Completed' and Confirmation Date eq null'.\r\n inner exception: Syntax error at position 13 in 'STATUS DETAIL eq 'Completed' and Confirmation Date eq null'.\r\nclientRequestId: df01405a-dea2-4a0c-a14e-cca1a1521c1b"

 

 

Any help would be greatly appreciated!

 

  • andrewpmize Profile Picture
    6 on 17 May 2024 at 13:09:11
    Re: OData filter query help

    Thanks. I've resigned to the fact that filter query just won't work with excel tables with spaces in the column names.   I was able to get the filter array data operation to work, but it was tricky.  

  • v-qiaqi@microsoft.com Profile Picture
    on 17 May 2024 at 05:07:48
    Re: OData filter query help

    Hi @andrewpmize,

    You have referred to a wrong column name, you should find out the real inner column name of 'STATUS DETAIL'.

    Just check the outputs of the list rows presents into a table action, find the 'STATUS DETAIL' column name in that array outputs.

     

    Or I suggest you remove this filter query and use a condition instead, in your condition tab, select the 'STATUS DETAIL' dynamic content from the list rows presents into a table action.

  • Verified answer
    SriniK Profile Picture
    3,036 Super User 2025 Season 1 on 16 May 2024 at 15:53:54
    Re: OData filter query help

    Hi @andrewpmize 

     

    The problem is that with the column name has the spaces, either try to remove those spaces and try or you need to retrive all the cases and then filter those later

     

    Check the similar issue

     

    https://powerusers.microsoft.com/t5/Building-Flows/OData-Filter-witha-blank-space-un-column-Name-ExcelOnline-Block/td-p/1606020

     

     

    If you find this reply helpful, please consider giving it a LIKE AND

    If this reply answers your question or solves your issue, please ACCEPT AS SOLUTION

     

    Cheers,

    Srini

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 Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - General Discussion

#1
Pstork1 Profile Picture

Pstork1 20 Most Valuable Professional

#2
rpersad Profile Picture

rpersad 16

#3
David_MA Profile Picture

David_MA 10 Super User 2025 Season 1

Overall leaderboard
Loading started