Hello,
When we try to use the "import users" option on a user group in the cms version 9.7.5 to import a CSV file we experience a crash at the moment the mapping screen should show.
Steps to reproduce:
- right click a usergroup in the cms and select "import users"
- select a csv file to import and click next
- in the following screen CSV as source file type is preselected, and "import configuration" has only the option "nothing selected", with no other option to select (should there be something else??), click next
- In the next screen we click the "First row in source files contains column names" and leave the rest as is. Click next
- We get a yellow dot net error screen with the message "Object reference not set to an instance of an object." and stacktrace "
[NullReferenceException: Object reference not set to an instance of an object.] Dynamicweb.Ecommerce.Products.Categories.GroupInformation..ctor(Group group) +7 Dynamicweb.Admin.DataImportSetMapping.FilterProductCategoryFieldsFromGroup(ColumnCollection destinationColumns) in E:\Agent\_work\157\s\01 - Applications\Dynamicweb.Admin\DW97\Dynamicweb.Admin\Admin\Module\IntegrationV2\Import\DataImport_SetMapping.aspx.vb:476 Dynamicweb.Admin.DataImportSetMapping.DestinationTableColumns(Mapping mapping, StringBuilder output, Boolean onlyNames) in E:\Agent\_work\157\s\01 - Applications\Dynamicweb.Admin\DW97\Dynamicweb.Admin\Admin\Module\IntegrationV2\Import\DataImport_SetMapping.aspx.vb:453 Dynamicweb.Admin.DataImportSetMapping.GetMappingsDefinition(Mapping mapping, Dictionary`2 options, Boolean showOptionsDialog, Boolean showOptionsWarning) in E:\Agent\_work\157\s\01 - Applications\Dynamicweb.Admin\DW97\Dynamicweb.Admin\Admin\Module\IntegrationV2\Import\DataImport_SetMapping.aspx.vb:362 Dynamicweb.Admin.DataImportSetMapping.InitializeMappingControl(Job job, Mapping mapping) in E:\Agent\_work\157\s\01 - Applications\Dynamicweb.Admin\DW97\Dynamicweb.Admin\Admin\Module\IntegrationV2\Import\DataImport_SetMapping.aspx.vb:227 Dynamicweb.Admin.DataImportSetMapping.Page_Load(Object sender, EventArgs e) in E:\Agent\_work\157\s\01 - Applications\Dynamicweb.Admin\DW97\Dynamicweb.Admin\Admin\Module\IntegrationV2\Import\DataImport_SetMapping.aspx.vb:98 System.Web.UI.Control.OnLoad(EventArgs e) +105 System.Web.UI.Control.LoadRecursive() +67 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3784
"
We could reproduce this error on two sites that currently use 9.7.5, and have tested locally if updating to 9.7.6 would help, but we kept getting this same error. Everything works OK in sites with DW 9.6.x and in DW 9.8.
We noticed that the import seems to have changed from 9.6.x to 9.7, but in 9.8 everything seems almost the same except for the "import configuration" dropdown that has gone.
Should we create an import configuration somewhere in 9.7? Why is the mapping function doing things with ecommerce for a user import? Is there a known solution for this issue that does not involve updating to 9.8?
Greets Hans