Hello,
I have a flow that will periodically that is supposed to filter for Planner tasks that have due dates more than 30 days from today.

We are initializing today's date as string as 'TestDate'. The value for TestDate is
formatDateTime(addDays(utcNow(),-30),'yyyy-MM-ddThh:mm:ssZ').
We use a filter array where due date is less than TestDate which should bring tasks that have due dates more than 30 days from today. However, we are getting the error "The execution of template action 'Filter_array_3' failed: The evaluation of 'query' action 'where' expression '@less(items('Apply_to_each_2')?['dueDateTime'], variables('TestDate'))' failed: 'The template language function 'less' expects two parameter of matching types. The function was invoked with values of type 'Null' and 'String' that do not match.'.
.
We want to ultimately use the "Delete a Task" Planner action to bulk delete these tasks. But we can't get past this stage.
Any help will be greatly appreciated.