Hi,
Did you upgrade to a newer version of mendix and then try to downgrade? Primitive type 5 indicates that it's trying to use an (old) variable type, which is no longer supported.
Try running the app against an older version of the (test)database.
Kind Regards,
Ritchie Slangen