Troubleshooting
Problem
Symptom
Resolving The Problem
Starting with version 1.1.6.0, the IBM i Access Client Solutions data transfer was enhanced to allow for the truncation of character or overflow of numeric data, but these features are not enabled by default.
To enable the character truncation feature, you modify the AcsConfig.properties file by adding the following:
# com.ibm.iaccess.dataxfer.jdbc.AllowCharacterTruncation# false (default) = Character strings larger than the column length will cause an exception and a message 'Data in Row x, Column y is too long for the IBM i field (fieldname)'
# true = This setting allows data transfer to truncate character data
com.ibm.iaccess.dataxfer.jdbc.AllowCharacterTruncation=true
Attempting to upload a number that is larger or longer in the PC file than the size of the numeric field on the IBM i fails with the following message:
Data in Row x, Column x is too long for the IBM i field (FieldName). MSGDB0036 - Server returned SQL error (Data type mismatch).
To enable the numeric truncation and overflow feature, modify the AcsConfig.properties file by adding the following:
# com.ibm.iaccess.dataxfer.jdbc.AllowNumericOverflow# false (default) = numeric overflow/underflow results in an exception on upload and warning with the largest/smallest value for the field used on download
# true = numeric overflow/underflow results in the largest/smallest value for the field used with no exceptions or warnings on upload or download
com.ibm.iaccess.dataxfer.jdbc.AllowNumericOverflow=true
You can also suppress truncation warning messages in the transfer request by clicking the "Properties" button in the request, selecting the "Display" tab, and clearing the checkbox on "Display warnings during data transfer".
The default location of the AcsConfig.properties file is in the same location as the acsbundle.jar file. Click the About item in the IBM i Access Client Solutions Help menu to display the location of the acsbundle.jar file.
Related Information
Was this topic helpful?
Document Information
Modified date:
17 November 2024
UID
nas8N1021406