I'm importing a lot of products using the API, and everything seems to show up fine in the tree, but when I click on a product I get this error in the back-office:
[NullReferenceException: Object reference not set to an instance of an object.]
UCommerce.Presentation.Presenters.Catalog.EditProductPresenter.BindView() +1261
UCommerce.Presentation.Presenters.Catalog.EditProductPresenter.View_Load(Object sender, EventArgs e) +15
System.EventHandler.Invoke(Object sender, EventArgs e) +0
umbraco.BasePages.BasePage.OnLoad(EventArgs e) +18
System.Web.UI.Control.LoadRecursive() +70
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3063
I'm creating products, setting a definition, relating them to a category, giving them a description, adding a custom property and creating a price for them. What am I missing? I'm not getting any errors when creating the products, so...
API created products fail in back-office
I'm importing a lot of products using the API, and everything seems to show up fine in the tree, but when I click on a product I get this error in the back-office:
[NullReferenceException: Object reference not set to an instance of an object.] UCommerce.Presentation.Presenters.Catalog.EditProductPresenter.BindView() +1261 UCommerce.Presentation.Presenters.Catalog.EditProductPresenter.View_Load(Object sender, EventArgs e) +15 System.EventHandler.Invoke(Object sender, EventArgs e) +0 umbraco.BasePages.BasePage.OnLoad(EventArgs e) +18 System.Web.UI.Control.LoadRecursive() +70 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3063
I'm creating products, setting a definition, relating them to a category, giving them a description, adding a custom property and creating a price for them. What am I missing? I'm not getting any errors when creating the products, so...
The code that imports the products are here:
Turns out this was some bad data written to product families (variant SKU was set, which doesn't make sense on a product family).
I've added a fix which prevents the errors for happening again in V3.
is working on a reply...