I got this error and after Debuging Lotusscript found where the type mismatch was - a string being tested by a numeric literal. Seems odd that Notes displayed the offending message when normally just displays “Type Mismatch”
I posted this as no other comment or note existed for the error message reported when I searched for the same error.