Saturday, February 5, 2011

Troubleshooting Dynamics AX 2009 EP Thread abort Exception Error

Issue:
We had this problem where all of a sudden some of the EP Users were not able to navigate through the EP pages.


Below is the snapshot of the error which comes up in the EP Page. Sharepoint as usual doesn't show informative/descriptive errors and it's quite difficult to debug sharepoint pages, so my next bet was to look into Event Viewer to get a more detailed description of the error.








Event Viewer Log:


Dynamics Object Adapter Call failed Thread was being aborted
System.Threading.ThreadAbortException
   at AxCore_Call(UInt64 , Char* , tagVARIANT* , Int32 , tagVARIANT* )
   at Microsoft.Dynamics.BusinessConnectorNet.AxaptaObject.Call(String methodName, Object[] paramList)
   at Microsoft.Dynamics.Framework.BusinessConnector.Session.DynamicsObjectAdapter.Call(String methodName)


Microsoft Dynamics AX Business Connector Session 444.

Thread was being aborted.
   at AxCore_Call(UInt64 , Char* , tagVARIANT* , Int32 , tagVARIANT* )
   at Microsoft.Dynamics.BusinessConnectorNet.AxaptaObject.Call(String methodName, Object[] paramList)


Session Release for Microsoft Dynamics failed.


No .NET Business Connector session could be found.


Microsoft.Dynamics.Framework.BusinessConnector.Session.Exceptions.NoKernelSessionException
   at Microsoft.Dynamics.Framework.BusinessConnector.Session.DynamicsSession.get_AxaptaAdapter()
   at Microsoft.Dynamics.Framework.Portal.AxWebSession.WebSessionClientRemove()
   at Microsoft.Dynamics.Framework.BusinessConnector.Session.DynamicsSession.Release(ICacheContext context)


Resolution


Fristly, I googled to see if somebody else has experienced similar error, found this link

 http://graycloud.com/axapta/enterprise-portal-failed-with-dynamics-net-business-connect-t51380.html,
it's the same issue but there's no solution.

I tried IISreset from the EP server but that didn't help. Opened AX and deleted the user cache but still this didn't help, finally had to delete and recreate the user to solve the problem, We are on the latest service pack and rollup 6 for Dynamics AX 2009 so I'm not sure if this is a bug which would be addressed in the future.





6 comments:

  1. Had the same problem on the same AX 2009 Roll up installation as mentioned.
    This must be a bug. But difficult to prove as not all our users had the issue

    ReplyDelete
  2. How do you recreate the user? Do you delete and then create the user under "users form" or what exactly do you mean?

    ReplyDelete
  3. same situation here. Does anybody have a solution? This sk.

    ReplyDelete
  4. Hi there, i have the exact same problem running rollup 6 under windows server 2008 r2 64 bits, it is impossible to install ep , have you find any sollutions yet? maybe you can point me in the right direction to research in deph this error.

    ReplyDelete
  5. What did you mean by deleting and creating a new user?

    ReplyDelete
  6. How to Display Updated Number Sequence With Site and Warehouse in Purchase Order Packing Slip Report?

    ReplyDelete