R12.0.6+ : Oracle Projects Account Generator Setup Test [ID 732301.1]
for the invoice in question. Save your invoice header, then add project related distributions and then try saving the invoice again. As PAAPINVW tries generating an account, it will error, then oyu can run the above diagnostics.
Most likely the issue is with your customization which is failing to generate correct account.