Skip to main content
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:42 AM UTC

Bugs, Issues and Errors: 9.7.03.02 (G302 1012_1) - ORACLE Driver Error [-38]

9.7.03.02 (G302 1012_1) - ORACLE Driver Error [-38]

Author: claudio.palladini@cortislentini.it (Claudio)

Hello, during fetching DSPs from repository, I got this error from IDF:

I/O function: S, mode: 0, on file/table: UFORM index: 1 >= ORA-01406: fetched column value was truncated ORACLE Driver Error [-38]: Select driver function failed. RDBMS have no problems, it is happened after saving of a DSP...any hint?Confused Thanks all Regards Claudio

20 replies

Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:42 AM UTC

9.7.03.02 (G302 1012_1) - ORACLE Driver Error [-38]

Author: claudio.palladini@cortislentini.it (Claudio)

Hello, during fetching DSPs from repository, I got this error from IDF:

I/O function: S, mode: 0, on file/table: UFORM index: 1 >= ORA-01406: fetched column value was truncated ORACLE Driver Error [-38]: Select driver function failed. RDBMS have no problems, it is happened after saving of a DSP...any hint?Confused Thanks all Regards Claudio

Hello Peter, thanks for the suggestions. Even though there seems to be a change in Uniface between U96 and U97. Since this problem didn't occur in U96. And Uniface version is the only change I have made (I switched from U96 to U97). Everything else is the same - the same Oracle client, the same Oracle server, the same Data... My table is really very small. Only 4 columns: CHAR(36 CHAR), VARCHAR2(100 CHAR), INTERVAL DAY(2) TO SECOND(6), INTERVAL DAY(2) TO SECOND(6). There are only 2 rows in the table. I changed the sql from "select * from..." to "select first_column from...". The first column is always full of data, it's kind of uuid. So NLS_LENGTH_SEMANTICS shouldn't be a problem here. It seems to me, that those "interval" fields are problem form U97. Kind regards, Zdeněk Socha


Author: sochaz (zdenek.socha@fullsys.cz)
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:42 AM UTC

9.7.03.02 (G302 1012_1) - ORACLE Driver Error [-38]

Author: claudio.palladini@cortislentini.it (Claudio)

Hello, during fetching DSPs from repository, I got this error from IDF:

I/O function: S, mode: 0, on file/table: UFORM index: 1 >= ORA-01406: fetched column value was truncated ORACLE Driver Error [-38]: Select driver function failed. RDBMS have no problems, it is happened after saving of a DSP...any hint?Confused Thanks all Regards Claudio

01406 errors are usually caused by an error in the NLS setup for Oracle and Uniface or a mismatch between actual definition for tables in the Oracle database and the definitions Uniface expects based upon the used Oracle connector options. For the NLS setup there is an explanation on the points to watch for: Explanation via bug 28891 - Uniface , Oracle and Oracle setting NLS_LENGTH_SEMANTICS http://unifaceinfo.com/fixes/issuelist/28891.php   For the Uniface SQL workbench there are limitations like no LOB fields in the workbench. Unicode in the workbench is only possible when using $def_charset=UTF8 and Unicode fonts.   You can also check the Oracle support site for known Oracle issues. If this does not help I advice to log a case with Uniface support.   Peter Beugel


Author: PBeugel (peter.beugel@uniface.com)
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:42 AM UTC

9.7.03.02 (G302 1012_1) - ORACLE Driver Error [-38]

Author: claudio.palladini@cortislentini.it (Claudio)

Hello, during fetching DSPs from repository, I got this error from IDF:

I/O function: S, mode: 0, on file/table: UFORM index: 1 >= ORA-01406: fetched column value was truncated ORACLE Driver Error [-38]: Select driver function failed. RDBMS have no problems, it is happened after saving of a DSP...any hint?Confused Thanks all Regards Claudio

