Its not completly an answer, but i expect the problem inside the :cutoffdate parameter. As you dont show how this variable is populate, and it migth even be some kind of object - its possible to be parsed into an id or hash of somesort and not processed like a formated date string you might expect (like "2024-10-01" f.e.)