The data types from the expression must match the data type used in the GO criteria.
I expect there is a mismatch in either criteria.
Without seeing your expression formula and the GO criteria --- we would just be guessing.
Screen shots of both DBX's would quickly point to the problem?
Gerry
Windows 11 - Visual Studio 2022; ArchiCAD 27