
Hi, I have the error: Exception has been thrown by the target of an invocation. When I try to post sales order and the invoice is not generated. The error is showed in the next image.
I tried the next options and anyone works.
1. The fix is simple – for every user, go to “Tools > Options > Development > General” and UNCHECK the “Execute business operations in CIL” box.
2. Synchronize the data Dictionary.
3. Compile full cil.
4. Delete auc on server and compile the full app.
I have the AX 2012 R3 CU12 .
The code when the erros is showed is the next:
class FormLetterServiceController
protected void afterOperation(
SysOperationExecutionMode _executionMode,
AifAsyncResult _asyncResult)
{
boolean updateError;
super(_executionMode, _asyncResult);
formletterOutputContract = this.operationReturnValue();
this.afterOperationBody();
this.afterOperationEnd();
updateError = formletterOutputContract.parmUpdateError();
if (updateError)
{
throw error("@SYS78886");
}
}
Thanks for your help!!.
*This post is locked for comments
I have the same question (0)Unchecking the "Execute business operations in CIL" only works for users with developer permissions.
Logon as a user that is in your System administrators role, uncheck the "Execute business operations in CIL" box, and then try to post the invoice again. You should get a much more informative error.