cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Integration Suite - SQL Updata via JDBC Error

cp11
Explorer
179

Hello SAP Experts,

I am trying to trigger the following SQL in an I-Flow via the JDBC Adapter

 

 

UPDATE 
    TelHdr 
SET 
    STATUS=31 
WHERE 
    SND = xyz AND 
    TELEID = 1

 

 

Unfortunately, I always get the following error: 

 

  • "org.springframework.dao.DataIntegrityViolationException: PreparedStatementCallback; Zeichenfolgen- oder Binärdaten würden abgeschnitten.; nested exception is com.microsoft.sqlserver.jdbc.SQLServerException: Zeichenfolgen- oder Binärdaten würden abgeschnitten., cause: com.microsoft.sqlserver.jdbc.SQLServerException: Zeichenfolgen- oder Binärdaten würden abgeschnitten."

 

  • Error translated into English: ‘String or binary data would be truncated.’

 

This error means that the written value is too large for the written field.

The same update query was also executed with the same user directly in MS SQL Studio where it worked without problems, which means that the update query with these values and the user with the assigned roles was also checked and should work.

 

Procedure:

Step 1. JDBC Data Source Creation:

JDBC Data Source in the Integration Suite is set up and it is also possible to read values via a select.

The JDBC driver for Microsoft SQL Server was also changed from version 8.2.2 to 8.4.1 for test purposes, which unfortunately did not change the update behaviour.

cp11_0-1731595031008.png

Step 2. I-Flow Creation

- Set SQL Statement in the Content Modifier Body

cp11_1-1731595074540.png

Info: Reading this View via a regular select also works without problems with the same procedure, only the update runs on error

JDBC Adapter with the JDBC Data Source Alias

cp11_2-1731595111343.png

Error Appears: 

cp11_3-1731595148164.png

Has anyone already had this problem or has an idea of what to check?

Many thanks in advance.

 

Best regards

Chris P.

 

 

 

 

Accepted Solutions (0)

Answers (0)