dateTime format: Missing or invalid XML node; element="Value"

Hello.

Im havig the message 'Missing or invalid XML node; element=“Value” ’ for some responses of a value of datetime, but other does not. I dont know if this is some bad manage of CPE or it is some bug for different format:

GOT the error over response:
soap-enc:arrayType=“xsd:string[1]”>Device.IP.Interface.1.IPv6Address.1.ValidLifetime</cwmp:GetParameterValues></soap-env:Body></soap-env:Envelope>
body: “<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<SOAP-ENV:Envelope xmlns:SOAP-ENV=“http://schemas.xmlsoap.org/soap/envelope/” xmlns:SOAP-ENC=“http://schemas.xmlsoap.org/soap/encoding/” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance” xmlns:xsd=“XML Schema” xmlns:cwmp=“urn:dslforum-org:cwmp-1-0”>\n\tSOAP-ENV:Header\n\t\t<cwmp:ID SOAP-ENV:mustUnderstand=“1”>17bd77dd6240000</cwmp:ID>\n\t</SOAP-ENV:Header>\n\tSOAP-ENV:Body\n\t\tcwmp:GetParameterValuesResponse\n\t\t\t<ParameterList xsi:type=“SOAP-ENC:Array” SOAP-ENC:arrayType=“cwmp:ParameterValueStruct[1]”>\n\t\t\t\t\n\t\t\t\t\tDevice.IP.Interface.1.IPv6Address.1.ValidLifetime\n\t\t\t\t\t<Value xsi:type=“xsd:dateTime”>0-12-31T23:59:59\n\t\t\t\t\n\t\t\t\n\t\t</cwmp:GetParameterValuesResponse>\n\t</SOAP-ENV:Body>\n</SOAP-ENV:Envelope>\r\n”

I do NOT have error on this one:
root@GenieACS:/mnt/usb-drive/log/genieacs# tail -f genieacs-debug.yaml | grep “Device.Time.CurrentLocalTime”
soap-enc:arrayType=“xsd:string[1]”>Device.Time.CurrentLocalTime</cwmp:GetParameterValues></soap-env:Body></soap-env:Envelope>
body: “<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<SOAP-ENV:Envelope xmlns:SOAP-ENV=“http://schemas.xmlsoap.org/soap/envelope/” xmlns:SOAP-ENC=“http://schemas.xmlsoap.org/soap/encoding/” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance” xmlns:xsd=“XML Schema” xmlns:cwmp=“urn:dslforum-org:cwmp-1-0”>\n\tSOAP-ENV:Header\n\t\t<cwmp:ID SOAP-ENV:mustUnderstand=“1”>17bd777c51c0000</cwmp:ID>\n\t</SOAP-ENV:Header>\n\tSOAP-ENV:Body\n\t\tcwmp:GetParameterValuesResponse\n\t\t\t<ParameterList xsi:type=“SOAP-ENC:Array” SOAP-ENC:arrayType=“cwmp:ParameterValueStruct[1]”>\n\t\t\t\t\n\t\t\t\t\tDevice.Time.CurrentLocalTime\n\t\t\t\t\t<Value xsi:type=“xsd:dateTime”>2021-09-12T00:45:55.980000Z\n\t\t\t\t\n\t\t\t\n\t\t</cwmp:GetParameterValuesResponse>\n\t</SOAP-ENV:Body>\n</SOAP-ENV:Envelope>\r\n”

This are the difference (another example)
OK: “xsd:dateTime”>2021-09-12T00:45:55.980000Z\n\t\t\t\t
NOK: “xsd:dateTime”>1-01-01T00:00:50\n\t\t\t\t

Thank you

This 1-01-01T00:00:50 is not a ISO-8601 string. The year part must be at least 4 digits.

1 Like

Thank you Zaidka, will check with the vendor. It seems that the responses have a mixed format for some nodes

again thank you for the quick precise technical information