Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX forum
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.

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 288,420 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,672 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans