Posted: Mon May 26, 2014 1:47 am Post subject: Double Quotes in fixed length file - Parsing failed
Apprentice
Joined: 08 May 2014 Posts: 35
Hi All,
I am parsing a fixed length file with address as one of the string field in it. One of the address in the file starts with "C" (with the double quotes) and as soon as this point is reached in parser i get below output :
No markup found after the escape block.
After this the parser assumes the file is over, and treats the next line as trailer and fails because the trailer identifier is not there.
Is there a way i can make it parse the string as it is.
This error only occurs when your DFDL escape scheme is set to 'Escape block'. That means that the entire field is enclosed within a pair of escape characters.
But your file is a 'fixed length' file. Normally, a data format that uses fixed-length fields does not need an escape scheme.
So, you should either
a) check that you have correctly modelled the escape scheme for your data format or
b) set dfdl:escapeSchemeRef to "" ( the empty string ) for your entire model. You can do that by modifying the 'Default format' in the 'Data Formats' section of the DFDL editor. _________________ Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too.
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