We would like to setup a inbound thread which read hl7 messages in a file with file protocal, the file format is newline terminated, we got the error mssage said: read fails once turning on the thread… any ideal, thanks
I think the subject of your messages tells us much more than the text. It says “Read failed: incomplete record read”. If you note the default record format for the file protocol is new-line terminated. My guess is your file is not properly terminated. You could either add a line feed or set up the file format as eof.
With that said, you should *NEVER* use file protocol for input even in test. Once the file is read, you must cycle the thread to make it read again. The Fileset/local protocol is much better here, Anytime you want to read in another message, just kick it into the Fileset/local directory.
Be sure and pay attention to the format of your file and set up the record format according to the way you want to process.
My guess is because your HL7 segments are separated by CRLF instead of CR. Segments should be separated by CR, and messages should be separated by CRLF.