Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Dynamics Object Adapter Call failed

(0) ShareShare
ReportReport
Posted on by 3

Hi,

Getting error when trying to navigate to send page in the grid view in Enterprise Portal page. I couldn't see any error message on screen. So, i checked the event viewer.

It is working fine in development but not working in production. I don't have any idea. I tried full CIL, incremental CIL, AOS restart, IIS restart, AOD refresh and XPPIL recreated. Please help me to resolve this issue.

Event viewer message:

Dynamics Object Adapter Call failed.

RegisterRequiresControlState can only be called before and during PreRender.

System.Web

at System.Web.UI.Page.RegisterRequiresControlState(Control control)
at System.Web.UI.Control.AddedControl(Control control, Int32 index)
at Microsoft.Dynamics.Framework.Portal.UI.WebControls.AxBaseGridView.AddedControl(Control control, Int32 index)
at Microsoft.Dynamics.Framework.Portal.UI.WebControls.AxBaseGridView.CreateChildControls(IEnumerable dataSource, Boolean dataBinding)
at System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data)
at System.Web.UI.WebControls.GridView.PerformDataBinding(IEnumerable data)
at Microsoft.Dynamics.Framework.Portal.UI.WebControls.AxBaseGridView.PerformDataBinding(IEnumerable data)
at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data)
at Microsoft.Dynamics.Framework.Portal.UI.WebControls.AxBaseGridView.PerformSelect()
at System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound()
at Microsoft.Dynamics.Framework.Portal.UI.WebControls.AxBaseGridView.set_RequiresDataBinding(Boolean value)
at Microsoft.Dynamics.Framework.Portal.UI.WebControls.AxBaseGridView.DataSet_MetadataChanged(Object sender, DataSetViewMetadataChangedEventArgs e)
at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
at Microsoft.Dynamics.AX.Framework.Services.Client.DataSetMetadata.MetadataChangedEventHandler(Object sender, DataSetViewMetadataChangedEventArgs eventArgs)
at Microsoft.Dynamics.AX.Framework.Services.Client.MetadataBase.OnPropertyChanged[T](MetadataBase changedObject, String propertyName, T propertyValue)
at Microsoft.Dynamics.AX.Framework.Services.Client.MetadataBase.ChangePropertyValue[TPropertyDataType](TPropertyDataType& currentValue, TPropertyDataType newValue, String propertyName)
at Microsoft.Dynamics.AX.Framework.Portal.Data.DataSetView.RuntimeKernelDataSourceFieldPropertyChanged(String addedDataSourceName, Int32 changedFieldId)
at Microsoft.Dynamics.AX.Framework.Portal.Data.DataSetView.RuntimeKernelMetadataChanged(Object sender, Object args)
at Microsoft.Dynamics.AX.ManagedInterop.RuntimeContext.ExecuteHandler(Object handler, Object sender, Object eventArgs)
at Microsoft.Dynamics.AX.ManagedInterop.ClrBridgeImpl.ExecuteHandler(ClrBridgeImpl* , ObjectWrapper* pObjectWrapperHandler, ObjectWrapper* pObjectWrapperSender, ObjectWrapper* pObjectWrapperEventArgs)
at AxEventDelegate.kcInvoke(AxEventDelegate* , interpret* ip)
at cqlClass.callEx(cqlClass* , Char* , interpret* )
at AxCore.AxRuntime.Call(AxRuntime* , IAxObject* axObject, String methodName, Type returnType, Object& result, Object[] paramList)
at Microsoft.Dynamics.AX.ManagedInterop.Object.CallWithReturnType(String methodName, Type returnType, Object[] paramList)
at Microsoft.Dynamics.AX.ManagedInterop.Object.Call(String methodName)
at Microsoft.Dynamics.Framework.BusinessConnector.Session.DynamicsObjectAdapter.Call(String methodName)

Thanks,

Hari

  • Suggested answer
    Anup Shah MSFT Profile Picture
    on at
    RE: Dynamics Object Adapter Call failed

    This is more of ASP.NET error suggesting "RegisterRequiresControlState can only be called before and during PreRender". Check the code in your control and search on the net for known issues.

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 601 Most Valuable Professional

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 416

#3
Adis Profile Picture

Adis 384 Super User 2025 Season 1

Product updates

Dynamics 365 release plans