PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Can't Import from a CSV file - Keep getting this message

s2Member Plugin. A Membership plugin for WordPress®.

Can't Import from a CSV file - Keep getting this message

Postby mooredb » October 23rd, 2010, 5:21 pm

I am working on creating a test file to import records from a CSV file and I keep getting this error message.

The following errors were encountered during importation:
•Line #1. User ID# "" does NOT belong to an existing User.


I've even tried to copy this format into a test file and I still get the same error message.

"","johnsmith22","","John","Smith","John Smith","john.smith@example.com","","s2member_level2","","","","12/31/2021"

I've even exported the current user accounts and keep the same structure but changed the information and get the same error message.

Can someone email me an example file of what the structure should be?

Thanks.
User avatar
mooredb
Registered User
Registered User
 
Posts: 13
Joined: September 27, 2010
Location: Houston TX

Re: Can't Import from a CSV file - Keep getting this message

Postby Jason Caldwell » October 24th, 2010, 12:12 am

Thanks for reporting this important issue.

This part of the error message that you're receiving... Line #1. User ID# ""
indicates to me that your import file is becoming corrupted, as the double-quotes are being read in as the User ID instead of the empty string they contain. This can happen when slashes are added to your file, for the purposing of escaping special characters.

Please paste this line into the Import field and run a test to see if it succeeds with "1" imported User.
Code: Select all
"","Username","Password","First Name","Last Name","Display Name","email@example.com"
If this test fails, please email me a Dashboard login so I can diagnose the issue for you.
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Can't Import from a CSV file - Keep getting this message

Postby Jason Caldwell » October 26th, 2010, 3:26 am

Thanks for the follow-up.
I just received your email.

After performing some importation tests with:
Code: Select all
"","Username","Password","First Name","Last Name","Display Name","email@example.com"
I found that the importation process is working as expected with s2Member. I noticed in your email that you said, "I'm pasting it into an Excel file". Try pasting it directly into a text editor and then just save it as a CSV file. I've attached a sample CSV file for you.

import-file.csv
(84 Bytes) Downloaded 16 times

Related articles on CSV files:
http://creativyst.com/Doc/Articles/CSV/CSV01.htm
http://en.wikipedia.org/wiki/Comma-separated_values


If all else fails, just paste your data directly into the Import field that is provided by s2Member. In other words, instead of uploading a file, just upload the data itself by pasting it in.
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Can't Import from a CSV file - Keep getting this message

Postby mooredb » October 27th, 2010, 6:39 am

Jason - thanks again,

I'll give that a try. Sounds like that will do the trick. I sort of thought I was doing something wrong.

Thanks again for your help and the follow up!
User avatar
mooredb
Registered User
Registered User
 
Posts: 13
Joined: September 27, 2010
Location: Houston TX


Return to s2Member Plugin

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron