Question

3
Replies
1806
Views
KyraT490 Member since 2016 2 posts
Atos
Posted: 3 years ago
Last activity: 2 years 10 months ago
Closed
Solved

Incomplete XML parsing of Page List properties

When parsing XML that contains several page lists of the same name, only the properties of the first page in the XML are mapped.

For example:

I have a company with this hierarchical structure:

  • Boss
    • Manager A
      • Employee 1
      • Employee 2
    • Manager B
      • Employee 3

In Pega this can be mapped with the class Data-UIGallery-RepeatingLayouts-EmployeeDetails.

The Parse XML tree:

The XML:

<pyEmployeePL>
	<pyName>Boss</pyName>
	<pyEmployeePL>
		<pyName>Manager A</pyName>
		<pyEmployeePL>
			<pyName>Employee 1</pyName>
		</pyEmployeePL>
		<pyEmployeePL>
			<pyName>Employee 2</pyName>
		</pyEmployeePL>
	</pyEmployeePL>
	<pyEmployeePL>
		<pyName>Manager B</pyName>
		<pyEmployeePL>
			<pyName>Employee 3</pyName>
		</pyEmployeePL>
	</pyEmployeePL>
</pyEmployeePL>

When running the parse rule with this input, the output is:

The names (.pyName) of Employee 2, Manager B and Employee 3 are not parsed, so the resulting page list is incomplete.

How can this be fixed?

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Data Integration
Moderation Team has archived post
Share this page LinkedIn