Error when creating an Invoice from Excel in Alma
Question
When creating an Invoice from File in Alma, the job "Invoice - Create from Spreadsheet" shows errors such as:
No enum constant com.exlibris.urm.acquisition.model.invoice.InvoiceLine.InvoiceLineType.Regular
Or:Index 25 out of bounds for length 25
How to resolve it?
Answer
For the first error (no enum constant), ensure that the "Line Type" is case-sensitive, REGULAR and not for example Regular. This will enable uploading the Invoice Line Type, and the rest of the invoice, correctly.
For the second error (Index out of bounds), it will be needed to download again the Excel Sample File from Alma (Acquisitions > Receiving and Invoicing > Create Invoice. Then, Select "File" > Next, and "Download Excel Example"). Then, copy the values from your original invoice and paste as "Values Only" over to the Template. Be sure that the Template columns are populated with the expected data.
Additional Information
More about "Creating an Invoice from File" is here.
- Article last edited: 8-JAN-2026

