Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Enterprise portal crashes when adding item to purchase requisition

(0) ShareShare
ReportReport
Posted on by 225

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

Under review

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

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,489 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans