cancel
Showing results for 
Search instead for 
Did you mean: 

String or binary data would be truncated

Former Member
0 Kudos

Hi Team,

My interface is FILE to JDBC, we are facing the below issue in the JDBC channel.

Unable to execute statement for table or stored procedure. 'SPName' (Structure 'StatementName_2') due to com.microsoft.sqlserver.jdbc.SQLServerException: String or binary data would be truncated

kindly provide the solution for this error.

Regards

Kiran

Accepted Solutions (1)

Accepted Solutions (1)

JaySchwendemann
Active Contributor
0 Kudos

Please check field lengths of your input data and the corresponding column lengths of database table.

Cheers

Jens

Answers (2)

Answers (2)

former_member182455
Active Contributor
0 Kudos

Hi Kiran,

As maintaind by jen and kumar, this is data related issue, please check with DB team and field length of your input data.

Regards

Srinivas

Former Member
0 Kudos

This is due to table column field length limitation, might be sending more no. of characters for particular field/column in PI.

use sub-string function  to limit the chars in PI and send to DB.