Skip to main content
Post a question

Notifications

Community site session details

Community site session details

Session Id : FuFgM9hvppach2bBtfQT+Q
Microsoft Dynamics AX (Archived)

Microsoft.Dynamics.Ax.Xpp.ErrorException "A parameter could not be serialized." when posting document

Like (0) ShareShare
ReportReport
Posted on 2 Oct 2012 12:38:46 by

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

  • Community Member Profile Picture
    on 08 Apr 2013 at 09:57:17
    RE: Microsoft.Dynamics.Ax.Xpp.ErrorException "A parameter could not be serialized." when posting document

    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

  • Verified answer
    Dick Wenning Profile Picture
    8,705 Moderator on 03 Apr 2013 at 11:19:17
    RE: Microsoft.Dynamics.Ax.Xpp.ErrorException "A parameter could not be serialized." when posting document

    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

  • Community Member Profile Picture
    on 03 Apr 2013 at 09:22:37
    RE: Microsoft.Dynamics.Ax.Xpp.ErrorException "A parameter could not be serialized." when posting document

    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

  • prateep Profile Picture
    10 on 03 Apr 2013 at 04:41:10
    RE: Microsoft.Dynamics.Ax.Xpp.ErrorException "A parameter could not be serialized." when posting document

    Could you please advise yor trick ? I have the same problem with you

  • Community Member Profile Picture
    on 17 Oct 2012 at 11:37:40
    Re: Microsoft.Dynamics.Ax.Xpp.ErrorException "A parameter could not be serialized." when posting document

    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

  • Martin Dráb Profile Picture
    232,251 Most Valuable Professional on 03 Oct 2012 at 04:54:44
    Re: Microsoft.Dynamics.Ax.Xpp.ErrorException "A parameter could not be serialized." when posting document

    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?

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,331 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,251 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans
Loading started
Loading complete