Error message

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Error message

  • Creator
    Topic
  • #55764
    Simon Jamison
    Participant

      ‘Short read from IB file /data/etc…’

      Haven’t seen this before.

      The file is being picked up by the inbound thread but not output by the outbound thread. Not sure the two things are connected.

      Thanks

    Viewing 6 reply threads
    • Author
      Replies
      • #86422
        Robert Kersemakers
        Participant

          Hi Simon,

          I knew I had seen this error somewhere before, but couldn’t remember. Until I just now tested an Xlate:

          Code:

          hcixlttest: short read from /cloverleaf/cis6.0/integrator/test/testberichten/pi_siu_in_06 — read 1 characters but expected 0


          This is a length encoded file where the length of the message is wrong. Must have edited it myself.

          Are you using fileset-local as protocol? And do you see the inbound message in SMAT? Nothing in the error database?

          If you see it in SMAT, then the message is received correctly and it is killed somewhere else. Are there tcl-procs somewhere along the way? If a translation is used, does the inbound message go through the Xlate correctly? Are there some outbound TPS procs on the outbound thread that shouldn’t be there?

          Zuyderland Medisch Centrum; Heerlen/Sittard; The Netherlands

        • #86423
          Robert Milfajt
          Participant

            I’m trying to recall, but if you pick length encoded (or do nothing because in 6.1 at least length encoded is the default), and the file is new line, you get the same error.

            Robert Milfajt
            Northwestern Medicine
            Chicago, IL

          • #86424
            Peter Heggie
            Participant

              There is a formula I used to have in a sticky note on my wall..

              length 10 count =

              total number of bytes in the message

              plus 1 for each line

              minus 10 for the length 10 count

              minus 1 (I think for the EOF?)

              Plus when I edit it in my PSPad editor, I have to select file format of MAC (CR only).

              Peter Heggie
              PeterHeggie@crouse.org

            • #86425
              Simon Jamison
              Participant

                Thanks guys.

                Nothing in SMAT, nothing in the error database. Using fileset-local.

                There is a translation involved so, being fairly new to Cloverleaf, I’ll have to find out how to check if it failed on that. Good chance it did as I cut down a large live file to one patient record to do this testing and maybe left something out.

                I’ll let you know how I get on.

              • #86426
                Jim Kosloskey
                Participant

                  To test the Xlate, use the single patient file as input to the Xlate Testing tool. If it fails there most likely it is failing in the engine at the Xlate.

                  It is quite likely it is failing on the IB. Make sure the Style you specified for the File in the NetConfig matches the actual file. If length encoded is specified in the NetConfig, make sure the file is actually length encoded.

                  If another system provided you with the original file, then most likely it is not length encoded and neither is your single patient file.

                  You can use the Xlate Testing tool to ‘verify’ the style as it has the ability to mimic the basic settings of the protocol in order to read the file for testing.

                  email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

                • #86427
                  Simon Jamison
                  Participant

                    Fixed. There’s a header for each record which contains simply the number of characters to come for the next patient, eg: 000000831

                    I didn’t know what this was and when I anonymized the data the number of characters changed. The testing tool showed that a different number of characters was present than what was expected (from the header).

                    Learning every day! Thanks again.

                  • #86428
                    Jim Kosloskey
                    Participant

                      That looks like length encoded.

                      Whenever I have a length encoded file I want to play with I use the provided command line tool to convert len10 to nl and then work with the new line terminated file – makes life a lot easier.

                      email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

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