This message is generated when the first argument in Import does not have the expected form.
The first argument in Import is expected to be either an InputStream expression or a string giving the name of a file or directory from which input should be read.
Off[message] switches off the message; On[message] switches it on. For example: Off[Import::chtype].