Hello,
I am trying to activate EP for Purchase Requisitions on a legacy AX 2012 R3 system. Currently working in Test. We have two machines - M1 hosts the client and AOS, M2 hosts the database, IIS and Sharepoint Foundation 2013.
Most things actually work quite fine. However - I get stuck when I try to add items to a Purchase Requisition. Via EP I can view Purch Req's, I can create a Purch Req header, I can edit an existing line (created via rich client), I can submit it to workflow. The only problem seems to be creating a new line and adding items (both catalog and non catalog items fail).
When I press the Select button on the add item web form the error message I get in the browser is:
Message: An unhandled error has occurred. To view details about this error, enable debugging in the web.config file or view the Windows event logs.
If I go to my IIS/Sharepoint server and look through the Event Log I see three messages related to Enterprise Portal. I have pasted them below.
I have tried various combinations of recompile, CIL recompile, redeploy, restart AOS, restart IIS, restart servers without any luck. Am out if ideas. Do you have any suggestions what to try?
Dynamics Object Adapter Call failed.
An unspecified runtime engine error has occurred. Error code: %d.
Microsoft.Dynamics.AX.ManagedInterop.ManagedInteropException
at Microsoft.Dynamics.AX.ManagedInterop.Object.CallWithReturnType(String methodName, Type returnType, Object[] paramList)
at Microsoft.Dynamics.AX.ManagedInterop.Object.Call(String methodName, Object param1)
at Microsoft.Dynamics.Framework.BusinessConnector.Session.DynamicsObjectAdapter.Call(String methodName, Object param1)
Dynamics Object Adapter Call failed.
An unspecified runtime engine error has occurred. Error code: %d.
Microsoft.Dynamics.AX.ManagedInterop
at Microsoft.Dynamics.AX.ManagedInterop.Object.CallWithReturnType(String methodName, Type returnType, Object[] paramList)
at Microsoft.Dynamics.AX.ManagedInterop.Object.Call(String methodName, Object param1)
at Microsoft.Dynamics.Framework.BusinessConnector.Session.DynamicsObjectAdapter.Call(String methodName, Object param1)
An unexpected error has occurred.
Dynamics Object Adapter Call failed.
Microsoft.Dynamics.Framework.BusinessConnector.Session.Exceptions.FatalSessionException
at Microsoft.Dynamics.Framework.BusinessConnector.Session.DynamicsSession.HandleException(String message, Exception exception, HandleExceptionCallback callback)
at Microsoft.Dynamics.Framework.BusinessConnector.Session.DynamicsObjectAdapter.Call(String methodName, Object param1)
at Microsoft.Dynamics.AX.Framework.Portal.Data.DataSetView.AddNew(IEnumerable`1 concreteTypeDatasources, Boolean insertAfter)
at PurchReqAddItem.addItem()
An unspecified runtime engine error has occurred. Error code: %d.
Microsoft.Dynamics.AX.ManagedInterop.ManagedInteropException
at Microsoft.Dynamics.AX.ManagedInterop.Object.CallWithReturnType(String methodName, Type returnType, Object[] paramList)
at Microsoft.Dynamics.AX.ManagedInterop.Object.Call(String methodName, Object param1)
at Microsoft.Dynamics.Framework.BusinessConnector.Session.DynamicsObjectAdapter.Call(String methodName, Object param1)