Hello, seems to me like a bug in Uniface 9.7... I have just migrated our very simple application from U96 to 9.7.02.02 (G202 0713_1) and I'm facing the same problem... One of the first commands is a very simple sql/data "select * from my_table" ... in U96 this is ok, but in Uniface 9.7.02 it fails with this in a log file: I/O function: Q, mode: 7, on driver: ORA ORA-01406: znaky načtené hodnoty sloupce byly zkráceny ORACLE Driver Error [-28]: sql driver function (SQL Workbench or sql Proc instruction) failed. ORA-01406: znaky načtené hodnoty sloupce byly zkráceny ORACLE Driver Error [-28]: sql driver function (SQL Workbench or sql Proc instruction) failed. Any help? Zdeněk Socha EDIT: After some googling.... I have resolved the issue by changing the sql from "select * from my_table" into "select my_column from my_table". It seems like Uniface declares too small buffer and/or wrong datatype for some columns (in my case there are some columns of datatype "INTERVAL DAY(2) TO SECOND(6)").


Author: sochaz (zdenek.socha@fullsys.cz)
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:42 AM UTC

9.7.03.02 (G302 1012_1) - ORACLE Driver Error [-38]

Author: claudio.palladini@cortislentini.it (Claudio)

Hello, during fetching DSPs from repository, I got this error from IDF:

I/O function: S, mode: 0, on file/table: UFORM index: 1 >= ORA-01406: fetched column value was truncated ORACLE Driver Error [-38]: Select driver function failed. RDBMS have no problems, it is happened after saving of a DSP...any hint?Confused Thanks all Regards Claudio

gianni said
Yes, we are...it's a forum to discuss potential issues... Sometimes they are confirmed, sometimes not...when confirmed a bug must be opened. Gianni  

Hope it will be confirmed...or not! Regards Claudio I'm still waiting for your mail with samples Wink


Author: Claudio (claudio.palladini@cortislentini.it)
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:42 AM UTC

9.7.03.02 (G302 1012_1) - ORACLE Driver Error [-38]

Author: claudio.palladini@cortislentini.it (Claudio)

Hello, during fetching DSPs from repository, I got this error from IDF:

I/O function: S, mode: 0, on file/table: UFORM index: 1 >= ORA-01406: fetched column value was truncated ORACLE Driver Error [-38]: Select driver function failed. RDBMS have no problems, it is happened after saving of a DSP...any hint?Confused Thanks all Regards Claudio

Claudio said
gianni said
Claudio said ... what I'm hoping is to have official support, for this kind of problems...  
Claudio, this forum is put in place to enable communications and exchange of informations. Procedures to have official support are listed on this site into the "support" menu avilable on main page. You should open a case, providing proper description and a way to reproduce the issue. Gianni  
Thanks for the hint. Just a clarification, we are under: Uniface Development -> Uniface 9 -> Bugs, Issues and Errors Regards Claudio  

Yes, we are...it's a forum to discuss potential issues... Sometimes they are confirmed, sometimes not...when confirmed a bug must be opened. Gianni


Author: gianni (gianni.sandigliano@unifacesolutions.com)
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:42 AM UTC

9.7.03.02 (G302 1012_1) - ORACLE Driver Error [-38]

Author: claudio.palladini@cortislentini.it (Claudio)

Hello, during fetching DSPs from repository, I got this error from IDF:

I/O function: S, mode: 0, on file/table: UFORM index: 1 >= ORA-01406: fetched column value was truncated ORACLE Driver Error [-38]: Select driver function failed. RDBMS have no problems, it is happened after saving of a DSP...any hint?Confused Thanks all Regards Claudio

gianni said
Claudio said ... what I'm hoping is to have official support, for this kind of problems...  
Claudio, this forum is put in place to enable communications and exchange of informations. Procedures to have official support are listed on this site into the "support" menu avilable on main page. You should open a case, providing proper description and a way to reproduce the issue. Gianni  

Thanks for the hint. Just a clarification, we are under: Uniface Development -> Uniface 9 -> Bugs, Issues and Errors Regards Claudio


Author: Claudio (claudio.palladini@cortislentini.it)
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:42 AM UTC

9.7.03.02 (G302 1012_1) - ORACLE Driver Error [-38]

Author: claudio.palladini@cortislentini.it (Claudio)

Hello, during fetching DSPs from repository, I got this error from IDF:

I/O function: S, mode: 0, on file/table: UFORM index: 1 >= ORA-01406: fetched column value was truncated ORACLE Driver Error [-38]: Select driver function failed. RDBMS have no problems, it is happened after saving of a DSP...any hint?Confused Thanks all Regards Claudio

Claudio said ... what I'm hoping is to have official support, for this kind of problems...  

