Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

cvc-datatype-valid.1.2.1: '' is not a valid value for 'date'

Hi,

The WSDL of a webservice in our PI system describes the field "birthdate" as optional, data type is "xs:date". Validation is active on PI.

When I now send the following XML, I get the error message "cvc-datatype-valid.1.2.1: '' is not a valid value for 'date'":

<request>

<birthdate></birthdate>

...

Other formats don't work either:

<request>

<birthdate />

...

Only if I remove the element completely it is processed correctly. I tried to add a XSL script to remove empty tags but the validation is run before, so there is no chance for me to fix it.

Anything I can do about this?

Thanks for help.

Tags:

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question