Skip to content

Why Hacienda rejects a document and how to fix it

Guide 12 of 12 · Getting startedReviewed: Supporting guide · optional for your first invoice

If Hacienda rejects a document, open its details and read the reason before correcting it. Rejected and accepted invoices require different procedures.

If you are not signed in, Tario asks you to log in and opens your current company.

Steps

  1. In Sales → Invoices, the ? icon next to Rejected shows the Rejection reason; in Hacienda Operations the Diagnostic column sums up what to do. Download response gets Hacienda's full XML.

    Demo data. Local monitoring screen with no real rejections. The guide explains how to read them when they occur.

    Demo data. Local monitoring screen with no real rejections. The guide explains how to read them when they occur.

    Why Hacienda rejects a document and how to fix it — interface with demo data
  2. Look the code up (for example -150) in the table below: it says what it means and how to fix it.

  3. A rejected invoice has no fiscal validity and is not collected. Use Duplicate invoice, fix the data (client, product, rate, exoneration) and issue the new document; you can Archive the rejected one.

  4. An accepted invoice is not reissued: the correction is a credit or debit note that references it.

  5. Before issuing, Tario already blocks with To issue, the following is missing: what it knows Hacienda rejects (price 0, CABYS, note-only rates, XML limits, future date, references). If you get a new rejection Tario did not prevent, send the key to support.

Tips

  • Ask Tario AI “Why was this invoice rejected?” with the invoice selected: it reads the reason and tells you what to fix.

Common errors

Code or messageWhat it meansHow to fix it
-150A line has unit price 0; Hacienda requires a price greater than zero.Use the real price and, for a gift, a 100% discount.
-505A transitional rate (05, 06 or 07) was used on a document that is not a credit or debit note.Change the line's VAT rate; transitional rates only go on notes.
-29The note references a document that is not your company's (the key does not carry your tax id).Check the Reference document key: it must be a document your company issued.
-17The referenced document was not accepted by Hacienda.Wait for the original to be accepted (Query Hacienda) before issuing the note.
-502A purchase invoice (FEC) to a non-taxpayer vendor (identification 06) does not use sale condition 13.Change the Sale condition to 13 and resend.
-478The exoneration's authorization type requires the law's article and it is missing.Fill in the Article under the line's Exoneration.
-410The receiver's economic activity is not one the client is registered for.Open the client, use Look up in Hacienda and save a registered activity; Tario fixes it by itself when issuing if the registry answers.
-488The summary's tax breakdown does not match the lines' VAT (for example with exonerations or 0% rates).Duplicate the invoice and issue again; if it repeats, send the key to support.
-37The issuer's geographic location (province, canton, district) is not valid.Fix the company's fiscal address in Settings → General and issue again.
-38The identification does not match its type's format (physical 9 digits, legal 10, DIMEX 11-12, NITE 10).Fix the client's or vendor's Identification type or number.

Ask Tario AI

Opens the assistant inside Tario with the question typed, ready to send.

Ask Tario AI