Hi. I had a few old product fields which havent been used for ages. They were deleted, and no consequences in the frontend observed after rebuilding indexes.
However, I then needed to edit a group in PIM, and when editing I get an unhandled exception
This did not happen prior to deleted the unused fields.
I have emptied all caches in the developer area, problem remains (though every 4th or 5th attempt, sometimes the edit page will open).
Following error in event viewer.
2024-07-29 12:11:36.176: Exception of type 'System.Web.HttpUnhandledException' was thrown.
System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown.
System.NullReferenceException: Object reference not set to an instance of an object.
at Dynamicweb.Ecommerce.Products.ProductField.GetFieldLabel(String languageId, Boolean addCategoryLabel)
at Dynamicweb.Admin.eComBackend.EcomGroupEdit.GetProductFieldListItems(IEnumerable`1 productFields, String selectedValue)
at Dynamicweb.Admin.eComBackend.EcomGroupEdit.LoadGroupData(PermissionLevel permissionLevel)
at Dynamicweb.Admin.eComBackend.EcomGroupEdit.Page_Load(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.admin_module_ecom_catalog_dw7_edit_ecomgroup_edit_aspx.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
2024-07-29 12:11:36.176: Request headers: [ "Connection", "Accept", "Accept-Encoding", "Accept-Language", "Cookie", "Host", "Referer", "User-Agent", "sec-ch-ua", "sec-ch-ua-mobile", "sec-ch-ua-platform", "upgrade-insecure-requests", "sec-fetch-site", "sec-fetch-mode", "sec-fetch-user", "sec-fetch-dest", "priority" ]
2024-07-29 12:11:36.176: Request item keys: [ "Depth.False", "Dynamicweb.Environment.Web", "Inherit Categories.True", "Placering.True", "Primary.True", "Weight.False", "Stock.False", "Translate.IsFrontEnd", "Manufacturer.False", "Dynamicweb.RewriteUrl", "owin.Environment", "Product Type.False", "Number.False", "Name.False", "Periode.False", "PermissionContextStack", "Gennemse.True", "alternateUrlKey", "Cost.False", "Description.False", "Dynamicweb.Controls.Resources", "Teaser Text.False", "Link.False", "Alternativ link.False", "Dynamicweb.Controls.Resources.Current", "Height.False", "Slet.True", "Never out of stock.False", "Width.False", "Units and stock.False", "Vat Group.False", "Edit group.False", "Shop.True", "Shop.False", "Volume.False", "AspSession", "Price.False", "ExecutionTableMapper", "Gruppe.True", "AspSessionIDManagerInitializeRequestCalled" ]
2024-07-29 12:11:36.176: Request form: []