If the last field in a record is optional, you may receive a parsing error that is similar to the following one when a delimiter exists for the optional field and the optional field itself is empty:
While parsing record "RootNode", the parser cannot find the required trailing delimiter: "
" (0x000d).
The parser failed to convert the document due to processing errors. See the following messages for details.
However, you do not receive this error if the optional field is at the beginning of the record.
For example, you receive the parsing error with the following fields in INFIX order (where
* is specified as the field delimiter and
Carriage Return is specified as the record delimiter)
Test1*Test2*Test3*
whereas the following set of fields parse without error (where both Test1 and Test3 are optional fields):
*Test1*Test2*Test3