query failed of select allInvoice