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

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

  1. 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>
  2. Use parse XML to parse the XML.
  3. 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

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?

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