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

![](https://1228935104-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZESjKfghy4dwB5DEJ1%2Fuploads%2Ffv2xFNHZ9h0iYwVywOk1%2F0.png?alt=media\&token=fc9abe7b-5140-4352-9f5f-a0f094f2a0c0)
{% endstep %}

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

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

![](https://1228935104-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZESjKfghy4dwB5DEJ1%2Fuploads%2FdIUxIwhc5d19OfVNC58M%2F1.png?alt=media\&token=326df28d-b38a-4da8-b2fe-c2a642ff355a)
{% 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.

![](https://1228935104-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZESjKfghy4dwB5DEJ1%2Fuploads%2FZCVOLGzVgKesFKY0VG81%2F2.png?alt=media\&token=0622d848-4103-4fef-a54d-c058329bbebc)
{% endstep %}

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

![](https://1228935104-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZESjKfghy4dwB5DEJ1%2Fuploads%2FecyqbSu98kVed46cQHCX%2F3.png?alt=media\&token=65e7b6d7-756a-4848-b1b7-592328b484ac)
{% endstep %}

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

![](https://1228935104-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZESjKfghy4dwB5DEJ1%2Fuploads%2F1ZKRAyuOn3x6syJXq16Y%2F4.png?alt=media\&token=8e0d71a1-27c3-425c-b581-20c192e66d01)
{% 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!
