Hello, 

I am trying to do a Proof of Concept on purchase requisitions via Enterprise Portal in a legacy AX2012 installation. I am currently working in TEST and recently activated EP in the environment.

Most things actually do work very well via EP. I am able to:

- Raise a Purch Req header.
- Edit a line.
- Set the financial allocation of the purchase.
- Submit the purchase requisition to workflow for approval.

The only thing that fails is trying to add an item to the purchase requisition via EP. It fails for both catalog and non catalog items. When I hit the select button I get the following message in the browser.

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. 

When I go to the server where IIS and EP is installed I get the following error in the Event Viewer:


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)


Note: I AM able to add items via rich client so it is not likely to be a module setup error.

The environment runs two servers.

Server A has rich client and AOS.
Server B has database, IIS, Sharepoint (Foundation)  and EP.

I have tried multiple times to restart the servers, restart IIS, recompile the AOT, recompile CIL, redeploy objects to EP. It does not help, I keep getting the same error.


Any ideas what to try?


Regards,

Grzegorz