Support Article

Property-Set-XML method not working as expected

SA-37264

Summary



When user is using Property-Set-XML method and if property does not have any value, tags are displayed.


Error Messages



Not Applicable


Steps to Reproduce



1. Create a data model and mapped to the Parse XML rule.
2. Create a sample XML.
3. Run this XML in the Parse XML rule.


Root Cause



An issue in the custom application code and rules.

Found that tag is generated for the empty property also.

So this clearly shows that tags are generated for empty properties also.

Resolution



Perform the following local-change:

1. Create a new DSS rule StreamXML/DetectEmptyProperties and set value to false.

2. Clear the Pega Temp Cache.

3. Restart the server.

4. Revalidate all the Parse-XML and Stream-XML rules.



Published April 28, 2017 - Updated May 17, 2017

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.