Date of Supply at line level

Kindly let us know if DateOfSupply can be added at the line level in XML and also share the sample format Tried adding the same in existing XML but got below error :

  • category : BR_KSA_ERROR

  • **code :**SaxonApiException

  • message : A sequence of more than one item is not allowed as the first argument of fn:normalize-space() (“2023-06-09”, “2023-06-09”)

  • category : XSD_SCHEMA_ERROR

  • **code :**SAXParseException

  • message : Schema validation failed; XML does not comply with UBL 2.1 standards in line with ZATCA specifications. ERROR: org.xml.sax.SAXParseException; lineNumber: 186; columnNumber: 17; cvc-complex-type.2.4.a: Invalid content was found starting with element ‘{“urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2”:Delivery}’. One of ‘{“urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2”:ID}’ is expected.

Hi,
You have to following ZATCA XML standards/formats and supply date is in header not in lines,

cac:Delivery
cbc:ActualDeliveryDate2022-09-07</cbc:ActualDeliveryDate>
</cac:Delivery>

thanks