Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Null XML element showing when optional checkbox is checked

SA-43318

Summary



A developer has a requirement to not show the XML element in XML output when it has no value.

To achieve this they have checked the Optional checkbox in the XML Stream rule “MapRespCompDefaultData”.

However, empty elements are still being shown.


Error Messages



Not Applicable


Steps to Reproduce

  1. Define an XML stream with optional elements.
  2. Generate the XML stream from the clipboard with some of the optional elements missing.
  3. Note that empty references are generated for those optional elements.


Root Cause



A software use or operation error: The developer had not set the appropriate DSS value.

Resolution



Perform the following local-change:

1. Create a DSS(Dynamic System Setting) with the following information :
Owning Ruleset : Pega-IntegrationEngine
Purpose : StreamXML/DetectEmptyProperties
Value : true

2. After creating the DSS, perform one of the following actions:
a. XML Stream rules (generated before applying the HFix) should be re-saved.
b. XML Stream rules should be re-generated (using Connector & Metadata Accelerator)

Published December 4, 2017 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

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

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us