Index Was Outside The Bounds Of The Array Error When Adding An Invoice

Q.  When adding an Invoice, selecting a customer, and clicking OK, the following error message displays: Index was outside the bounds of the array.

A.  This error will appear whether using either the Add or Credit buttons to start the invoice.  The error occurs when the selected customer has a ‘tab’ inserted at the end of the federal permit number in their customer file.  Once the federal permit number is corrected in the customer file, the invoice can be added without error.