# Hello Swipe! I Need help with Error Message: E-Invoice cannot be generated for documents without items (without items type) - /einvoice

**URL:** <https://community.getswipe.in/t/hello-swipe-i-need-help-with-error-message-e-invoice-cannot-be-generated-for-documents-without-items-without-items-type-einvoice/4592>\
**Category:** Error\
**Created:** [June 1, 2026, 11:49am UTC](https://community.getswipe.in/t/hello-swipe-i-need-help-with-error-message-e-invoice-cannot-be-generated-for-documents-without-items-without-items-type-einvoice/4592 "2026-06-01T11:49:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vinayak\_d](https://yyz1.discourse-cdn.com/flex003/user_avatar/community.getswipe.in/vinayak_d/32/6185_2.png) [@Vinayak\_d](https://community.getswipe.in/u/Vinayak_d)\
**Post date:** [June 1, 2026, 11:49am UTC](https://community.getswipe.in/t/hello-swipe-i-need-help-with-error-message-e-invoice-cannot-be-generated-for-documents-without-items-without-items-type-einvoice/4592/1 "2026-06-01T11:49:15Z")

</div>

From the above message, we understand that you are trying to generate an E-invoice for a document that was created without adding any items.

Please note that an **HSN code** is mandatory for generating an E-invoice, and HSN codes are fetched from the items added to the document. Therefore, E-invoices cannot be generated for documents that were created without selecting or adding item.
