infor.com
concierge
infor u
developer portal
documentation central
customer center
Posts
Categories
Groups
ERPs
CSD
FSM/HRT
LN
M3
Syteline/ CSI
Hubs
Developer
Healthcare
Hospitality
Public Sector
Onboarding
Release Center
CloudSuites
Aerospace & Defense (LN)
Automotive (LN)
Chemicals (M3)
Corporate (FSM/HRT)
Distribution (Sx.e/CSD)
Distribution Enterprise (M3)
Engineering & Construction (LN)
Fashion (M3)
Food & Beverage (M3)
Healthcare (FSM/HRT)
Industrial (Syteline/CSI)
Industrial Enterprise (LN)
Manufacturing (M3)
Public Sector (FSM/HRT)
Solutions
Supply Chain Management (SCM)
Human Capital Management (HCM)
Events
Groups
User Groups
Your Groups
About
Email Community Support
Infor News
Migrated Forums
Home
Clovertech
Clovertech Archive
Read Only Archives
Cloverleaf
Cloverleaf
Read failed: incomplete record read
Hongle Sun
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
Find more posts tagged with
Clovertech
Comments
Charlie Bursell
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.
System
Originally posted by Vincent Tran
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.
Hongle Sun
Thanks Charlie. Do you have sample for setting up fileset/local, much appriciated.
Charlie Bursell
It is covered in the documentation. User's Guide Volume 1