I'm trying to get the import running but get an error which I can't seem to solve:
System.NullReferenceException: Object reference not set to an instance of an object. at NEvoWeb.Modules.NB_Store.ImportCSV.buildCSVCategoryXML(PortalSettings PS, String[] CSVlines, String FieldDelimeter, String FieldQualifier, String FieldEscapedQualifier) at NEvoWeb.Modules.NB_Store.ImportCSV.ImportCSVProducts(PortalSettings PS, String ImportFile, Boolean UpdateExistingProductsFlg, Boolean CreateCategoriesFlg, String RowDelimeter, String FieldDelimeter, String FieldQualifier, String FieldEscapedQualifier)
I'm using this template:
<P><NB_Store_ProductsInfo><ProductID>1</ProductID><PortalID>[PORTALID]</PortalID><TaxCategoryID>-1</TaxCategoryID><Featured>false</Featured><Archived>false</Archived><CreatedByUser>1</CreatedByUser><CreatedDate></CreatedDate><IsDeleted>false</IsDeleted><ProductRef>[COL:1]</ProductRef><Lang>[LANG]</Lang><Summary>[COL:2]</Summary><Description>[COL:3]</Description><Manufacturer></Manufacturer><ProductName>[COL:4]</ProductName><XMLData /><ModifiedDate></ModifiedDate><SEOName>[COL:2] [COL:4] [COL:3]</SEOName> </NB_Store_ProductsInfo><M><NB_Store_ModelInfo><ModelID/><ProductID/><ListOrder></ListOrder><UnitCost>[COL:5]</UnitCost><ModelRef>[COL:1]</ModelRef><Lang>[LANG]</Lang><ModelName>[COL:4]</ModelName><QtyRemaining>-1</QtyRemaining><QtyTrans>0</QtyTrans><QtyTransDate></QtyTransDate><ProductName>[COL:4]</ProductName><PortalID>[PORTALID]</PortalID><Weight>[COL:6]</Weight><Height>0.00</Height><Length>0.00</Length><Width>0.00</Width><Deleted>false</Deleted><QtyStockSet>0</QtyStockSet><DealerCost>0.0000</DealerCost><PurchaseCost>0.0000</PurchaseCost><XMLData /><Extra /><DealerOnly>false</DealerOnly><Allow>0</Allow></NB_Store_ModelInfo></M><I><NB_Store_ProductImageInfo><ImageID/><ProductID/><ImagePath>C:\inetpub\Host\DNN Development\DNN_TEST\Portals\0\productimages\[COL:7]</ImagePath><ListOrder>1</ListOrder><Hidden>false</Hidden><Lang>[LANG]</Lang><ImageDesc>[COL:4]</ImageDesc><ImageURL>/Portals/0/productimages/[COL:7]</ImageURL></NB_Store_ProductImageInfo></I><D/><C><NB_Store_ProductCategoryInfo><ProductID/><CategoryID/><CategoryName>[COL:8]</CategoryName><ParentName>[COL:9]</ParentName></NB_Store_ProductCategoryInfo></C><R/><options/></P> and try to import these test items:
PN001;Korte omschrijving Prod 01;Beschrijving Prod 01;Prod 01;1100;1150;nopic.jpg;hoofddcat_subcat;Hoofdcat_01;Bescrhijving Cate 01;Subcat
PN002;Korte omschrijving Prod 02;Beschrijving Prod 02;Prod 02;1200;1250;nopic.jpg;hoofddcat_subcat;Hoofdcat_01;Bescrhijving Cate 01;
PN003;Korte omschrijving Prod 03;Beschrijving Prod 03;Prod 03;1300;1350;nopic.jpg;Hoofdcat_01;;Bescrhijving Hoofdcat 01;
Anyone can point me in the right direction, I''m not finding any logging during this proces. It's runnning into this error without a catch i think.
Regards, Machiel Broekman
System.NullReferenceException: Object reference not set to an instance of an object. at NEvoWeb.Modules.NB_Store.ImportCSV.buildCSVCategoryXML(PortalSettings PS, String[] CSVlines, String FieldDelimeter, String FieldQualifier, String FieldEscapedQualifier) at NEvoWeb.Modules.NB_Store.ImportCSV.ImportCSVProducts(PortalSettings PS, String ImportFile, Boolean UpdateExistingProductsFlg, Boolean CreateCategoriesFlg, String RowDelimeter, String FieldDelimeter, String FieldQualifier, String FieldEscapedQualifier)
I'm using this template:
<P><NB_Store_ProductsInfo><ProductID>1</ProductID><PortalID>[PORTALID]</PortalID><TaxCategoryID>-1</TaxCategoryID><Featured>false</Featured><Archived>false</Archived><CreatedByUser>1</CreatedByUser><CreatedDate></CreatedDate><IsDeleted>false</IsDeleted><ProductRef>[COL:1]</ProductRef><Lang>[LANG]</Lang><Summary>[COL:2]</Summary><Description>[COL:3]</Description><Manufacturer></Manufacturer><ProductName>[COL:4]</ProductName><XMLData /><ModifiedDate></ModifiedDate><SEOName>[COL:2] [COL:4] [COL:3]</SEOName> </NB_Store_ProductsInfo><M><NB_Store_ModelInfo><ModelID/><ProductID/><ListOrder></ListOrder><UnitCost>[COL:5]</UnitCost><ModelRef>[COL:1]</ModelRef><Lang>[LANG]</Lang><ModelName>[COL:4]</ModelName><QtyRemaining>-1</QtyRemaining><QtyTrans>0</QtyTrans><QtyTransDate></QtyTransDate><ProductName>[COL:4]</ProductName><PortalID>[PORTALID]</PortalID><Weight>[COL:6]</Weight><Height>0.00</Height><Length>0.00</Length><Width>0.00</Width><Deleted>false</Deleted><QtyStockSet>0</QtyStockSet><DealerCost>0.0000</DealerCost><PurchaseCost>0.0000</PurchaseCost><XMLData /><Extra /><DealerOnly>false</DealerOnly><Allow>0</Allow></NB_Store_ModelInfo></M><I><NB_Store_ProductImageInfo><ImageID/><ProductID/><ImagePath>C:\inetpub\Host\DNN Development\DNN_TEST\Portals\0\productimages\[COL:7]</ImagePath><ListOrder>1</ListOrder><Hidden>false</Hidden><Lang>[LANG]</Lang><ImageDesc>[COL:4]</ImageDesc><ImageURL>/Portals/0/productimages/[COL:7]</ImageURL></NB_Store_ProductImageInfo></I><D/><C><NB_Store_ProductCategoryInfo><ProductID/><CategoryID/><CategoryName>[COL:8]</CategoryName><ParentName>[COL:9]</ParentName></NB_Store_ProductCategoryInfo></C><R/><options/></P> and try to import these test items:
PN001;Korte omschrijving Prod 01;Beschrijving Prod 01;Prod 01;1100;1150;nopic.jpg;hoofddcat_subcat;Hoofdcat_01;Bescrhijving Cate 01;Subcat
PN002;Korte omschrijving Prod 02;Beschrijving Prod 02;Prod 02;1200;1250;nopic.jpg;hoofddcat_subcat;Hoofdcat_01;Bescrhijving Cate 01;
PN003;Korte omschrijving Prod 03;Beschrijving Prod 03;Prod 03;1300;1350;nopic.jpg;Hoofdcat_01;;Bescrhijving Hoofdcat 01;
Anyone can point me in the right direction, I''m not finding any logging during this proces. It's runnning into this error without a catch i think.
Regards, Machiel Broekman