Question

3
Replies
1932
Views
Close popover
Kyra Tijhuis (KyraT490)
Atos
PCLSA
Atos
NL
KyraT490 Member since 2016 2 posts
Atos
Posted: June 1, 2017
Last activity: October 16, 2018
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,
Close popover This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.