Posted on 27/10/2020 11:35:17
Hi
I have just added an order field (CprNbr). And now I get the error below when trying to open the orderlist in the backend. The field is correctly created in the database tables "EcomOrders" and "EcomOrderField". What is causing the problem? I am running Dynamicweb v9.9.1
Server Error in '/' Application.
CprNbr
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IndexOutOfRangeException: CprNbr
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
Stack Trace:
[IndexOutOfRangeException: CprNbr]
System.Data.ProviderBase.FieldNameLookup.GetOrdinal(String fieldName) +2151215
System.Data.SqlClient.SqlDataReader.GetOrdinal(String name) +141
System.Data.SqlClient.SqlDataReader.get_Item(String name) +21
Dynamicweb.Ecommerce.Orders.OrderFieldValueCollection..ctor(IDataReader dataReader) +252
Dynamicweb.Ecommerce.Orders.OrderRepository.ExtractOrder(IDataReader reader) +12974
Dynamicweb.Ecommerce.Orders.BackendOrderRepository.GetOrders() +174
Dynamicweb.Admin.UCOrderList.FillList() +342
Dynamicweb.Admin.UCOrderList.LoadList() +848
System.Web.UI.Control.OnPreRender(EventArgs e) +11725240
Dynamicweb.Controls.List.OnPreRender(EventArgs e) +462
System.Web.UI.Control.PreRenderRecursiveInternal() +132
System.Web.UI.Control.PreRenderRecursiveInternal() +227
System.Web.UI.Control.PreRenderRecursiveInternal() +227
System.Web.UI.Control.PreRenderRecursiveInternal() +227
System.Web.UI.Control.PreRenderRecursiveInternal() +227
System.Web.UI.Control.PreRenderRecursiveInternal() +227
System.Web.UI.Control.PreRenderRecursiveInternal() +227
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4005
|
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4075.0