Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

Dynamics Object Adapter Call failed

Posted on by 4,971

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
    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

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 Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans