# IRN Generation Errors - Resolve Common IRN Generation Errors in E-invoicing

In this article, you'll learn how to correct a document that has failed to achieve IRN status. We'll identify the cause of the failure and guide you through the steps to rectify it.

{% embed url="<https://youtu.be/0CM6xgb8JAo?si=Rrj6BDcJieR6v_83>" %}
Resolve IRN generation issues with examples and error code explanations
{% endembed %}

{% stepper %}
{% step %}
Identify the document that has failed to achieve IRN status.

![](/files/5qhOIy0wQsc9AtJ0LaOI)
{% endstep %}

{% step %}
Open the document.
{% endstep %}

{% step %}
Navigate to the section detailing government errors and warnings.

![](/files/6lgaGN3E3GhRO447qnIl)
{% endstep %}

{% step %}
Note the GSTN to which the document belongs.
{% endstep %}

{% step %}
Understand that the supply type code should be SEZ with payment or SEZ without payment for IRN generation.
{% endstep %}

{% step %}
Make the necessary edits.
{% endstep %}

{% step %}
Change the supply type code from B2B to SSL with payment.

![](/files/NSroJbGj7MaSSoCM0r6t)
{% endstep %}

{% step %}
Save the document after making the necessary changes.

![](/files/eueJn3rzUyMJVCgktAsK)
{% endstep %}

{% step %}
Attempt to generate the IRN again.

![](/files/14Z6LjP8r8NymrpDDtAH)
{% endstep %}

{% step %}
Verify that the IRN has been successfully generated.
{% endstep %}
{% endstepper %}

By following these steps, you'll be able to correct any failed invoices and successfully generate the IRN. Thanks for reading!


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cleartax.in/product-help-and-support/for-large-businesses/e-invoicing/irn-generation-errors-resolve-common-irn-generation-errors-in-e-invoicing.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
