Skip to main content
Mitratech Success Center

Corridor - Invoice Rejection: ExpenseRate(Exception): String index out of range: 4

The expense line item contains a space in the expense code field (<acca_expense> </acca_expense>) which is triggering the String index out of range: 4 error. The rule is looking for 4 characters and it is finding a space instead. 

Expense Codes must be a string of 4 characters beginning with the letter "E".

Note: If the system had encountered a 4 character value beginning with an "E", then the message would have read like, "Line item "24": Line Item Expense_CD of "XXXX"' from the LEDES file failed to import because value is invalid.