Support Article
Parse XML maps numeric value to decimal property incorrectly
SA-60736
Summary
An external SOAP request is called. The SOAP XML contains a Pega Decision Strategy Manager (DSM) interaction ID which is a long numeric value. This XML is passed to a Parse XML to extract the interaction ID and perform DSM related tasks with the ID
The Parse XML maps the interaction ID to a decimal property. After mapping, the decimal value looses precision and hence is set to an incorrect numeric value.
Error Messages
Not Applicable
Steps to Reproduce
- Create an XML containing a Decision Interaction ID.
Sample XML:
<?xml version="1.0"?>
<interactionResponseData xmlns:ns="urn:PegaRULES:SOAP:EBanking:Services">
<decisionResultId>4362212623587749334</decisionResultId>
<IHID>4362212623587749334</IHID>
</interactionResponseData> - Use parse XML to parse the XML.
- Map the interaction ID to a decimal type property.
Root Cause
A defect in Pegasystems’ code.
The String value was converted to a Decimal value and a parseDouble was performed.
Resolution
Apply HFix-44982.
Published January 4, 2019 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.