Developer forum

Forum » CMS - Standard features » Import users in usergroup crash in 9.7.5

Import users in usergroup crash in 9.7.5

Hans Kloppenborg
Reply

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:

  1. right click a usergroup in the cms and select "import users"
  2. select a csv file to import and click next
  3. 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
  4. In the next screen we click the "First row in source files contains column names" and leave the rest as is. Click next
  5. 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

 

 


Replies

 
Nicolai Pedersen
Reply

Can you get us some data from the file and a screendump of your setup please. Thanks!

 
Hans Kloppenborg
Reply

Hi Nicolai,

Attached a demo file and screenshots of the steps and crash screen. 

Hope this is what you ment with setup.

crash.png step1.png step2.png step3.png
 
Morten Snedker Dynamicweb Employee
Morten Snedker
Reply

Hi Hans,

I can confirm that it does not work as intended on recent 9.7 solutions, but that it does work on 9.8. We will not be merging the changes from 9.8 to 9.7. Changes inflict PIM and other areas as well, so it quite bulky, hence our hesitance to merge.

A work-around, though not optimal, is to use Data Integration in the case that 9.8 is not an option.

Best regards
Morten Snedker | Helpdesk

 

You must be logged in to post in the forum