Skip to main content

Notifications

Announcements

No record found.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,431 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,503 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans