Validate EInvoice using .Net SDK

Dears ,

I tried to sign and generate hash and QR using .Net SDK then I sent it to Simulation environment and cleared successfully.
but when tried EInvoiceValidator.ValidateEInvoice method to validate it before sending it I get errors but not clear like below

  1. Validate EN Schematrons => [Error] occurred in validating Schematrons.
  2. Validate KSA Schematrons => [Error] occurred in validating Schematrons.
1 Like

Hi @m.atef ,

Thank you for reaching out.

kindly make sure that you are following the XML standards. you can refer to Reference for the XML standards.

Best,

1 Like

Hi @lalomar

I get the same error although I’m testing a ready standard_invoice.xml and simplifed_invoice that attached with ZATCA SDK samples folder.

About pihContent I get it from the PIH attached folder
And certificateFileContent from cert.pem that attached in Certificates directory.

What I miss please ?

Dear @khaledmaqtari

Thank you for reaching out, and welcome to our community.

Can you please share more details to our support team via email:

SP email: sp_support@zatca.gov.sa

Thanks,

1 Like

Thank you sir.
I’ll send my details to your support team email.

We are facing the same issue, please let me know if you find any solution for the same

Dear @khaledmaqtari
Did you got the solution for this validation error ?