help to better help you:

Please: add always Joomla / JEM version and details to your posts, so we can try to reproduce your issue!

Events import error

Events import error

7 years 5 months ago - 7 years 5 months ago
#23748
Hello,
I am getting the following error when importing a events.csv file.

1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '48,0)' at line 3 SQL=INSERT INTO `#__jem_cats_event_relations` (`catid`,`itemid`,`ordering`) VALUES (,48,0)

My events.csv does not have any locid or categories.
Can I import events.csv without locid and categories and set them later in the component ?
Thanks
Database Version 5.5.52-MariaDB
Database Collation utf8_general_ci
Database Connection Collation utf8mb4_unicode_ci
PHP Version 7.0.19 FPM/FastCGI
Web Server Apache
WebServer to PHP Interface fpm-fcgi
Joomla! Version Joomla! 3.6.5 Stable
JEM 2.2.0
Last edit: 7 years 5 months ago by designt.

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

Re: Events import error

7 years 5 months ago
#23749
hi designt,

from what earlier version are you importing events? A JEM version? Eventlist?

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

Re: Events import error

7 years 5 months ago
#23753
Hi,
Many thanks for your update.
I just follow these steps to get an empty events.csv file.
I install Jem 2.2.0 and export the events to get an empty events.csv file.
Then I just fill these fields in the csv file:
dates, enddates, title, alias, created_by, modified, modified_by, version, checked_out, checked_out_time and published
I left empty all the other fields including locid and categories.
Importing this file I get the error.
Is something missing ?
Database Version 5.5.52-MariaDB
Database Collation utf8_general_ci
Database Connection Collation utf8mb4_unicode_ci
PHP Version 7.0.19 FPM/FastCGI
Web Server Apache
WebServer to PHP Interface fpm-fcgi
Joomla! Version Joomla! 3.6.5 Stable
JEM 2.2.0

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

Re: Events import error

7 years 5 months ago
#23754
Because excel has sometimes a really strange comportement, I would propose as following:
1. Create one event and export that, so you can see not only the field names but the rules of the field too.
In my experience excel changes sometimes things.
2. To try create an other event in excel with the same rules. Save it as csv.
3. Import it and have a look, if an error occurs.
4. When all is ok, then you can input a lot of events in excel and then import them.

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

Time to create page: 0.595 seconds