$ 0 0 If you call Clear() after writing the invoice, you won't get the invoice type error. retVal = oARInvoiceEntry.nClear()