application Error - Visit type is not defined - Error 1992