This article covers the 'Sequence contains no elements' error shown when printing or emailing a document, such as a 'Sale Credit Note'. This happens because the document's 'Document type' record has no report or communication set up under 'Print / Email', so iplicit has no layout to use.
Why the Sequence contains no elements error appears when printing a document
Every document in iplicit, such as a sale invoice or sale credit note, belongs to a document type. Each document type holds its own 'Print / Email' setup, listing which report and communication to use for printing or emailing. If this list is empty for a document type, iplicit has no template to generate. Depending on your version, this is either the error 'Sequence contains no elements' appearing when you try to print or email, or no 'Print' option appearing on the document at all, since there is nothing configured for iplicit to offer.
Finding which document type is affected
- Open the document showing the error, for example a 'Sale credit note'
- Note the value in the 'Invoice type' field, for example 'Sale: Credit note'
- Hold 'Ctrl' and select the 'Invoice type' field – this opens the 'Document types' record for that document type directly.


Checking the Print / Email setup on the document type
- On the 'Document types' record, select the 'Print / Email' tab
- Check whether any rows are listed under 'Report', 'Description' and 'Communication'.
If this list is blank, this confirms the missing setup is the cause of the error.


Adding the missing report and communication to the document type
- On the 'Print / Email' tab, select 'Edit'
- Add a row and select the correct report, for example 'Credit Note: UK1'
- Select the correct communication for the same row, for example 'Credit Note (generic)'
- Select 'Save'.
Confirming the fix on the original document
- Return to the document that originally showed the problem
- Try printing or emailing it again.
Depending on your version, this is either the error no longer appearing and the document printing or emailing successfully, or the 'Print' option now appearing on the document where it was previously missing.
Sequence contains no elements error
Document will not print
Error when printing a document
Document print failure
Cannot email invoice error