Exception has been thrown by the target of invocation in dynamics Ax 2012

Exception has been thrown by the target of an invocation

Solution 1:-

AOT Data dictionary is not synchronize with Sql Server. I perform following steps to resolve this error.

• Right click on data Dictionary and synchronize the data Dictionary.
• Right click on AOT and compile it, it step take longer time. In the case of any error in any class, fix the issue and compiled.
• Generate full CIL.

Solution 2:-
For every user, go to “Tools > Options > Development > General” and UNCHECK the “Execute business operations in CIL” box.

Unchecking "Execute Business Operations in CIL" means that you stopped testing whether the logic works in CIL.

Solution 3:-
  1. Catch the exception (by catch (Exception::CLRError)). I didn't get enough information to tell you where, but I described how to find it.
  2. Get the CLR exception and look into its InnerException property. AifUtil::getClrErrorMessage() is usually the easiest way to do that.

Related Posts

Thanks for comments.....

:)
:(
hihi
:-)
:D
=D
:-d
;(
;-(
@-)
:P
:o
:>)
(o)
:p
:-?
(p)
:-s
(m)
8-)
:-t
:-b
b-(
:-#
=p~
$-)
(y)
(f)
x-)
(k)
(h)
cheer