How should the data dictionary and schema be defined to specify a nested and repeating section in a fixed length flat file without record identifiers?
For example, there is a flat file that I’m working with that has the following structure:
Court Collection Record (Single Row Containing Sub-Sections below), Fixed Length fields)
\_ Person Identifiers
\_ Charge Section (Repeats 6X)
\_ Fine Section (Subsection of Charge, Repeats 2X for each Charge Section)
\_ Fee Section (Subsection of Charge, Repeats 16X for each Charge Section)
I was able to create a data dictionary with a record for each section and then a data schema that nested the records into the structure desired. As no records have ID’s, the documentation stated that there had to be a default record type specified. Due to the default record being specified, all data was parsed into that record type only. When parsing a test record, the data for the whole row was placed into the first record type(Person Identifiers). Without a default record, a “No Valid Record” error is received.
I’ve also tried a variation using Composite sections to representing the repeating sections, but this also did not work.
The only method that has worked is to manually define each and every field, even repeating sections, as part of a single record. This does work, however, it seems like there should be a better way to deal with repeating sections. Particularly if the repeating sections can be defined and it is known where they repeat.