Database error while importing data from csv to mysql database using cmsimport free version
Hi Richard,
I've been trying to import event records using cmsimport free version but I got a database error while importing saying 'Error while importing data for property 'eventCity' :You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '*) FROM CMSDATATYPE WHERE NODEID = -88 AND (DBTYPE= 'Nvarchar' OR DBTYPE='Ntext'' at line 1'.
Log shows:
ExecuteReader ---> MySql.Data.MySqlClient.MySqlException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '0) =0' at line 1 at MySql.Data.MySqlClient.MySqlStream.OpenPacket() at MySql.Data.MySqlClient.NativeDriver.ReadResult(UInt64& affectedRows, Int64& lastInsertId) at MySql.Data.MySqlClient.MySqlDataReader.GetResultSet() at MySql.Data.MySqlClient.MySqlDataReader.NextResult() at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior) at MySql.Data.MySqlClient.MySqlHelper.ExecuteReader(MySqlConnection connection, MySqlTransaction transaction, String commandText, MySqlParameter[] commandParameters, Boolean ExternalConn) at MySql.Data.MySqlClient.MySqlHelper.ExecuteReader(String connectionString, String commandText, MySqlParameter[] commandParameters) at umbraco.DataLayer.SqlHelpers.MySql.MySqlHelper.ExecuteReader(String commandText, MySqlParameter[] parameters) at umbraco.DataLayer.SqlHelper`1.ExecuteReader(String commandText, IParameter[] parameters) --- End of inner exception stack trace --- at umbraco.DataLayer.SqlHelper`1.ExecuteReader(String commandText, IParameter[] parameters) at CMSImportLibrary.DAL.ScheduledTask.() at CMSImportLibrary.Scheduler.Scheduler.ExecuteScheduledTasks()
Database error while importing data from csv to mysql database using cmsimport free version
Hi Richard,
I've been trying to import event records using cmsimport free version but I got a database error while importing saying 'Error while importing data for property 'eventCity' :You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '*) FROM CMSDATATYPE WHERE NODEID = -88 AND (DBTYPE= 'Nvarchar' OR DBTYPE='Ntext'' at line 1'.
Log shows:
ExecuteReader ---> MySql.Data.MySqlClient.MySqlException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '0) =0' at line 1 at MySql.Data.MySqlClient.MySqlStream.OpenPacket() at MySql.Data.MySqlClient.NativeDriver.ReadResult(UInt64& affectedRows, Int64& lastInsertId) at MySql.Data.MySqlClient.MySqlDataReader.GetResultSet() at MySql.Data.MySqlClient.MySqlDataReader.NextResult() at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior) at MySql.Data.MySqlClient.MySqlHelper.ExecuteReader(MySqlConnection connection, MySqlTransaction transaction, String commandText, MySqlParameter[] commandParameters, Boolean ExternalConn) at MySql.Data.MySqlClient.MySqlHelper.ExecuteReader(String connectionString, String commandText, MySqlParameter[] commandParameters) at umbraco.DataLayer.SqlHelpers.MySql.MySqlHelper.ExecuteReader(String commandText, MySqlParameter[] parameters) at umbraco.DataLayer.SqlHelper`1.ExecuteReader(String commandText, IParameter[] parameters) --- End of inner exception stack trace --- at umbraco.DataLayer.SqlHelper`1.ExecuteReader(String commandText, IParameter[] parameters) at CMSImportLibrary.DAL.ScheduledTask.() at CMSImportLibrary.Scheduler.Scheduler.ExecuteScheduledTasks()
Please help me to solve the issue.
Thanks,
Victoria
Hi Victoria,
Sorry to say but MySql is not supported so it is very well possible that it is throwing erros.
Best,
Richard
Richard,
Does cmsimport professional version support data import to the MySql database?
Thanks again,
Victoria
Hi Victoria,
No sorry MySql is not supported at all since my knowledge about MySql is limited.
Best,
Richard
is working on a reply...