Date type XML is not parsing correctly
SummaryThe issue has occurred after upgrading from Pega 7.1.7 to Pega 7.2. User has a web service which returns an array of data that also include a date field. The data is saved in a property which is of Date type. The format of the date is given below:
The above XML parses correctly in Pega 7.1.7 but in Pega 7.2 it is not parsed. After debugging the service it was found that Pega is not mapping the values to date field whereas in Pega 7.1.7 it worked correctly. Creating a new property which is of type Date/Time didn't resolve the issue.
Steps to Reproduce
- Create a service that returns an array of data including a date field. The date value is of the below format:
- Use a Parse XML rule to parse the response. The date field property defined in PEGA should be of date type.
- Use the value parsed into the date type field to map it to another date type property. The XML is parsed correctly in Pega 7.1.7 where-as it is not parsed in Pega 7.2.
Root CauseA defect in Pegasystems’ code or rules is identified as root cause of the issue.
ResolutionFollow the below steps:
- Apply HFix-29759.
- Set the below dynamic system settings entry:
Purpose : SwitchToOldAssembler
Owning Ruleset : Pega-IntegrationEngine
Value : true
Published October 17, 2016 - Updated October 19, 2016