It seems that system is trying to find the invoice lines related to the transaction and is not able to. It will be required to debug the code and find whether there is an issue with generating invoice. The system is showing trace log, but the actual error is not visible.Can you please provide the Dynamics AX version detail? This will help with finding the actual error. There was a known bug in AX 2012 related to it and a hotfix is also available to resolve the issue.
If you've found this thread useful, dive deeper into User Group community content by role