Home › Forums › Calendar Products › Events Calendar PRO › 500 Error for CSV upload
- This topic has 12 replies, 3 voices, and was last updated 9 years, 3 months ago by
Brook.
-
AuthorPosts
-
December 20, 2016 at 11:08 am #1208429
Anne Marie
ParticipantI am not able to upload a csv file and get a 500 error instead. Please advise.
December 21, 2016 at 12:10 pm #1209097Brook
ParticipantHowdy Anne,
I would love to help you with this.
That is certainly strange, I can’t recall seeing that issue before.
Would you mind sharing the CSV file that you are trying to upload? Perhaps there is something in the CSV itself that is causing this glitch. If you would like to keep the CSV file just between you and my team, check the box “set as private reply” in your next response.
Are you able to upload this text CSV file without getting an error? This file was generated by a mock data program. There are three events, each in January 2017 and all have the event category “Test” assigned to them: the-events-calendar-mock-data-generator-events
With that info in hand I should be able to better understand this issue. Cheers!
– Brook
December 22, 2016 at 6:26 am #1209420Anne Marie
ParticipantThis reply is private.
December 27, 2016 at 9:00 am #1210833Anne Marie
ParticipantAny progress on this please? Thanks -AML
January 4, 2017 at 7:49 am #1213118Anne Marie
ParticipantPinging again, please advise -AML
January 5, 2017 at 8:47 am #1213848Brook
ParticipantHowdy Anne Marie,
Sorry for the holiday delay. I hope you had a wonderful one. Our team is getting back and in full swing.
I just tried downloading that CSV, it said it was a private file. So I requested access. Once access is granted I can download and give it a whirl.
Cheers!
– Brook
January 5, 2017 at 10:01 am #1213897Anne Marie
Participantpermission has been granted, please advise if you have trouble. Thanks!
January 6, 2017 at 9:47 am #1214421Brook
ParticipantThank you very much!
I think I see the issue now. There is over 1 million rows in this CSV. There are 31 rows at the top with real venues, then 1,048,542 blank rows that look like this:
,,,,
Then one more row at the very bottom for Dover Downs.
Our importer is going to have trouble parsing 1 million venues at a time. But you probably only meant to import ~30, and it can handle 30 easily.
Are you exporting these from Excel? If so, could you try sorting the columns? This will move blanks rows to the bottom. Ordinarily Excel won’t output blank rows in a CSV, because it has a near infinite number of them. But, when there are a few blank rows, then some actual data, it will output any blank rows in between. Thus by simply sorting this, and moving all data to the top, it will only output the 32 actual rows.
Does that all make sense? Will that work for you? Please let me know.
Cheers!
– Brook
January 6, 2017 at 11:06 am #1214448Anne Marie
ParticipantThanks Brook, what program are you using to view this, I’m not getting this in either excel or notepad… Cheers!
January 6, 2017 at 3:43 pm #1214554Brook
ParticipantHowdy Again,
Good question. I am using Notepad++. It is ugly, but very useful. One of the benefits is that it can handle text files with hundreds of thousands of lines. Most notepad programs are not designed to handle such monstrous files.
If you are not seeing the final line of the test file, I bet your notepad program halts long before hitting the real bottom of the CSV file. It thus stops your computer from crashing, but also means you will not see the full file.
Cheers!
– Brook
January 9, 2017 at 6:16 am #1215044Anne Marie
ParticipantLooks like that worked, thanks!
January 9, 2017 at 7:42 pm #1215517Brook
ParticipantExcellent news! Thanks for getting back.
– Brook
-
AuthorPosts
- The topic ‘500 Error for CSV upload’ is closed to new replies.
