Feedback
Did this article resolve your question/issue?

   

Article

SQLState '4' returned instead of '01004' with ODBC driver

Information

 
TitleSQLState '4' returned instead of '01004' with ODBC driver
URL Namesqlstate-4-returned-instead-of-01004-with-odbc-driver
Article Number000113206
EnvironmentProduct: Connect/Connect for ODBC, Progress DataDirect for ODBC
Version: All supported versions
OS: All UNIX/Linux
Database: All supported databases
Application: All supported applications
Question/Problem Description
Incorrect SQLState '4' returned instead of SQLState of '01004' with expected 'string data, right truncated' error.
Steps to Reproduce
Clarifying Information
Error MessageSQLSTATE = 4
NATIVE ERROR = 0
MSG = [DataDirect][ODBC 20101 driver]1536072
Defect Number
Enhancement Number
Cause
The message files could not be read, either because they did not exist, the InstallDir setting in the odbc.ini file was not correct, or the driver version did not match the message file version.  This caused the message number 4 to be returned instead of the SQLState 01004.

The message files are rebuilt at the time the driver is rebuilt and they need to match.
Resolution
Make sure the message file exists.
Set InstallDir in the odbc.ini file to the top level driver directory.
If this does not resolve the issue, reinstall (and brand if needed) the driver and matching message file.  
Workaround
Notes
Last Modified Date11/20/2020 7:01 AM
Files
Disclaimer The origins of the information on this site may be internal or external to Progress Software Corporation (“Progress”). Progress Software Corporation makes all reasonable efforts to verify this information. However, the information provided is for your information only. Progress Software Corporation makes no explicit or implied claims to the validity of this information.

Any sample code provided on this site is not supported under any Progress support program or service. The sample code is provided on an "AS IS" basis. Progress makes no warranties, express or implied, and disclaims all implied warranties including, without limitation, the implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or performance of the sample code is borne by the user. In no event shall Progress, its employees, or anyone else involved in the creation, production, or delivery of the code be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability to use the sample code, even if Progress has been advised of the possibility of such damages.