Hi Wouter knoops,
Mendix OQL does not support DateTime parameters in Execute DML. That’s why you get the unsupported type error.
Workaround:
Date parameters work for retrieve OQL, but not for bulk delete DML.
Hi,
Yes, if you are using the OQL Module’s ExecuteDMLStatement action, this is expected.
The official Mx documentation for the OQL Module states that AddDateTimeParameter cannot be used together with ExecuteDMLStatement, so a DateTime parameter like $cutoff is not supported there.
That is why your integer test works, while the DateTime parameter fails.
See this: https://docs.mendix.com/appstore/modules/oql-module/