I have a simple data mapper that’s looping through a table on a PDF to extract some data. The issue I’m having is I cant seem to make these records. They extract to the details table perfectly but when I change the Extraction definition to record it only extracts the first record and says (in the steps) that a value cannot be extracted twice.
That’s what detail tables are for: a repeated set of fields to be extracted.
If you were to extract them to the Record level (instead of the Detail table level), then the second item would attempt to overwrite the first item since the fields would have the same name. The DataMapper prevents that from happening by raising an error. So repeated items must be stored in detail tables.