I am unable to delete the pending vendor invoices for some companies(Stack trace error)..
Please tell me how to solve this..?
This solution too worked for me but just wanted to know if you will be able to explain the root cause of this issue or why the records couldn't get deleted from the AccountingDistribution table.
Can you able to reproduce the issue? In my scenario in some method the sourecedocument buffer is passed as nul. due to the hotfix added. So I have added the code like
if (sourcedocument )
Then it is fixed...