Customer Portal

XMLExtract V 4.4 issue in reading elements

Comments 1

  • Avatar
    Vladimir Barton
    0
    Comment actions Permalink
    Hello Sriram,
    From the snippet of the XML input file and from your description of the situation I understand that you mapped the output of the <Person_Education> element to populate the parent record (the “ABC” person). Since the <Person_Education> element has multiple instances within the parent element (in other words the occurrence of the element is [0:n]) this approach would indeed cause the reading of a single record only. However, this does not represent a proper way of mapping elements with multiple occurrences and the fact that only the last record (e.g. “Master”) is output is merely a coincidence in the 3.5 version. In other words, such behavior was never designed intentionally. Then, introducing of the new functionality of XMLExtract (outputting multiple field instances into a list) in the later versions of CloverETL Designer forced us to change the logic of reading the XML files fundamentally. An unintended side effect of this change is what you are seeing in your example in version 4.4 (only the first record “High School” is output).
    Bearing that in mind, such behavior of the system is not driven by any user-end settings as it is an unintentional result of a different function. I suggest redesigning of the mapping so that you take the number of element occurrences into account by outputting them to a separate port.
    Best regards,

Please sign in to leave a comment.