Bulk e-invoice generation offline tool

Taxpayers generating high invoice volumes can prepare bulk e-invoices using the official National Informatics Centre offline spreadsheet utility. The tool validates invoice data locally, converts spreadsheet rows into an encrypted JSON file, and allows bulk upload to the Invoice Registration Portal. Understanding common schema validation errors and strict cancellation limits prevents duplicate entries and filing discrepancies in Form GSTR-1.

Managing daily B2B sales invoices one by one on the portal is impractical for growing businesses. When your ERP is not directly integrated with an Invoice Registration Portal (IRP) through an API, the bulk e-invoice generation offline tool provided by NIC bridges the gap. You enter sales transactions into an Excel or CSV template, validate the fields using embedded macros, and export a JSON file for direct portal upload.

How the NIC bulk offline tool works

The bulk generation tool is downloadable from the official portal at NIC e-Invoice Portal FAQs. It provides standardized worksheets for entering seller details, buyer details, item lists, and tax calculations. Once details are populated, clicking the Validate button checks the dataset against statutory requirements before building the JSON file.

The standard generation workflow follows four steps:

Step 1: Populate Excel Utility → Step 2: Validate Data → Step 3: Generate JSON → Step 4: Upload to IRP
  1. Data entry: Enter invoice number, document type (INV, CRN, DBN), invoice date, buyer GSTIN, place of supply, item HSN, taxable values, and applicable tax rates.
  2. Macro validation: Click the Validate button on each sheet. The utility flags mandatory blanks, invalid state codes, and mathematical discrepancies.
  3. JSON generation: Click Generate JSON to compile outward supply records into a single formatted payload.
  4. Portal upload: Log in to the IRP, navigate to e-Invoice → Bulk Upload, select the generated JSON file, and click Upload. The portal validates the file and issues a response file containing unique Invoice Reference Numbers (IRNs), QR codes, and digital signatures.

Two-factor authentication requirement: Logging in to the e-invoice portal requires mandatory two-factor authentication via OTP in addition to the username and password, as detailed in the NIC Advisory on 2-Factor Authentication.

Common bulk schema errors and how to fix them

When the uploaded JSON fails schema checks on the IRP, the portal rejects the batch or specific line items and provides an error report. Below are the most frequent validation errors encountered during bulk processing, based on official error catalogs published at NIC e-Invoice System Error Codes:

Error codeDescriptionRoot cause and resolution
Error 2150 Duplicate IRN An IRN is already generated for this document number and financial year. Verify your sales register to avoid re-uploading registered invoices.
Error 2172 For Intra-state transaction, IGST amount is not applicable CGST and SGST must be charged when the supplier state matches the place of supply. Do not pass IGST unless specific statutory intra-state provisions apply.
Error 2174 For inter-state transaction, CGST and SGST amounts are not applicable Only IGST can be passed when the recipient state or place of supply is outside the supplier home state.
Error 2265 Recipient GSTIN state code does not match state code passed The first two digits of the recipient GSTIN must match the numerical state code entered in the recipient details column.
Error 2278 IRN is already generated and is cancelled for this Document number Once an IRN is cancelled, that document number cannot be reused for e-invoicing. A new invoice with a fresh serial number must be issued.
Error 3029 GSTIN is inactive or cancelled The buyer GSTIN is suspended, inactive, or cancelled on the GST portal. Verify the status on the common portal before generating invoices.

Common mistake: Re-uploading after network drops. If an upload process is interrupted, never re-upload the entire batch blindly without checking the response log. Re-uploading generates Error 2150 for all invoices that succeeded before the connection dropped.

Worked example: Validating invoice values before bulk upload

Consider Om Logistics Private Limited (Maharashtra, GSTIN prefix 27) preparing two outward B2B invoices in the bulk tool for supplies to buyers in Gujarat (state code 24) and Maharashtra (state code 27).

Field Invoice INV-101 (Inter-state) Invoice INV-102 (Intra-state)
Recipient GSTIN 24AAACB1234D1Z2 (Gujarat) 27AAACB5678E1Z9 (Maharashtra)
Place of supply (POS) 24 27
Taxable value (AssAmt) ₹1,00,000 ₹50,000
GST rate 18% 18%
CGST amount (9%) ₹0 ₹4,500
SGST amount (9%) ₹0 ₹4,500
IGST amount (18%) ₹18,000 ₹0
Total invoice value (TotInvVal) ₹1,18,000 ₹59,000
Validation status Schema pass Schema pass

Tax calculations must balance exactly across line items and document headers. For INV-101, taxable value of ₹1,00,000 multiplied by 18% yields IGST of ₹18,000, bringing total invoice value to ₹1,18,000. For INV-102, taxable value of ₹50,000 split equally yields CGST of ₹4,500 and SGST of ₹4,500, totaling ₹59,000. Entering CGST or SGST on INV-101 immediately triggers Error 2174 upon upload.

Bulk cancellation workflow and strict time limits

If errors are discovered after generating IRNs, businesses can cancel e-invoices using the bulk cancellation option on the IRP. However, statutory rules impose rigid time boundaries:

  • 24-hour cancellation rule: Under official portal guidelines, an IRN can be cancelled on the IRP only within 24 hours of generation. Once 24 hours pass, the portal returns Error 2270 (allowed cancellation time limit crossed). Review detailed timing constraints in our guide on e-invoice cancellation within 24 hours.
  • Active e-way bill restriction: An IRN cannot be cancelled if an active e-way bill exists for that document. The portal triggers Error 2230. You must cancel the associated e-way bill first, then proceed with IRN cancellation.
  • No reuse of invoice numbers: Under Error 2278 rules, once an IRN is cancelled, the same invoice number can never be reported again for IRN generation. You must issue a fresh invoice with a new serial number.

Handling errors after the 24-hour window

When the 24-hour cancellation window expires, the IRN remains permanently logged on the IRP and auto-populates into Form GSTR-1 as noted in GSTN GSTR-1 User Manual. To correct or reverse the transaction:

  1. Issue a formal credit note under Section 34 of the CGST Act against the registered invoice and upload the credit note to the IRP to generate a separate IRN.
  2. Alternatively, manually modify or delete the auto-populated record in Form GSTR-1 before filing, ensuring your accounting books match the return submitted.

Frequently asked questions

What is the maximum file size for bulk e-invoice JSON upload?

The generated JSON payload uploaded to the e-invoice portal must not exceed the prescribed payload limits, and standard offline utility batches are typically kept within 5 MB or up to 500 invoices per file to prevent browser timeouts and upload failures.

How do you resolve Error 2150 during bulk IRN generation?

Error 2150 indicates a duplicate IRN request where an invoice number has already been registered on an IRP. Check your accounting records to ensure the document was not previously processed, or download the registered IRN details from the portal instead of uploading the invoice again.

Can you cancel IRNs in bulk after 24 hours?

No. The e-invoice portal allows cancellation of an IRN only within 24 hours of generation. Once this 24-hour window lapses, cancellation on the IRP is locked, and any adjustment must be handled in Form GSTR-1 by issuing a credit note or deleting the auto-populated record before filing.

Reconcile your outward e-invoices with GSTR-2B

Your GSTR-2B and purchase register files are read in your browser and never uploaded to any server. Check your supplier records and outward reconciliation with complete data privacy.

Reconcile GSTR-2B →

Last checked: 5 November 2026. Sources: NIC e-Invoice Portal FAQs, NIC e-Invoice System Error Codes, GSTN GSTR-1 User Guide.