Fix error message for visit attribute types - TRUNK-3230