View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Support us on Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - [SOLVED] Customer CSV import error - ProjeQtOr
 
 

[SOLVED] Customer CSV import error

More
01 Dec 2015 15:08 - 01 Dec 2015 15:08 #1 by stewski
Hi
This may just be me being blind but I can't see whats wrong with my CSV import file.
I get this error
SQLSTATE[HY000]: General error: 1364 Field 'name' doesn't have a default value

Here is the first 2 lines of the CSV.
id,customer name,type of customer,customer code,payment deadline,tax,tax number,closed,description,designation,street,complement,zip code,city,state,country
1,EDS,98,EDS,,,,,,Our address,Our Road,Our town,,Our city,Our State,UK

anyone with any ideas, most appreciated...
Last edit: 01 Dec 2015 15:08 by stewski.

Please Log in or Create an account to join the conversation.

More
01 Dec 2015 15:38 #2 by babynus
Replied by babynus on topic Customer CSV import error
Most possibly you tried to import with current language different from the one you used to export.
So, using "translated names" instead of codes for columns fails.
You should provide codes instead of captions, "name" instead of "customer name"
When importing, click on small help icon beside element select list to have description of expected fields.

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

More
01 Dec 2015 16:09 #3 by stewski
Replied by stewski on topic Customer CSV import error
Thanks for the support babynus, I have already tried with codes and/or captions getting the same result each time.
I tried again with codes, just in case but no luck, It looks like a simple CSV I must be missing something...

I still get the error "SQLSTATE[HY000]: General error: 1364 Field 'name' doesn't have a default value" but it looks like there is a value in the file, very odd...

Please Log in or Create an account to join the conversation.

More
01 Dec 2015 17:10 #4 by babynus
Replied by babynus on topic Customer CSV import error
What is strange is that it is a MySql error, but you should have a ProjeQtOr error before because name is mandatory.

Check your file in text mode : maybe you have extra empty lines. Just remove them.

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

More
01 Dec 2015 17:22 #5 by stewski
Replied by stewski on topic Customer CSV import error
Hi Babynus
I've tried creating dos/mac csv, I've created a 2 line file by hand in notepad++, I cant think that it is actually the CSV that is causing the problem.
This is what I used:

id,name,idClientType,clientCode,idPaymentDelay,taxPct,numTax,idle,description,designation,street,complement,zip,city,state,country
1,EDS,98,EDS001,,,,,,Waterside BP,16XX Perhshore,Kings Norton,,Birmingham,WM,UK

Still comes back with:
SQLSTATE[HY000]: General error: 1364 Field 'name' doesn't have a default value

Could it be a bug/regression in version 5.1.4?

Please Log in or Create an account to join the conversation.

More
01 Dec 2015 17:28 #6 by babynus
Replied by babynus on topic Customer CSV import error

Could it be a bug/regression in version 5.1.4?

I really don't think because it works fine on my side.

1) check separator character as defined in Global parameters screen. I think default is ; and you try to use , so issue may come from this.
2) try and export a list of existing items : you'll get correct format as exported files can be imported.

Babynus
Administrator of ProjeQtOr web site
The following user(s) said Thank You: stewski

Please Log in or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.041 seconds

Cookies settings

×

Functional Cookies

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Please login to see yours activities!

Other cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.