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

Announcements

No record found.

News and Announcements icon
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,790 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 26

#2
imran ul haq Profile Picture

imran ul haq 8

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 4 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans