Posted: Thu Jun 06, 2024 9:17 pm Post subject: VariableLengths for the optional fields in record delimited
Apprentice
Joined: 16 Apr 2009 Posts: 39
Hi Team,
The input file has 4 records (Header, item, itemextn and trailer). Each record has initiator and fields are of fixed length. There are few optional fields in these records.
When we pass the exact length for all fields the DFDL parses successfully.
There is a special case, some source systems can send the data less than defined length for optional field. Then parser fails with below error. Can we handle variable lengths for the optional fields by assuming the following optional fields are also does not have data?
Error:
"CTDP3058E: Separator '%LF;' not found at offset '174' for sequence within element '/BatchFile_Message[1]'.
ParsedDataRegion[SimpleContent, startOffset = 173, length = 1, scd = #xscd(/schemaElement::BatchFile_Message/type::0/model::sequence/schemaElement::body/type::0/model::sequence/schemaElement::ItemExtention/type::0/model::sequence/sch"
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum