AnsweredAssumed Answered

Error using Validate XML schema assertion

Question asked by Himanshu.dwivedi on Oct 30, 2018
Latest reply on Oct 31, 2018 by Himanshu.dwivedi

Hi Team,

 

While using Validate XML schema assertion I am getting an error. However, the same regex for same value is working fine externally. But in policy manager it shows the below error.

Kindly have a look and suggest what can be the possible cause-

 

schema.failure = {Object[]} size = 23
[0] = {String} "org.xml.sax.SAXParseException; cvc-pattern-valid: Value '200004003' is not facet-valid with respect to pattern '[A-Za-z0-9_\-]+$' for type 'valBillNumber'."
[1] = {String} "org.xml.sax.SAXParseException; cvc-attribute.3: The value '200004003' of attribute 'BillNumber' on element 'Sanction' is not valid with respect to its type, 'valBillNumber'."
[2] = {String} "org.xml.sax.SAXParseException; cvc-pattern-valid: Value 'EIS/201804003' is not facet-valid with respect to pattern '^[A-Za-z0-9()_+/|{}.+,-]+$' for type 'valSanctionNo'."
[3] = {String} "org.xml.sax.SAXParseException; cvc-attribute.3: The value 'EIS/201804003' of attribute 'IFDNumber' on element 'Sanction' is not valid with respect to its type, 'valSanctionNo'."
[4] = {String} "org.xml.sax.SAXParseException; cvc-complex-type.3.2.2: Attribute 'LandingAtCDDO' is not allowed to appear in element 'Sanction'."
[5] = {String} "org.xml.sax.SAXParseException; cvc-pattern-valid: Value 'EIS' is not facet-valid with respect to pattern '[a-zA-Z0-9]+$' for type 'valRequestSource'."
[6] = {String} "org.xml.sax.SAXParseException; cvc-attribute.3: The value 'EIS' of attribute 'RequestSource' on element 'Sanction' is not valid with respect to its type, 'valRequestSource'."
[7] = {String} "org.xml.sax.SAXParseException; cvc-pattern-valid: Value '5106' is not facet-valid with respect to pattern '([0-9]{1,18})\.{0,1}([0]{0,2})$' for type 'valValidAmount'."
[8] = {String} "org.xml.sax.SAXParseException; cvc-attribute.3: The value '5106' of attribute 'SanctionAmount' on element 'Sanction' is not valid with respect to its type, 'valValidAmount'."
[9] = {String} "org.xml.sax.SAXParseException; cvc-pattern-valid: Value 'EIS-20180400300453' is not facet-valid with respect to pattern '^[A-Za-z0-9()_+/|{}.+,-]+$' for type 'valSanctionNo'."

 

Thanks in advance, any suggestion would be really helpful.

 

Regards,

Himanshu

Outcomes