uploading users

Any technical questions (installation, configuration etc) should be posted here!

uploading users

Postby kmcounsell on Wed Nov 12, 2008 8:35 am

I have tried to upload a csv file with user names in one cell and passwords in another. I receive the following error message.
INSERT INTO sitewidepermissions (userid,usertype,adduser,edituser,makelevelzerouser,addplugin,installtemplate,edittemplate,removetemplate,deleted) VALUES (103,'user',,,,,,,,0)

MDB2 Error: syntax error

Problem Executing statement
kmcounsell
Active
 
Posts: 10
Joined: Wed Nov 12, 2008 7:32 am

Re: uploading users

Postby mhughes2k on Wed Nov 12, 2008 8:43 am

It appears that you may have a blank line in the your CSV file.

If you just check that your cursor doesn't move past the last character of the last line it should work.

I'll check the code that validates each line of the CSV, and add some extra validation if necessary to the Community Edition of SIMPLE.
Hope this helps.

M!

Application Developer, LTDU
SIMPLE Project Core Team
(w) http://personal.strath.ac.uk/michaelhughes/
(e) michaelhughes@strath.ac.uk
(twitter): http://twitter.com/mhughes2k
mhughes2k
SIMPLE Core Team
 
Posts: 130
Joined: Tue Jul 01, 2008 12:05 pm
Location: Glasgow

Re: uploading users

Postby kmcounsell on Wed Nov 12, 2008 9:02 am

Tried that. Made sure there were no gaps at the top or bottom of list. No headings either, just student names, user id and password. Also put the cursor inside the last line. Still no good. Here is the error message.
INSERT INTO sitewidepermissions (userid,usertype,adduser,edituser,makelevelzerouser,addplugin,installtemplate,edittemplate,removetemplate,deleted) VALUES (109,'user',,,,,,,,0)

MDB2 Error: syntax error

Problem Executing statement
kmcounsell
Active
 
Posts: 10
Joined: Wed Nov 12, 2008 7:32 am

Re: uploading users

Postby mhughes2k on Wed Nov 12, 2008 2:03 pm

Can you upload the CSV file?
Hope this helps.

M!

Application Developer, LTDU
SIMPLE Project Core Team
(w) http://personal.strath.ac.uk/michaelhughes/
(e) michaelhughes@strath.ac.uk
(twitter): http://twitter.com/mhughes2k
mhughes2k
SIMPLE Core Team
 
Posts: 130
Joined: Tue Jul 01, 2008 12:05 pm
Location: Glasgow


Return to Technical

Who is online

Users browsing this forum: No registered users and 2 guests

cron