"Exception has been thrown by the target of an invocation" error when trying to discard a previously posted NF-e Invoice to SEFAZ-BA in the Brazilian version of Microsoft Dynamics AX 2009 SP1

Applies To
Dynamics AX 2009 Service Pack 1 Accounts Receivable

This article applies to Microsoft Dynamics AX for the Brazilian (br) region.

Symptoms

When you try to discard a previously posted NF-e Invoice (Functions button > Create reversal invoice) to SEFAZ-BA in the Brazilian version of Microsoft Dynamics AX 2009 SP1, you receive the following error message:

Note

"Exception has been thrown by the target of an invocation."

Resolution

The changes in the hotfix include fixing the NF-e protocol and versioning of the cancelation event.

Hotfix information

A supported hotfix is available from Microsoft. There is a "Hotfix download available" section at the top of this Knowledge Base article. If you are encountering an issue downloading, installing this hotfix, or have other technical support questions, contact your partner or, if enrolled in a support plan directly with Microsoft, you can contact technical support for Microsoft Dynamics and create a new support request. To do this, visit the following Microsoft website:

https:⁠//mbs.microsoft.com/support/newstart.aspx You can also contact technical support for Microsoft Dynamics by phone using these links for country specific phone numbers. To do this, visit one of the following Microsoft websites:

Partners

https:⁠//mbs.microsoft.com/partnersource/resources/support/supportinformation/Global+Support+Contacts Customers

https:⁠//mbs.microsoft.com/customersource/support/information/SupportInformation/global_support_contacts_eng.htm In special cases, charges that are ordinarily incurred for support calls may be canceled if a Technical Support Professional for Microsoft Dynamics and related products determines that a specific update will resolve your problem. The usual support costs will apply to any additional support questions and issues that do not qualify for the specific update in question.

Installation information

If you have customizations for one or more of the methods or the tables that are affected by this hotfix, you must apply these changes in a test environment before you apply the hotfix in a production environment.
  For more information about how to install this hotfix, click the following article number to view the article in the Microsoft Knowledge Base:

893082 How to install a Microsoft Dynamics AX hotfix

Prerequisites

You must have the Brazilian version of Microsoft Dynamics AX 2009 SP1 installed to apply this hotfix.

Restart requirement

You must restart the Application Object Server (AOS) service after you apply the hotfix.

File information

The global version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.

