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

Default value in XSD not applied in XML Stream for PRPC 6.3 SP1



The reported is an integration issue. When running the Connector & Metadat Wizard, generated XML Stream rule does not include the default value defined in XSD.

Sample XSD:

<?xml version="1.0" encoding="UTF-8" ?> 
<xs:schema xmlns:xs="">
<xs:element name="shiporder"> 
<xs:element name="AdditionalIncome" type="xs:decimal" default="3"/>
<xs:element name="orderperson" type="xs:string"/>
<xs:element name="shipto">
<xs:element name="name" type="xs:string"/>
<xs:element name="address" type="xs:string"/>
<xs:element name="city" type="xs:string"/>
<xs:element name="country" type="xs:string"/>
<xs:element name="item" maxOccurs="unbounded">
<xs:element name="title" type="xs:string"/>
<xs:element name="note" type="xs:string" minOccurs="0"/>
<xs:element name="quantity" type="xs:positiveInteger"/>
<xs:element name="price" type="xs:decimal"/> 
<xs:attribute name="orderid" type="xs:string" use="required"/>

The generated XML rule does not include the Default Value as specified in the XSD.

Error Messages

Not Applicable.

Steps to Reproduce

1) Start Connector & Metadata Wizard.
2) Import the sample XSD
3) Open the generated XML stream rule.

The default value specified in XSD is not applied.

Root Cause

The root cause of this problem is a defect in Pegasystems’ code/rules. 


Install HFix-21156.

Published June 12, 2015 - 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