web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Filter Query ne null d...
Power Automate
Answered

Filter Query ne null doesnt work

(1) ShareShare
ReportReport
Posted on by 11

I'm building a flow that pulls a spreadsheet into a list.

However I cannot guarentee that the source spreadsheet (table) WON'T contain empty rows.

I use the Filter Query as:

filter query.PNG

 

However it instantly errors with:

 

{
"status": 400,
"message": "Invalid filter clause: unsupported operation. Only single 'eq', 'ne', 'contains', 'startswith' or 'endswith' is currently supported.\r\nclientRequestId: 0e0f156b-74cf-4f10-97fc-0d16324a41d6",
"source": "excelonline-ase.azconn-ase.p.azurewebsites.net"
}
Categories:
I have the same question (0)
  • Verified answer
    v-bacao-msft Profile Picture
    on at

    Hi @JasonWeber ,

     

    I had a test on my side, and Filter Query is not valid for filtering null values.

    You could use Filter array to filter the rows whose corresponding fields are not empty.

    Image reference:

    67.PNG

    Please take a try.

     

    Best Regards,

  • JasonWeber Profile Picture
    11 on at

    Firstly, sorry, Ive been on leave.

     

    So what you have described there *seems* to DELETE any rows that DO have content?

     

    If I change it to 'is equal to' (empty) and thus (in theory) I'm deleting empty row's - it errors.

     

    If I try a different action (eg: Create Item (SharePoint List) it doesnt filter and gives me a heap of List Items with "No Title".

  • Verified answer
    v-bacao-msft Profile Picture
    on at

    Hi @JasonWeber ,

     

    Your requirement is that there may be blank rows in Excel table, so you want to exclude these empty rows and then insert non-empty rows into the list.

    But the method you use is actually invalid, because using "ne null" in Filter Query is invalid, so I recommend using Filter array to filter out non-empty rows first.

    My method currently seems to have problems, it need to add more restrictions to eliminate empty rows.

    Please try to use Condition directly. For example, I have five fields, we need to make sure that all five fields are not empty before executing Create item action.

    85.PNG

    Image reference:

    84.PNG

     

    Please take a try again.

     

    Best Regards,

  • JasonWeber Profile Picture
    11 on at

    Ah-HAH!

    Thanks worked perfectly.

    Because doing Excel -> SPO list requires the creation of a table in the spreadsheet and I cannot guarentee the number of rows, I need to do the table creation much longer than the number of rows to make sure nothing gets chopped off at the end.

    The downside of this is that I bound to end up with numerous empty rows at the tail end of the table.

     

    FWIW - the *entire* process is something like:

    Take automated csv output from another system.

    Convert to Excel

    Wrap the data in a table.

    Empty the existing SPO list (because I was never able to work out how to do an 'look for changes and update')

    Then finally repopulate the list based on the new/nightly spreadsheet.

  • Community Power Platform Member Profile Picture
    on at

    Hello,

     

    Just to confirm, is there any syntax within the Filter Query portion of List Rows where I can filter out null values without having to manipulate the data later?

  • 980Panama Profile Picture
    140 on at

    This issue was a long time ago but I have just had the same issue.  Does seem very odd that using a ne null should cause a problem in the filter query, appears more like a bug than a feature as "ne" is certainly allowed in the filter.  I seem to have got over this problem by using gt (greater than) null and this works.

  • jnguyen863 Profile Picture
    8 on at

    @980Panama Sorry I am late to the game. I took a real simple approach. Instead of filtering by "null", I literally filtered it by nothing! Using condition is handy, but increases your flow execution time. 

     

     

    cost_centre ne ''

     

     

     

  • AndreasO Profile Picture
    87 on at

    This actually works. This is amazing. Thank you so much. 

  • 404 Not Found Profile Picture
    11 on at

    Thanks for the idea of using gt ''

     

    It is a sad work around, but I have more than 5,000 rows with null values, so they really need to be filtered out at the beginning. 

  • selo0910 Profile Picture
    on at

    So simple yet so effective. 
    I salute you for this solution!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard