Join our DNN Community    (Newsletter, Tips, Tricks and Forums for DNN Skins & Modules)

 


 
Microsoft Gold Certified Partner - DNN Benefactor

DotNetNuke Powered! 


Monday, December 01, 2008 Register · Login · Contact · Search:  
Company Solutions Portfolio Contact
Forums
General
The ever-powerful ListX module forum. Post your questions, new configuration ideas and reviews.
Subject: User Import Error

You are not authorized to post a reply.   
Author Messages
LenLatimer
Featherweight
Posts:14

08/23/2008 6:23 PM Alert 
I have a CSV with a header and two data records - one is a new user, the second is a exiting one to be updated. I check for the UserID>0 and set the userprofile to the userID else to -1 (if it doesn't exist). I then set other profile properties. On the save I get this error returned:

Username already exists, or password is not long enough for creating a new user. = '' = False

Although I get the error on both saves, the existing user fields are updated properly. Any ideas? The password is longer than 7 and the username for the new one doesn't exist.

Is the "Save" keyword also used for existing users (rather something like update?)

Below are the actions:

# Assignment: Assign <UserInfo> variable to 'Save,myNewContactID'.
# 40. If [myNewContactID.Error,Action] = ''
# 41. Execute Query[UpdateSuccess]: Update Lynx_ImportTest set etc...
# 42. Else
# 43. Execute Query[UpdateError]: etc.
# 44. Else
pauldes
Immortal
Posts:1392

08/24/2008 4:38 PM Alert 
Click the ADD REPLY button and attach your configuration in an XML file. It's kind of hard to determine problems with the limited information. If I had to guess, #40 will NEVER equal true because you don't have single quotes around your left condition. It should be

If '[myNewContactID.Error,Action]' = ''

ListX....makes you look brilliant, even though you're not.
robert_chumley
Please Wait...
Posts:595

08/25/2008 8:44 AM Alert 
Also, make sure there are not other required fields that are not present on your UserInfo object. DNN make not like that.
Thanks,

Robert Chumley
r2integrated (formally bi4ce)
LenLatimer
Featherweight
Posts:14

08/25/2008 5:50 PM Alert 
I've enclosed the module export and csv file. You were right on using the ' - now the exiting user get updated without an error but new users don't. I set to -1, added PortID, UserName, email and Password. The save error comes back as '' but it creates user -1. Here's the debug:

+ If '[vUserID,SelectImport]' = '0'
# '0' = '0' = True
# Passed: Handling child actions.
# Executing
# Assignment: Assign <UserInfo> variable to '-1'.
* Executing
# Assignment: Assign <UserInfo> variable 'PortalID' to '[Portalid,System]'.
* Executing
* Assigned UserInfo (PortalID)
* Assigned Property (PortalID)
# Assignment: Assign <UserInfo> variable 'UserName' to '[vUserName,SelectImport]'.
* Executing
* Assigned Property (UserName)
# Assignment: Assign <UserInfo> variable 'Email' to '[vEmail,SelectImport]'.
* Executing
* Assigned UserInfo (Email)
* Assigned Membership (Email)
* Assigned Property (Email)
# Assignment: Assign <UserInfo> variable 'Password' to '[vPassword,SelectImport]'.
* Executing
* Assigned Membership (Password)
* Assigned Property (Password)
# Assignment: Assign <UserInfo> variable to 'Save,myNewContactID'.
* Executing
* Creating User
* Created User -1
# If '[MyNewContactID.Error,Action]' <> ''
* '' <> '' = False
* Failed: Skipping child actions.

Attachment: lynxImport.ZIP

You are not authorized to post a reply.
Forums > Bi4ce.Modules.ListX > General > User Import Error



ActiveForums 3.6
Latest Post
 
At R2integrated (formerly Bi4ce), we take support seriously.  That's why we support our customers and DNN community with daily monitoring from our experienced engineering team.  We ask that the first step taken is to read the relevant documentation and support forums prior to submitting any questions that may already be available or have been answered.  We ask that you review the documentation that we provide for our products before posting a question.

The Forums are for our customers to chat, exchange ideas and strategies, and submit feedback.  Please be sure to perform keyword searches for previous related forum responses.

To be helpful when submitting a new item, please include the following: 
  1. DNN Version
  2. Module Version
  3. Admin Log Viewer Information
  4. Environment detail: Operating system, .NET framework version, database and version, IIS version, Browser version (if appropriate)
We always try to respond quickly and monitor the forums daily during business hours (EST).  Occasionally, requests for a specific project requirement may not apply for the free support offered. For project specific support please submit via our Information Request form.

Thank you for using our Forums.

Click here to register for the Forums
 
© 2008 by R2integrated (formerly Bi4ce) | DNN® is a registered trademark of DotNetNuke Corporation