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

 


 
Microsoft Gold Certified Partner - DNN Benefactor

DotNetNuke Powered! 


Friday, November 21, 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: UserImport not working for new users

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

08/27/2008 7:07 PM Alert 
user import with users to update works OK but new users never get written. Below is debug of a one name r aimport. It's read in and written to a sql table, the readback and a child process adds a new user which is the debug below. What am I missing. And after adding a new user with the base properties can I continue adding addtional properties or do I have to initiate via using the user ID? SelectImport was the sql query which read 1 row correctly. The module export is attached. (I've added some comments below as ***)

***here's the beginning of adding a new user
# 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
*** here's where it seems to go wrong
*** but as you see there is no error msg.
* Created User -1
# If '[MyNewContactID.Error,Action]' <> ''
* '' <> '' = False
* Failed: Skipping child actions.



+ Else

***** other profile fields can't be added

+ Assignment: Assign <UserInfo> variable 'FirstName' to '[vFirstName,SelectImport]'.
# Executing
# Unabled to assign User Info Property (FirstName) Profile Assignment:System.InvalidCastException: Unable to cast object of type 'System.String' to type 'DotNetNuke.Entities.Users.UserInfo'. at Bi4ce.Modules.xList.MessageActions.Handle_Assignment(String strAction, String strName, String strValue, Int32 iAssignmentType, DataSet& sharedds, Debugger& Debugger, String& SwitchConfigurations)



+ Assignment: Assign <UserInfo> variable 'LastName' to '[vLastName,SelectImport]'.
# Executing
# Unabled to assign User Info Property (LastName) Profile Assignment:System.InvalidCastException: Unable to cast object of type 'System.String' to type 'DotNetNuke.Entities.Users.UserInfo'. at Bi4ce.Modules.xList.MessageActions.Handle_Assignment(String strAction, String strName, String strValue, Int32 iAssignmentType, DataSet& sharedds, Debugger& Debugger, String& SwitchConfigurations)
<img src='http://www.bi4ce.com/desktopmodules/ntforums/images/emoticons/shocked.gif' height='20' width='20' border='0' title='Shocked' align='absmiddle'>

Attachment: content.ListX.LynxImport.xml

robert_chumley
Please Wait...
Posts:595

08/29/2008 4:36 PM Alert 
Most of the time First and Last name are reqired to save. Are you assigning these values?
Thanks,
Rob

Robert Chumley
r2integrated (formally bi4ce)
ewalker
Superweight
Posts:219

08/29/2008 4:44 PM Alert 
In your if block, it looks like you are missing FirstName and LastName. DNN will not let you save your record without those parameters set. You will also need to set the DisplayName.

In your else block, everything looks pretty good from the outset.

I hope this helps.

-Eric

Eric Walker - R2integrated
svedire
Cruiserweight
Posts:107

08/29/2008 5:17 PM Alert 
Hi,

I think you also need to do something very similar to DisplayName for the <UserInfo> object in addition to the above mentioned fields. Usually, I assign it to [Firstname,Form] [LastName,Form].

Hope this helps.

Thanks,
Sindura
R2integrated
LenLatimer
Featherweight
Posts:14

08/29/2008 8:30 PM Alert 
Found the answer!!! I was assigning user name to Profile UserName. When I changed it to :
# Assignment: Assign <UserInfo> variable 'Username' to '[vUserName,SelectImport]'.
Username, rather than UserName, it started working. Is this suppose to be case sensitive? (SelectImport was a sql query return vUserName). If so, why isn't it in the manual?
You are not authorized to post a reply.
Forums > Bi4ce.Modules.ListX > General > UserImport not working for new users



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