cbt
wading in the water Posts:26
|
09-09-2009 07:30 AM |
|
Just ran an import and am getting the following error. There are 1534 users in the file and each of them is throwing the same error:
DataSprings.DNN.Modules.UserImport.UserImportProcess,DataSprings.DNN.Modules.UserImport |
Interactive User Import Log: importing:'Initial User Import';
build:'2.0.0.26141';
logging disabled for this import - you can enable logging within the import options for a detailed view of the import process.;
Sucessfully Loaded File w/ Row Count:'1534';
**** Error attempting to add record:1 Object reference not set to an instance of an object. at DotNetNuke.Security.Membership.AspNetMembershipProvider.UpdateUserMembership(UserInfo user) at DotNetNuke.Security.Membership.AspNetMembershipProvider.UpdateUser(UserInfo user) at DotNetNuke.Entities.Users.UserController.UpdateUser(Int32 portalId, UserInfo objUser) at DataSprings.DNN.Modules.UserImport.UserImportProcess.DoUserImport()
|
|
|
|
|
David To
river guide Posts:2719
|
09-09-2009 07:51 AM |
|
HI, can you provide an example of your data? Like the first two lines of your CSV/TXT/XLS and what fields are being mapped to what? Thanks. Or you can use the Contact Us on the left and shoot an email along with your import file so we can examine it. -- David |
|
|
|
|
cbt
wading in the water Posts:26
|
09-09-2009 09:38 AM |
|
I can do that. Here's one more piece of info. I just ran it again with a bar delimited file and logging on. It failed again on all records, but there is a message at the end of the log that says: Display Name: ****NO USERNAME**** This record will not be processed because there is no username! Either select a username column or use the auto create username feature; total records imported:1535; The funny thing is that I have a UserName field mapped in my definition. Does that help point us in the right direction? |
|
|
|
|
Candace
river guide Posts:2431
|
09-09-2009 10:11 AM |
|
Hi. Are you using Dynamic Registration to register/set up profiles? Usernames & passwords are considered credentials and you map there through the DNN Core Integration section in Dynamic Registration. If you try to map it when you edit the field under Advanced Field Options, you will get this error. Try it and let us know what happens. Thanks! -- Candace |
|
|
|
|
David To
river guide Posts:2719
|
09-09-2009 12:18 PM |
|
HI, already resolved this issue with Craig through email. He needed to map the email fields and also make his password more complex to satisfy the requirement of his website setup. -- David |
|
|
|
|
cbt
wading in the water Posts:26
|
09-09-2009 01:13 PM |
|
Just to close the loop on this... It turns out that it was the password policy for DNN that was messing things up. The passwords that were being imported did not meet the requirements of the policy and were therefore failing. I temporarily loosened my password policy, and then the import worked fine.
Thanks David!
P.S. DataSprings may have the best/fastest user support of any company I've ever worked with. Thank you. |
|
|
|
|
Stephanie Murphy
skipping stones Posts:5
|
03-16-2010 09:26 AM |
|
I'm having the exact same issue, but I'm not sure from the posts how to fix it.
I am also using dynamic registration and I have it set up so that the email address is mapped to the user name.
Thanks! |
|
|
|
|
cbt
wading in the water Posts:26
|
03-16-2010 09:37 AM |
|
In my case, I had to edit web.config to change the password policy settings. Look in web.config for minRequiredPasswordLength. There are other properties there that you may have to change too (e.g. minRequiredNonalphanumericCharacters). After that, you may have to go to the Host Settings and restart the application in order for DNN to pick-up the changes. Hopefully, your import will work after that. |
|
|
|
|
Stephanie Murphy
skipping stones Posts:5
|
03-16-2010 09:50 AM |
|
Thanks for responding. I don't think my password policy is the issue. I am more interested in how you mapped the email/userid fields when using Dynamic Registration. Thanks again!! |
|
|
|
|
David To
river guide Posts:2719
|
03-17-2010 09:31 AM |
|
HI, if you have the user's email address as the username also, then I guess in your import file file, you could have two columns (username, emailladdress) and both of these columns would be identical (they both contain the email address). During the import step, simply map username to username and emailaddress to emailaddress and I think you'll be good to go since both columns are identical. -- David |
|
|
|
|
Stephanie Murphy
skipping stones Posts:5
|
03-18-2010 04:43 AM |
|
That's what I tried when I got the errors above. I also tried eliminating the user name and a non-email username. I was hoping it was a configuration error because we are trying to use both dynamic registration and user import. |
|
|
|
|
David To
river guide Posts:2719
|
03-30-2010 12:04 PM |
|
HI, this is in direct relation to the issue with Dynamic Registration settings and I believe we've been corresponding with Chad Nash on this issue as well. Here's a quick recap: I just wanted to follow up with you on this issue. I did post an update to the product forums with my findings… Basically we need to enable a feature when you have this turned on in the web.config to force the user to enter their existing password first. -- Chad |
|
|
|
|
Stephanie Murphy
skipping stones Posts:5
|
03-31-2010 05:39 AM |
|
I ended up getting this to work by changing the 'requiresquestionandanswer' setting to false and then making both the corresponding question and answer fields not required.
I do need this setting set to true eventually. I'll try again once the this new feature is turned on. However, I think I need a way to load the question and answer on import. Otherwise the required fields aren't populated which is probably causing the 'Object reference not set to an instance of an object' error. |
|
|
|
|