If the VALIDATE directive is specified, the SQL Option preprocessor tries to login to the XDB server. This error is produced if the login fails. This could be caused by a wrong location or AUTHID specification in the Options settings.
Go into Option settings and check that the correct location and AUTHID are specified.