File name File version File size Date Time Platform
Axupdate.exe Not Applicable 62,120 12-Apr-2015 02:42 x86
Dynamicsax2009-kb3055703-sp1.exe 6.3.15.0 12,942,336 12-Apr-2015 02:49 x86
Kb3055703-glp-cons.cab Not Applicable 4,868,696 12-Apr-2015 02:42 Not Applicable
Kb3055703-syp-cons.cab Not Applicable 7,167,974 12-Apr-2015 02:42 Not Applicable
Licensetermsar.rtf Not Applicable 101,414 22-Apr-2014 22:24 Not Applicable
Licensetermscs.rtf Not Applicable 92,705 22-Apr-2014 22:24 Not Applicable
Licensetermsda.rtf Not Applicable 102,543 22-Apr-2014 22:24 Not Applicable
Licensetermsde.rtf Not Applicable 119,313 22-Apr-2014 22:24 Not Applicable
Licensetermsen.rtf Not Applicable 111,795 22-Apr-2014 22:24 Not Applicable
Licensetermses.rtf Not Applicable 98,313 22-Apr-2014 22:24 Not Applicable
Licensetermset.rtf Not Applicable 104,484 22-Apr-2014 22:24 Not Applicable
Licensetermsfi.rtf Not Applicable 107,418 22-Apr-2014 22:24 Not Applicable
Licensetermsfr.rtf Not Applicable 133,197 22-Apr-2014 22:24 Not Applicable
Licensetermshe-il.rtf Not Applicable 4,258 22-Apr-2014 22:24 Not Applicable
Licensetermshu.rtf Not Applicable 94,304 22-Apr-2014 22:24 Not Applicable
Licensetermsis.rtf Not Applicable 36,112 22-Apr-2014 22:24 Not Applicable
Licensetermsit.rtf Not Applicable 117,765 22-Apr-2014 22:24 Not Applicable
Licensetermsja.rtf Not Applicable 107,092 22-Apr-2014 22:24 Not Applicable
Licensetermslt.rtf Not Applicable 125,197 22-Apr-2014 22:24 Not Applicable
Licensetermslv.rtf Not Applicable 106,681 22-Apr-2014 22:24 Not Applicable
Licensetermsnb-no.rtf Not Applicable 118,245 22-Apr-2014 22:24 Not Applicable
Licensetermsnl.rtf Not Applicable 112,657 22-Apr-2014 22:24 Not Applicable
Licensetermspl.rtf Not Applicable 118,887 22-Apr-2014 22:24 Not Applicable
Licensetermspt-br.rtf Not Applicable 102,982 22-Apr-2014 22:24 Not Applicable
Licensetermsru.rtf Not Applicable 151,400 22-Apr-2014 22:24 Not Applicable
Licensetermssv.rtf Not Applicable 117,960 22-Apr-2014 22:24 Not Applicable
Licensetermsth.rtf Not Applicable 156,708 22-Apr-2014 22:24 Not Applicable
Licensetermstr.rtf Not Applicable 105,693 22-Apr-2014 22:24 Not Applicable
Licensetermszh-hans.rtf Not Applicable 100,528 22-Apr-2014 22:24 Not Applicable
Axsetupsp.exe 5.0.1100.45 1,637,040 12-Apr-2015 02:43 x86
Cabextractor.dll Not Applicable 19,632 12-Apr-2015 02:42 x86
Microsoft.dynamics.setup.reportingservices.dll 5.0.1100.9 150,440 22-Apr-2014 22:35 x86
Axsetupsp.resources.dll 5.0.1100.40 539,328 12-Apr-2015 02:42 x86
Microsoft.dynamics.setup.reportingservices.resources.dll 5.0.1000.45 17,336 22-Apr-2014 22:35 x86
Axsetupsp.resources.dll 5.0.1100.40 535,232 12-Apr-2015 02:42 x86
Microsoft.dynamics.setup.reportingservices.resources.dll 5.0.1000.45 16,312 22-Apr-2014 22:35 x86
Axsetupsp.resources.dll 5.0.1100.40 531,136 12-Apr-2015 02:42 x86
Microsoft.dynamics.setup.reportingservices.resources.dll 5.0.1000.45 16,312 22-Apr-2014 22:35 x86
Axsetupsp.resources.dll 5.0.1100.40 535,232 12-Apr-2015 02:42 x86
Microsoft.dynamics.setup.reportingservices.resources.dll 5.0.1000.45 16,824 22-Apr-2014 22:35 x86
Axsetupsp.resources.dll 5.0.1100.40 535,232 12-Apr-2015 02:41 x86
Microsoft.dynamics.setup.reportingservices.resources.dll 5.0.1000.45 16,824 22-Apr-2014 22:35 x86
Axsetupsp.resources.dll 5.0.1100.40 531,136 12-Apr-2015 02:41 x86
Microsoft.dynamics.setup.reportingservices.resources.dll 5.0.1000.45 16,312 22-Apr-2014 22:35 x86
Axsetupsp.resources.dll 5.0.1100.40 531,136 12-Apr-2015 02:42 x86
Microsoft.dynamics.setup.reportingservices.resources.dll 5.0.1000.45 16,312 22-Apr-2014 22:35 x86
Axsetupsp.resources.dll 5.0.1100.40 539,328 12-Apr-2015 02:42 x86
Microsoft.dynamics.setup.reportingservices.resources.dll 5.0.1000.45 16,824 22-Apr-2014 22:35 x86
Axsetupsp.resources.dll 5.0.1100.40 539,328 12-Apr-2015 02:41 x86
Microsoft.dynamics.setup.reportingservices.resources.dll 5.0.1500.1212 16,320 22-Apr-2014 22:35 x86
Axsetupsp.resources.dll 5.0.1100.40 535,232 12-Apr-2015 02:43 x86
Microsoft.dynamics.setup.reportingservices.resources.dll 5.0.1000.45 16,824 22-Apr-2014 22:35 x86
Axsetupsp.resources.dll 5.0.1100.40 531,136 12-Apr-2015 02:42 x86
Microsoft.dynamics.setup.reportingservices.resources.dll 5.0.1000.45 16,312 22-Apr-2014 22:35 x86
Axsetupsp.resources.dll 5.0.1100.40 531,136 12-Apr-2015 02:42 x86
Microsoft.dynamics.setup.reportingservices.resources.dll 5.0.1000.45 16,312 22-Apr-2014 22:35 x86
Axsetupsp.resources.dll 5.0.1100.40 543,424 12-Apr-2015 02:42 x86
Microsoft.dynamics.setup.reportingservices.resources.dll 5.0.1000.45 17,848 22-Apr-2014 22:35 x86
Axsetupsp.resources.dll 5.0.1100.40 531,136 12-Apr-2015 02:42 x86
Microsoft.dynamics.setup.reportingservices.resources.dll 5.0.1000.45 16,312 22-Apr-2014 22:35 x86
Axsetupsp.resources.dll 5.0.1100.40 535,232 12-Apr-2015 02:43 x86
Microsoft.dynamics.setup.reportingservices.resources.dll 5.0.1000.45 16,312 22-Apr-2014 22:35 x86
Axsetupsp.resources.dll 5.0.1100.40 531,136 12-Apr-2015 02:42 x86
Microsoft.dynamics.setup.reportingservices.resources.dll 5.0.1000.45 16,312 22-Apr-2014 22:35 x86
Axsetupsp.resources.dll 5.0.1100.40 531,136 12-Apr-2015 02:42 x86
Microsoft.dynamics.setup.reportingservices.resources.dll 5.0.1000.45 16,312 22-Apr-2014 22:35 x86
Axsetupsp.resources.dll 5.0.1100.40 535,232 12-Apr-2015 02:41 x86
Microsoft.dynamics.setup.reportingservices.resources.dll 5.0.1000.45 16,824 22-Apr-2014 22:35 x86
Axsetupsp.resources.dll 5.0.1100.40 535,232 12-Apr-2015 02:41 x86
Microsoft.dynamics.setup.reportingservices.resources.dll 5.0.1000.45 16,312 22-Apr-2014 22:35 x86
Axsetupsp.resources.dll 5.0.1100.40 547,520 12-Apr-2015 02:42 x86
Microsoft.dynamics.setup.reportingservices.resources.dll 5.0.1000.45 18,872 22-Apr-2014 22:35 x86
Axsetupsp.resources.dll 5.0.1100.40 531,136 12-Apr-2015 02:42 x86
Microsoft.dynamics.setup.reportingservices.resources.dll 5.0.1000.45 16,312 22-Apr-2014 22:35 x86
Axsetupsp.resources.dll 5.0.1100.40 559,808 12-Apr-2015 02:42 x86
Microsoft.dynamics.setup.reportingservices.resources.dll 5.0.1000.45 20,408 22-Apr-2014 22:35 x86
Axsetupsp.resources.dll 5.0.1100.40 531,136 12-Apr-2015 02:42 x86
Microsoft.dynamics.setup.reportingservices.resources.dll 5.0.1000.45 16,312 22-Apr-2014 22:35 x86
Axsetupsp.resources.dll 5.0.1100.40 527,040 12-Apr-2015 02:43 x86
Microsoft.dynamics.setup.reportingservices.resources.dll 5.0.1000.45 15,800 22-Apr-2014 22:35 x86
Cabextractor.dll Not Applicable 23,216 12-Apr-2015 02:42 x64

Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained here in is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use for other considerations.