aif - AX 2012 R3 CU8: System.ServiceModel.FaultException: An error occurred -


i'm trying update existing sales order using aif services. when invoke service operation, following error message:

system.servicemodel.faultexception: error occurred.

server stack trace: @ system.servicemodel.channels.servicechannel.handlereply(proxyoperationruntime operation, proxyrpc& rpc) @ system.servicemodel.channels.servicechannel.call(string action, boolean oneway, proxyoperationruntime operation, object[] ins, object[] outs, timespan timeout) @ system.servicemodel.channels.servicechannelproxy.invokeservice(imethodcallmessage methodcall, proxyoperationruntime operation) @ system.servicemodel.channels.servicechannelproxy.invoke(imessage message)

exception rethrown @ [0]:

the client visualstudio .net c# console project. call wrapped in try/catch block.

        try         {              console.writeline("making call update sales order...");             proxy.update(callcontext, entitykeys, newsalesorderdoc);             console.writeline("updates completed successfully.");             proxy.close();          }         catch (faultexception<aiffault> e)         {             foreach (var item in e.detail.infologmessagelist)             {                 console.writeline(item.infologmessagetype + " -- " + item.message);             }             proxy.abort();         }         catch (exception e)         {             console.writeline(e.tostring());             proxy.abort();         } 

i've set breakpoint on first catch, execution never stops there. i'm able invoke other operations on inbound port without problem.

is there way additional information?

thanks.

check aif exceptions in ax (system administration - periodic - services , application integration framework - exceptions).

you can enable message logging on inbound port (under troubleshotting select all document versions) , include exceptions in fault. don't forget disable in production or periodic cleanup.

aif logging


Comments

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -