Skip to Content Skip to Menu

I have a problem importing user from a csv file

  • pdeleeuw
  • pdeleeuw
  • ONLINE
  • Posts: 47
  • Thanks: 4
  • Karma: 3
1 day 3 hours ago #342272 by pdeleeuw
Hi, yes I am using excel and exporting as csv UTF-8 with commas.

However, in this case, for trying out the ""-wrapping, I also used MSword as Excel created double ""s.
It looked like this: """firstname""", """lastname""" etc.
I then needed word to enter " instead of """.

I then copied and pasted the text into the csv-file.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 49680
  • Thanks: 8494
  • Karma: 1465
22 hours 32 minutes ago #342274 by krileon
You shouldn't need to manually edit the CSV. Export 1 row so the structure is there, then open in your CSV editor with the settings provided earlier and you should be all set. I've retested imports and am not having any issues at this time so I'm guessing your CSV editor settings maybe not quite right. We provide JSON and XML import/export as well that you could try. I'm not sure what more to suggest as I don't own Excel only LibreOffice Calc and Google Sheets have been explicitly tested.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 49680
  • Thanks: 8494
  • Karma: 1465
21 hours 36 minutes ago #342277 by krileon
Some improvements were made to the CSV functions in PHP 7.4 that we had not yet adopted. I'm looking into replacing our usage with a more up to date usage that will eliminate formatting concerns, but I'm still not yet entirely sure that's what is causing your problem.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 49680
  • Thanks: 8494
  • Karma: 1465
21 hours 22 minutes ago #342278 by krileon
The improvements are pending review, but if you've already updated to CB 2.11.0 I can install the patched build for you if you PM backend login credentials to give it a try. I've re-tested import/export with the improvements and confirmed working. Basically just switched from manually row handling to fputcsv, which will be a lot more reliable when exporting.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The following user(s) said Thank You: pdeleeuw

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

  • pdeleeuw
  • pdeleeuw
  • ONLINE
  • Posts: 47
  • Thanks: 4
  • Karma: 3
2 hours 24 minutes ago - 2 hours 22 minutes ago #342291 by pdeleeuw
Thank you so much!
Yes I have the 2.11.0 version installed.

Now I tried to change the semicola I automatically have in my csv-exports into kommas by using the text-editor instead of word.
It worked.
So I am happy now. :-)

Something else I changed in the saving options was from UTF-8 with BOM (whatever that is) to only UTF-8
You might know if that could have had any impact...

Thank you, problem solved.

Kind regards
Peter
Last edit: 2 hours 22 minutes ago by pdeleeuw.

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

Moderators: beatnantkrileon
Powered by Kunena Forum