The Invalid Data Type error is issued in the following situations:

Check the allowed data types for that operator and use a compatible data type.

Check the allowed data types for the property or operator and use a compatible data type.

See Also

Available Data Types | About Error Messages