Claudio, this forum is put in place to enable communications and exchange of informations. Procedures to have official support are listed on this site into the "support" menu avilable on main page. You should open a case, providing proper description and a way to reproduce the issue. Gianni


Author: gianni (gianni.sandigliano@unifacesolutions.com)
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:42 AM UTC

9.7.03.02 (G302 1012_1) - ORACLE Driver Error [-38]

Author: claudio.palladini@cortislentini.it (Claudio)

Hello, during fetching DSPs from repository, I got this error from IDF:

I/O function: S, mode: 0, on file/table: UFORM index: 1 >= ORA-01406: fetched column value was truncated ORACLE Driver Error [-38]: Select driver function failed. RDBMS have no problems, it is happened after saving of a DSP...any hint?Confused Thanks all Regards Claudio

gianni said Claudio, What have you done is implying Oracle driver uses CLOB/BLOB in the same identical way as it was using LONG/LONG RAW before but unfortunately I cannot give any support on this. The official procedure to be followed after gaining access somehow to a corrupted repo is: - export object(s): in your case components for sure but the whole repo is not a bad idea. - recreate the repo using available scripts - reimport object(s) The experience you've passed through is very unusual; I feel something is wrong there. Could you please share these infos to enable a more detailed analysis: - Uniface full version (patch level installed) - Uniface Oracle driver version used - Uniface Oracle driver configuration - Oracle client full version (patch level installed) - Oracle server full version (patch level installed) Gianni  

Gianni, I really appreciate your help, but what I'm hoping is to have official support, for this kind of problems. - Uniface Full Version (in the subject): "9.7.03.02 (G302 1012_1)" - Uniface Oracle driver version used: "ORA = U6.3" (hoping this is what you ask for, if I understand) - Uniface Oracle driver version config: "fv, dhfr, disable rowid" (hoping this is what you ask for, if I understand) - Oracle client: "Oracle Instant Client 10.2.0.5.0 - 32-bit" (I need to verify) - Oracle Server: "Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production" Uniface and Oracle RDBMS are on the same machine, but I'm pretty sure this is not an issue. You are right! It's never a good idea not follow the official procedures, but I suspect that Uniface has problems when saving CLOB/LONG after a copy/paste. In fact, saving data with an Oracle editor, the problem in the data was fixed. Next time, though I sincerely hope that never happen again, I will export the repository to make it available to the official support. Really Thanks Regards Claudio


Author: Claudio (claudio.palladini@cortislentini.it)
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:42 AM UTC

9.7.03.02 (G302 1012_1) - ORACLE Driver Error [-38]

Author: claudio.palladini@cortislentini.it (Claudio)

Hello, during fetching DSPs from repository, I got this error from IDF:

I/O function: S, mode: 0, on file/table: UFORM index: 1 >= ORA-01406: fetched column value was truncated ORACLE Driver Error [-38]: Select driver function failed. RDBMS have no problems, it is happened after saving of a DSP...any hint?Confused Thanks all Regards Claudio

Claudio, What have you done is implying Oracle driver uses CLOB/BLOB in the same identical way as it was using LONG/LONG RAW before but unfortunately I cannot give any support on this. The official procedure to be followed after gaining access somehow to a corrupted repo is: - export object(s): in your case components for sure but the whole repo is not a bad idea. - recreate the repo using available scripts - reimport object(s) The experience you've passed through is very unusual; I feel something is wrong there. Could you please share these infos to enable a more detailed analysis: - Uniface full version (patch level installed) - Uniface Oracle driver version used - Uniface Oracle driver configuration - Oracle client full version (patch level installed) - Oracle server full version (patch level installed) Gianni


Author: gianni (gianni.sandigliano@unifacesolutions.com)
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:42 AM UTC

9.7.03.02 (G302 1012_1) - ORACLE Driver Error [-38]

Author: claudio.palladini@cortislentini.it (Claudio)

Hello, during fetching DSPs from repository, I got this error from IDF:

I/O function: S, mode: 0, on file/table: UFORM index: 1 >= ORA-01406: fetched column value was truncated ORACLE Driver Error [-38]: Select driver function failed. RDBMS have no problems, it is happened after saving of a DSP...any hint?Confused Thanks all Regards Claudio

Problem solved as in the previous case. Simply manually editing the TPLACTUAL on DB.... Thanks Regards Claudio


Author: Claudio (claudio.palladini@cortislentini.it)