cancel
Showing results for 
Search instead for 
Did you mean: 

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

benediktn
Explorer
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

pvishnuvardan_reddy
Active Contributor
0 Kudos

Hi Benedikt,

I think you need to disable the validation or else declare the field as xsd:string instead of xsd:date.

Same issue has been discussed in the below thread. Can you check once:

https://scn.sap.com/thread/1631030

Regards

benediktn
Explorer
0 Kudos

I was hoping there is another solution than that

I will try to fix it this way. Thanks for your help.

Answers (0)