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