Read failed: incomplete record read

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Read failed: incomplete record read

  • Creator
    Topic
  • #49250
    Hongle Sun
    Participant

      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

    Viewing 3 reply threads
    • Author
      Replies
      • #61256
        Charlie Bursell
        Participant

          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.

        • #61257
          Vincent Tran
          Participant

            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.

          • #61258
            Hongle Sun
            Participant

              Thanks Charlie. Do you have sample for setting up fileset/local, much appriciated.

            • #61259
              Charlie Bursell
              Participant

                It is covered in the documentation.  User’s Guide Volume 1

            Viewing 3 reply threads
            • The forum ‘Cloverleaf’ is closed to new topics and replies.