05-25-04 09:37 PM
What this error is telling you is that as the parser consumes the data and
fills the individual fields, suddenly the stream ended when there is more
required data. In the case of positional records, positional fields are
data agnostic, and will consume any data that lies within the length of the
positional field, in your case this also includes <CR><LF> characters. The
one exception to this rule is if you have added the
allow_early_termination="true" annotation to the schemaInfo node of your
schema (this must be added manually using a text editor). By doing this,
the parser will treat the right-most positional field as a delimited field
and allow this field to be less than the length of the positional field
definition. In addition, trailing optional fields can also be present, as
long as the length of all trailing fields up to but not including the
right-most field are completely filled with data.
Check to make sure that the data for each instance is not longer than
expected, if it is, and you are not using tags to identify individual
records, you will essentially start parsing a new record.
If you continue to have problems, zip up your schema and test data for us
to take a look at.
Dave
--
This posting is provided "AS IS" with no warranties, and confers no rights.
[ Post a follow-up to this message ]
|