Professional Documents
Culture Documents
Mapping Issue - Multiple Occurrences
Mapping Issue - Multiple Occurrences
I have an issue where when a particular node occurs for multiple times, only the first instance is correctly
mapping a value. I think I need to resolve issue with context or other node functions. I have been trying to
read more about these, but I can't figure this out. Here is the detail:
<Operation>
<OpID>10</OpID>
<Site type="PlannedLocation">
<ID>DHV</ID>
</Site>
<Site type="PlannedDepartment">
<ID>ELECFAB</ID>
</Site>
</Operation>
<Operation>
<OpID>20</OpID>
<Site type="PlannedLocation">
<ID>DHV</ID>
</Site>
<Site type="PlannedDepartment">
<ID>MECHFAB</ID>
</Site>
</Operation>
<access>
<OrgCode>DHV</OrgCode>
<DEPARTMENT_CODE>ELECFAB</DEPARTMENT_CODE>
</access>
<access>
<OrgCode>DHV</OrgCode>
<DEPARTMENT_CODE>MECHFAB</DEPARTMENT_CODE>
<access>
Here is how I am mapping DEPARTMENT_CODE. This works when only 1 Operation exists. It fails when
there is another occurence of Operation. With error of "Values missing in queue context."
Regards,
Gaurav
Thank you for reply. I tried changing both @type and <ID> to context Root node, and still getting the same
error.
Adam,
Pls try below approach. IfWithoutelse will throw error if condition will fail so to handle this use if-else like below.
Regards,
Gaurav
Regards,
Gaurav
Regards,
Praveen.
• test.png 29.3 K
• mapping_1.png 44.9 K
Thank you very much, sir. This worked. I wouldn't have thought about moving the <access> element into the
same functional mapping like that. I am going to study this a bit to gain further understanding.
Adam