Schema validation error in web based validation in zatca portal

One of our clients tried to validate a cleared invoice using the web-based validation and received the following error:

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: 2; columnNumber: 124; External DTD: Failed to read external DTD ‘loose.dtd’, because ‘http’ access is not allowed due to restriction set by the accessExternalDTD property.

Hello, @mohan_manakkal

The validation error is caused by the XML invoice referencing an external DTD (loose.dtd), which the validator cannot access due to security restrictions. The best approach is to remove the external DTD reference and ensure the invoice XML validates solely against the UBL 2.1 XSD schemas as per ZATCA requirements.

Please share the XML file with us for verification.
Email: sp_support@zatca.gov.sa

Thanks file already shared