web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)
Under review by Community Managers

Under review

Thank you for your post! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Error in Enterprise Portal - Purchase Requisition

Posted on by 225

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)

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Alexey Lekanov Profile Picture

Alexey Lekanov 2

#2
Henrik Nordlöf Profile Picture

Henrik Nordlöf 2 User Group Leader

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans