> For the complete documentation index, see [llms.txt](https://docs.cleartax.in/product-help-and-support/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](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).

# 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!
