Hi All,
I need some assistance with the OData filter for a scheduled flow.
The purpose of the flow is check the status of overdue/upcoming maintenance tasks, and then send an email to the 'Assigned To' person. As it's a maintenance register (and will have many line items) the filter should be:
- Checking items less than or due within 30 days (from the current date)
- Checking items in the Status column that are 'Scheduled'
For context, when I leave the ODATA filter field blank - the test is successful. However, as soon as I enter the below code into the ODATA filter field, the test fails.

The filter that I am trying to use is: Due Date le' addDays(utcnow(),30,'yyyy-mm-dd') ' and Status ne 'Completed'
Due Date and Status are the column names in the corresponding maintenance register (list).
When the filter is added it looks like this:

I have checked the column settings in the corresponding maintenance list and the Time is not turned on.
Troubleshooting:
- I have changed to the date format to multiple variations
- I have tried the filter with and without the space for the column: DueDate, Due Date etc
- I have tried without and Status ne 'Completed'
The Error Message is (or some variation of):


I dont understand how something so simple is not working. Any help in resolving this issue would be appreciated.
Thanks
Amanda