I get an error message that can be seen below when I prepare the request:
SQL-ERR:Preparation of INSERT Query Failed: Ora-Err: -1756 ORA-01756: quoted string not properly terminated
The request is as follows:
EXEC SQL declare INSDTA STATEMENT; EXEC SQL PREPARE INSDTA FROM :stmt; if(sqlca.sqlcode < 0) { DEBUG_LOG("SQL-ERR:Preparation of INSERT Query Failed: Ora-Err: %d %s\n", sqlca.sqlcode, sqlca.sqlerrm.sqlerrmc); DEBUG_LOG("The Query is: %s\n", insertQuery); return PREPARATION_FAILURE; }
And the request from the log file:
INSERT INTO TABLENAME VALUES ( '00000001', '00004467', '0', 'R56565', '03404395', '20110601', '999', '87685785', '2017-01-10-23.05.26.000000', 'KRMAR', 'KRMAR', '77898878', '03', '00000001', 'U', '01', '1', '87685785', 'R56565', '89878988', 'cde', 'Andr\351', ' andre.rae@abc.com ', '01192966', 'HGJF', '00000000', '', '900429', '1', '98989897', '', 'Aargau / Solothurn (CIC)', 'VCD', 'RB9', 'VCD', 'Observer' )
If I performed it manually, the data will be inserted.
But programmatically, it fails for many such lines.
Please note that the input text for the insert query contains special characters such as é , ü .
In addition, this same program works great on a development system. But in production, he fails.
Manual installation works correctly.
What could be the problem? Any configuration issues?
Thanks in advance.