Your XPath has 2 constraints: the first, I can’t tell from the info you’ve provided if it’s wrong or right. But the second part (1616094563226 <= '[%EndOfCurrentYear%]' ) is simply wrong:
When you try to compare these two to each other, you get an ‘Invalid argument types Integer/Long and Date and time. Operator ‘<=’ can compare numbers, dates or strings.’-error.
So your datatypes are wrong, that’s why you have the error. Compare DateTime with DateTime attributes and Integer/Long with Integer/Long attributes.
Hope this helps.
Kind regards,
Leander
Hello,
You probably added the data into the table through the database layer directly and not the mendix by creating object and committing it into the DB.
Each record in a Mendix database should have a unique id, which is entity id. By adding data through the mendix the id is generated. When adding custom data through an insert statement the id is zero.