ZATCA Troubleshooting
Common issues users encounter with ZATCA e-invoicing and how to resolve them.
Invoice Stuck on "Pending"
Symptom: Invoice shows "Pending" status for more than a few minutes.
Possible Causes & Solutions:
- ZATCA server is slow or down
- Check the ZATCA portal status.
- Wait and check again β ZATCA may have processing delays.
- No action needed on your side.
- Internet connectivity issue
- Verify your internet connection is stable.
- Check if other internet services work.
- If connection is down, invoices will queue and submit when it's restored.
- Batch mode delay
- If using Batch mode, invoices are processed at scheduled intervals.
- Check ZATCA > E-Invoicing Sync for the batch queue.
- Click Sync Now to trigger immediate processing.
- Queue backlog
- During peak times, the submission queue may have a backlog.
- Monitor the ZATCA Dashboard for queue status.
- Usually resolves automatically.
CSID Certificate Expired
Symptom: All new invoices fail with "Invalid certificate" or CSID shows "Expired" on dashboard.
Solution:
- Go to ZATCA > ZATCA Business Settings.
- Click the Onboarding button.
- Run the onboarding wizard to generate a new CSID.
- After new CSID is generated, pending/failed invoices will be submitted with the new certificate.
- Verify by checking a new invoice submission.
EGS Unit Errors
Symptom: Invoices fail with "EGS unit not authorized" or similar.
Solutions:
- EGS Unit not active
- Go to ZATCA > ZATCA EGS.
- Check if the EGS unit status is Active.
- If inactive, click Re-activate or re-run onboarding for this device.
- Wrong EGS unit selected
- The device generating the invoice must match a registered EGS unit.
- Ensure the correct EGS unit is selected in business settings.
- New device not registered
- If you've set up a new computer, register it as a new EGS unit.
- Go to ZATCA Business Settings > Onboarding > Onboard New EGS Unit.
VAT Number Validation Fails
Symptom: Invoice rejected with "Invalid VAT number" or similar.
Solutions:
- Company VAT number wrong
- Verify in ZATCA Business Settings that your VAT number is exactly 15 digits and starts with 3.
- It must match ZATCA's records exactly.
- Customer VAT number wrong
- Open the Customer record.
- The Tax ID field should contain the 15-digit VAT number starting with 3.
- For consumers (B2C), use a Simplified Invoice β no buyer VAT needed.
- Set the Customer's Tax Category to "Consumer" for B2C transactions.
- Customer not registered for Phase 2
- Not all businesses are in Phase 2 yet.
- Check with the customer about their ZATCA registration status.
Invoice Shows "Error" Status
Symptom: Invoice status is "Error" (red) instead of "Accepted" or "Rejected".
Solutions:
- Check ZATCA Integration Log for the specific error.
- Common causes:
- Network timeout to ZATCA β try again later.
- XML generation error β contact support if persistent.
- Server resource issue β may resolve automatically.
- Resubmit the invoice:
- If the error is transient, the system will automatically retry.
- For manual retry, use the Resend option on the invoice.
QR Code Not Appearing on Print
Symptom: Printed invoice doesn't show the ZATCA QR code.
Solutions:
- Ensure the invoice was accepted by ZATCA (status = "Accepted").
- Check that the correct Print Format is selected:
- Standard invoices: "ZATCA Phase 2 Print Format"
- Simplified invoices: "Simplified Invoice Print Format"
- The print format may need to be manually selected if the auto-detection isn't working.
- If the QR code still doesn't appear, contact support.
Batch Processing Not Working
Symptom: Invoices queue up but aren't being processed in batch mode.
Solutions:
- Go to ZATCA > E-Invoicing Sync.
- Click Sync Now to manually trigger processing.
- Check the Integration Log for errors during batch processing.
- Verify that batch processing is enabled in ZATCA Business Settings.
- If sync fails, try switching to Live mode temporarily to process outstanding invoices.
Common Error Messages Reference
| Error Message | Quick Fix |
|---|---|
| "Connection refused" | Internet or ZATCA server issue β wait and retry |
| "Unauthorized β check credentials" | CSID expired β re-run onboarding |
| "XML Schema Validation Failed" | System issue β contact support |
| "Invoice hash mismatch" | Data changed after submission β amend and resubmit |
| "Request timeout" | ZATCA servers busy β auto-retry will handle it |
| "Rate limit exceeded" | Too many requests β slow down submissions |
| "Invalid electronic address" | Customer address missing/incorrect β update Customer master |
When to Contact YousrERP Support
Contact support (helpdesk.botsolutions.tech) when:
- Rejection errors persist after fixing the identified issue
- XML validation or schema errors occur
- CSID generation fails during onboarding
- Certificate errors that re-onboarding doesn't fix
- Any error you can't resolve using this guide
When contacting support, include:
- Your company name
- The invoice number(s) affected
- The exact error message from the Integration Log
- Screenshots of the ZATCA status and error
- When the issue started