Posted: Fri Nov 18, 2016 2:27 am Post subject: Ignore empty lines in DFDL
Shaman
Joined: 08 Feb 2009 Posts: 709 Location: Chennai, India
Hi,
We have a scenario where we get a delimited message (CRLF delimited) and towards the end of the message we get "n" number of blank lines. How do we ignore these empty lines towards the end of file?
Setting "terminator" to "%CR;%LF;" at both <Message_Root> and sequence.
Setting "Document Final Terminator Can be missing" to Yes at both levels.
It only ignores two blank lines and if there are more than two blank lines in file, the parsing fails with below error,
Unexpected data found at offset 'xxx' after parsing completed. Data: '0x0d...'.
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