XML Input and Primary Keys
Posted: Wed Mar 03, 2010 5:09 pm
I am using a complex XML structure that has many levels. Within one level (3 levels deep) I am selecting a number of attributes to create an output file that is flat for that segment of the XML.
My job design is simple:
External Data Source -> XML Input -> Sequential File
In the output I am expecting 4 records. When I select the natural key of the segment as Key I get the unique values for the Key attribute, however all other attributes are repeated for the first occurrence of the natural key. When I select another attribute that I expect to be unique across 4 records I get unique value of that attribute but repeating Natural Key for the following 3 records.
What am I doing wrong?
My job design is simple:
External Data Source -> XML Input -> Sequential File
In the output I am expecting 4 records. When I select the natural key of the segment as Key I get the unique values for the Key attribute, however all other attributes are repeated for the first occurrence of the natural key. When I select another attribute that I expect to be unique across 4 records I get unique value of that attribute but repeating Natural Key for the following 3 records.
What am I doing wrong?