If the Flat File composer receives an empty class, it produces an empty line.
The options ignoreEmptyRecords and ignoreEmptyStrings on the flat file record definition only apply to flat file parsing. For flat file composing they have no effect.
For flat file composing, you need to check if the flat file record contains data when building the flat file structure, e.g. by using the exists() operation when appending records to the data object.
Other Common Flat File Issues:
-
Flat File With Header Lines -
Handling Empty Lines When Composing a Flat File -
Handling of White Spaces When Parsing Flat Files With Fixed Length -
Handling Quotes When Composing a Flat File -
Mapping of Hierarchical Record Structures -
Parsing Flat File Records Without Data -
Using Patterns to Separate Attributes