Subscribe to keep this site alive! Under new management but as always, still 100% FREE. Anyone with the IBM i is a friend of ours.
Symptoms:
Detail record only populating the last occurrence of the <lineitem> group.
Diagnosis:
Print the map and ask for XML data.
Every time multiple occurrence or a loop is involved, make sure that the beginning tag has a Maximum Occurrence of more than 1.
The symptom of only writing the last occurrence may be because record association is absent.
OR in this case, the <lineitem> group tags are missing to separate the occurrences.
Prescription:
Insert the </lineitem> and <lineitem> tags after the first set of the <lineitem> occurrence to separatre it with each other.
Ask your trading partner to fix their data.
Do you have a CHALLENGE? Let us know HERE.