web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

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

(0) ShareShare
ReportReport
Posted on by

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. 

errorFactura.png

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)
  • Brandon Wiese Profile Picture
    17,788 on at

    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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans