Announcements
Hello,
when posting a document (sales confirmation, purchase order) we get the following error message:
Microsoft.Dynamics.Ax.Xpp.ErrorException: Exception of type 'Microsoft.Dynamics.Ax.Xpp.ErrorException' was thrown.
at Dynamics.Ax.Application.SysOperationServiceController.runServiceOperation(Object[] parameters) in SysOperationServiceController.runServiceOperation.xpp:line 22
at SysOperationServiceController::runServiceOperation(Object[] )
at Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.MakeStaticCall(Type type, String MethodName, Object[] parameters)
at Dynamics.Ax.Application.SysDictClass.invokeStaticMethod(Object[] _params) in SysDictClass.invokeStaticMethod.xpp:line 26
at SysDictClass::invokeStaticMethod(Object[] )
at Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.MakeStaticCall(Type type, String MethodName, Object[] parameters)
at Microsoft.Dynamics.Ax.Xpp.PredefinedFunctions.runAsInvoke(String className, String staticMethodName, Object[] parms, Object[]& exportInfolog)
I have already compiled the whole application with complete CIL-generation aftwards, restarted the complete application server. Nothing helps. In the moment we have removed the check "Execute business operations in CIL" in the user options, then it's possible to post the documents. Has here anybody a tip for me would I could do to get rid of this problem?
Regards
Patrick
*This post is locked for comments
Hi Dick,
As this problem just "disappeared" suddenly I can't verify if your reply would have solved this. But at least it's a good tip for future problems which also could be linked with the CIL.
Regards
Patrick
Hi Patrick,
remove all cil files from the server bin directory
restart AOS and do full CIL
I have seen that sometimes CIL does not get updated correctly, sparely when removing a method.
also when a database is restored and the timestamp of x++ is older than the cil timestamp
does it happen for al users, or some of them
Unfortunately I can't give you additional information. It was just that after one complete compilations with CIL-generations it worked surprisingly again, although several complete previous compilation & CIL-generation-runs couldn't solve the problem. So there wasn't anything what I did specifically to get this problem solved, it was just a "sufficient" number of compilations & CIL-generations.
Sorry that I can't give you a specific advise to solve this problem..
Regards
Patrick
Could you please advise yor trick ? I have the same problem with you
Hello,
sorry for the late reply... The reports where the error occurred aren't modified, they run completely in standard. But the problem is solved now. Although several runs of complete compilation/CIL-generations couldn't solve the problems one compilation/CIL-generation must have done the trick, suddenly and without me doing anything to solve the problem it runs...
Thanks for your reply anyway!
Regards
Patrick
It seems that one of parameters of the methods is not serializable or the serialization fails, therefore the object can't be passed to a CLR application domain. What parameters do you use there?
André Arnaud de Cal...
293,331
Super User 2025 Season 1
Martin Dráb
232,251
Most Valuable Professional
nmaenpaa
101,158
Moderator