Question
Lanit
RU
Last activity: 28 Jul 2016 7:40 EDT
Problem with Property-Set-XML and DateTime
Hello,
I have some problem with Property-Set-XML - method:
After use Property-Set-XML with page, that have DateTime property with value "19700101T000000.000 GMT", i have xml-message with target element with empty value for this DateTime property.
How to ensure that this element contains the specified date?
Best Regards,
Podorozhny Sergey.
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
PEG
IN
When datetime property value is empty it displays the default date.
Can you create Dynamic System Setting(DSS) with below value and observe the behavior.
Purpose: disableEpochDateTime
Owning ruleset:Pega-IntegrationEngine
Value: true/false
Lanit
RU
Our environment have this DSS disableEpochDateTime with "true" value . After change value to "false" this problem don't reproduce, but appear other problems. Therefore, the value returned to "true". Is there have any other options to fix this behavior?
Updated: 20 Jul 2016 7:32 EDT
PEG
IN
May I know the version of PRPC you are in?
PEG
IN
There is existing Hfix for PRPC7.1.7.
Please refer https://collaborate.pega.com/question/empty-date-fields-default-19700101
Lanit
RU
Gangababu Gollapalli, Pega 7.1.8
PEG
IN
I tried in 7.1.8 local environment, it seems to be working when we set the DSS to true.
< xsi:type="xsd:anyType" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <name></name> <origin></origin> <Joindate></Joindate> <Enddate></Enddate> </>
Without DSS:
< xsi:type="xsd:anyType" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <name></name> <origin></origin> <Joindate>1970-01-01T00:00:00.000Z</Joindate> <Enddate></Enddate> </>
Can you run the XML Stream rule standalone with or without DSS?
Lanit
RU
Gangababu Gollapalli, yes. Without DSS i get
- <Joindate>1970-01-01T00:00:00.000Z</Joindate>
But if i delete dss (or set false value), then i get other problems. On our environment this DSS have true value knowingly.
PEG
IN
Could you please provide the output with DSS set to true? Are you seeing empty date value or any other value?
<Joindate></Joindate>
Lanit
RU
Look at BirthDate
<ns2:ClientInformation>
<ns2:ClientJurisdiction>CJ_000001</ns2:ClientJurisdiction>
<ns2:ClientStatus>Not found</ns2:ClientStatus>
<ns2:ClientName>Иванов_4 Иван Иванович</ns2:ClientName>
<ns2:ProductName>Корпоративное кредитование</ns2:ProductName>
<ns2:ProductType>4</ns2:ProductType>
<ns2:CreditType>1</ns2:CreditType>
<ns2:CreditPeriod>12</ns2:CreditPeriod>
<ns2:PartyType>6</ns2:PartyType>
<ns2:BirthDate/>
<ns2:IDlink>0-3FTZ9</ns2:IDlink>
</ns2:ClientInformation>
PEG
IN
Set DSS Entry - StreamXML/DetectEmptyProperties to true as shown below:
DSS Entry - StreamXML/DetectEmptyProperties
Owning Ruleset - Pega-IntegrationEngine
Value - true
Re-save all the XML Stram rules used within the flow having the problem.
Please run the scenario with above DSS set.