What operation are you performing when this error appears? Does your Invoices data pass the Data Integrity Check? Do you have all the necessary right to the directories you're using? Has something recently changed at your installation?