Hello,
While trying to generate the CSR and after entering the OTP we got the following message:
Your help is greatly appreciated.
Hello,
While trying to generate the CSR and after entering the OTP we got the following message:
Your help is greatly appreciated.
In the latest version, we are not using “zatca erpgulf” setting page . Instead we use zatca setting page inside company doctype. This we have done for easyness to setup multi company.
so in the CSR config page, enter the values like following
csr.common.name=TST-886431145-399999999900003
csr.serial.number=1-TST|2-TST|3-ed22f1d8-e6a2-1118-9b58-d9a8f11e874f
csr.organization.identifier=399999999900003
csr.organization.unit.name=399999999900003
csr.organization.name=Test Company LTD
csr.country.name=SA
csr.invoice.type=1100
csr.location.address=RIYADH
csr.industry.business.category=Testing zatca
I am using the ZATCA settings in the company doctype.
What I’ve done was to acquire the OTP and input it in the designated field and then click on the “Create CSR” button.
Is there something I am missing…? Did I do something wrong?
Just to clarify… I was originally following along with the video mentioned on your Git page but had already been informed that all settings need to be set through the company doctype and started doing exactly that when the error happened.
My understanding is that I only needed to provide the “OTP” and “pih” and that would be enough to generate the CSR…
for creating CSR, you dont need OTP. If is for compliance-CSID creation.
For CSR creation , you just need CSR-config
And for the CSR config I just use the code you’ve provided earlier. Correct?
it is sample for sanbox testing. For production and simulation, you need to put your company parameters.
put something in address line 1 and 2
i have added address line 1 and line 2 but it showing “Invoice tax categories MUST be coded using UNCL5305 code list” error message
Are you using item-tax template? So inside that there is tax category and reason. You need to give values there .
After inputting the CSR configuration. I am trying to check for compliance and keep getting this message"
Is there an updated tutorial that reflects any changes done to the app and how it should be used? It would be greatly appreciated if we can have a documentation of some sort of the steps to follow in order to set it up properly after the updates that were made.
Thank you.
We are releasing a new tutorial video soon.
My apologies but it seems like there was an issue from my side originally in generating the Compliance CSID. I’ve managed to do so and this is the message I am getting when I generate it:
Blockquote{“requestID”:1234567890123,“dispositionMessage”:“ISSUED”,“binarySecurityToken”:“TUlJQ2N6Q0NBaHFnQXdJQkFnSUdBWkc4akFTcU1Bb0dDQ3FHU000OUJBTUNNQlV4RXpBUkJnTlZCQU1NQ21WSmJuWnZhV05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ZTMVphEYck+mmQ=”,“errors”:null}
Now when testing for compliance I am getting the following:
Error in compliance: {“validationResults”:{“infoMessages”:,“warningMessages”:[{“type”:“WARNING”,“code”:“BR-KSA-F-06-C9”,“category”:“KSA”,“message”:“[BR-KSA-F-06-C9] - Field character limits for the Seller Address - District field (KSA-3) have not been met. The minimum limit is 1 character and the maximum limit is 127 characters.”,“status”:“WARNING”}],“errorMessages”:[{“type”:“ERROR”,“code”:“XSD_ZATCA_INVALID”,“category”:“XSD validation”,“message”:“Schema validation failed; XML does not comply with UBL 2.1 standards in line with ZATCA specifications. ERROR: org.xml.sax.SAXParseException; lineNumber: 84; columnNumber: 182; cvc-datatype-valid.1.2.1: ‘{"data": [{"company": "PD", "pih": "Z2MUlF0UMgOBHH2bdcyBlwNnocmeWR+ZWzOiHTfGyoQ="}]}’ is not a valid value for ‘base64Binary’.”,“status”:“ERROR”},{“type”:“ERROR”,“code”:“BR-CL-18”,“category”:“EN_16931”,“message”:“Invoice tax categories MUST be coded using UNCL5305 code list”,“status”:“ERROR”}],“status”:“ERROR”},“reportingStatus”:“NOT_REPORTED”,“clearanceStatus”:null,“qrSellertStatus”:null,“qrBuyertStatus”:null}
ERROR in clearance invoice, ZATCA validation: Error in compliance: {“validationResults”:{“infoMessages”:,“warningMessages”:[{“type”:“WARNING”,“code”:“BR-KSA-F-06-C9”,“category”:“KSA”,“message”:“[BR-KSA-F-06-C9] - Field character limits for the Seller Address - District field (KSA-3) have not been met. The minimum limit is 1 character and the maximum limit is 127 characters.”,“status”:“WARNING”}],“errorMessages”:[{“type”:“ERROR”,“code”:“XSD_ZATCA_INVALID”,“category”:“XSD validation”,“message”:“Schema validation failed; XML does not comply with UBL 2.1 standards in line with ZATCA specifications. ERROR: org.xml.sax.SAXParseException; lineNumber: 84; columnNumber: 182; cvc-datatype-valid.1.2.1: ‘{"data": [{"company": "PD", "pih": "Z2MUlF0UMgOBHH2bdcyBlwNnocmeWR+ZWzOiHTfGyoQ="}]}’ is not a valid value for ‘base64Binary’.”,“status”:“ERROR”},{“type”:“ERROR”,“code”:“BR-CL-18”,“category”:“EN_16931”,“message”:“Invoice tax categories MUST be coded using UNCL5305 code list”,“status”:“ERROR”}],“status”:“ERROR”},“reportingStatus”:“NOT_REPORTED”,“clearanceStatus”:null,“qrSellertStatus”:null,“qrBuyertStatus”:null}
Error in Zatca invoice call: ERROR in clearance invoice, ZATCA validation: Error in compliance: {“validationResults”:{“infoMessages”:,“warningMessages”:[{“type”:“WARNING”,“code”:“BR-KSA-F-06-C9”,“category”:“KSA”,“message”:“[BR-KSA-F-06-C9] - Field character limits for the Seller Address - District field (KSA-3) have not been met. The minimum limit is 1 character and the maximum limit is 127 characters.”,“status”:“WARNING”}],“errorMessages”:[{“type”:“ERROR”,“code”:“XSD_ZATCA_INVALID”,“category”:“XSD validation”,“message”:“Schema validation failed; XML does not comply with UBL 2.1 standards in line with ZATCA specifications. ERROR: org.xml.sax.SAXParseException; lineNumber: 84; columnNumber: 182; cvc-datatype-valid.1.2.1: ‘{"data": [{"company": "PD", "pih": "Z2MUlF0UMgOBHH2bdcyBlwNnocmeWR+ZWzOiHTfGyoQ="}]}’ is not a valid value for ‘base64Binary’.”,“status”:“ERROR”},{“type”:“ERROR”,“code”:“BR-CL-18”,“category”:“EN_16931”,“message”:“Invoice tax categories MUST be coded using UNCL5305 code list”,“status”:“ERROR”}],“status”:“ERROR”},“reportingStatus”:“NOT_REPORTED”,“clearanceStatus”:null,“qrSellertStatus”:null,“qrBuyertStatus”:null}
you need to put
address line 1
Address line 2
PO Box
On item-tax-tempalte - tax category and reason code
OTP expired and now every time I generate a new one and try to use it to regenerate the Compliance CSID I get the following error:
Error: OTP is not valid. {“errors”:[{“code”:“Invalid-OTP”,“message”:“The provided OTP is invalid”}]}
Error in creating CSID: Error: OTP is not valid. {“errors”:[{“code”:“Invalid-OTP”,“message”:“The provided OTP is invalid”}]}
For more clarification nothing was changed aside from the OTP and I’ve been trying with a new code every 15 minutes for over 2 hours and still the same error.
make sure you have OTP from simulation portal if you are trying simulation .
On the zatca portal verify that your VAT is matching your CSR config.
After following the instructions, except for being stuck with choosing the “reason code” as I can’t find a reference on how to choose the proper one, these are the errors I am getting now.
Error in Zatca invoice call: ERROR in clearance invoice, ZATCA validation: Error in compliance: {“validationResults”:{“infoMessages”:[{“type”:“INFO”,“code”:“XSD_ZATCA_VALID”,“category”:“XSD validation”,“message”:“Complied with UBL 2.1 standards in line with ZATCA specifications”,“status”:“PASS”}],“warningMessages”:[{“type”:“WARNING”,“code”:“BR-CO-17”,“category”:“EN_16931”,“message”:“VAT category tax amount (BT-117) = VAT category taxable amount (BT-116) x (VAT category rate (BT-119) / 100), rounded to two decimals.”,“status”:“WARNING”}],“errorMessages”:[{“type”:“ERROR”,“code”:“BR-CL-18”,“category”:“EN_16931”,“message”:“Invoice tax categories MUST be coded using UNCL5305 code list”,“status”:“ERROR”}],“status”:“ERROR”},“reportingStatus”:“NOT_REPORTED”,“clearanceStatus”:null,“qrSellertStatus”:null,“qrBuyertStatus”:null}