Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 72043

Posting Sales Order: Exception has been thrown by the target of an invocation.

$
0
0

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!!. 


Viewing all articles
Browse latest Browse all 72043

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>