<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: SAP Integration Suite - SQL Updata via JDBC Error in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/sap-integration-suite-sql-updata-via-jdbc-error/qaa-p/13938883#M4892580</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you could create a SQL Server Profiler trace to see what is different in the statement from the system. See this note&amp;nbsp;&lt;A href="https://me.sap.com/notes/929031/E" target="_blank"&gt;929031 - Using SQL Server Profiler for JAVA (and ABAP) - SAP for Me&lt;/A&gt;&amp;nbsp;for details on how to do it.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Clas Hortien&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 08:56:09 GMT</pubDate>
    <dc:creator>Clas_Hortien</dc:creator>
    <dc:date>2024-11-15T08:56:09Z</dc:date>
    <item>
      <title>SAP Integration Suite - SQL Updata via JDBC Error</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-integration-suite-sql-updata-via-jdbc-error/qaq-p/13938342</link>
      <description>&lt;P&gt;Hello SAP Experts,&lt;/P&gt;&lt;P&gt;I am trying to trigger the following SQL in an I-Flow via the JDBC Adapter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="sql"&gt;UPDATE 
    TelHdr 
SET 
    STATUS=31 
WHERE 
    SND = xyz AND 
    TELEID = 1&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, I always get the following error:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;"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:&amp;nbsp;Zeichenfolgen- oder Binärdaten würden abgeschnitten."&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Error translated into English: ‘String or binary data would be truncated.’&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This error means that the written value is too large for the written field.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Procedure:&lt;/P&gt;&lt;P&gt;Step 1. JDBC Data Source Creation:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;JDBC Data Source in the Integration Suite is set up and it is also possible to read values via a select.&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;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.&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cp11_0-1731595031008.png"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/191016i8B57D687EAAEC934/image-size/medium?v=v2&amp;amp;px=400" alt="cp11_0-1731595031008.png" title="cp11_0-1731595031008.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Step 2. I-Flow Creation&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;-&amp;nbsp;Set SQL Statement in the Content Modifier Body&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cp11_1-1731595074540.png"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/191017iADA3C8F5D1B3ACE9/image-size/medium?v=v2&amp;amp;px=400" alt="cp11_1-1731595074540.png" title="cp11_1-1731595074540.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;Info: Reading this View via a regular select also works without problems with the same procedure, only the update runs on error&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;JDBC Adapter with the JDBC Data Source Alias&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cp11_2-1731595111343.png"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/191018iB988AFE5A14C36A6/image-size/medium?v=v2&amp;amp;px=400" alt="cp11_2-1731595111343.png" title="cp11_2-1731595111343.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;Error Appears:&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cp11_3-1731595148164.png"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/191019i62A83774127A2AEA/image-size/medium?v=v2&amp;amp;px=400" alt="cp11_3-1731595148164.png" title="cp11_3-1731595148164.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Has anyone already had this problem or has an idea of what to check?&lt;/P&gt;&lt;P&gt;Many thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Chris P.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 07:54:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-integration-suite-sql-updata-via-jdbc-error/qaq-p/13938342</guid>
      <dc:creator>cp11</dc:creator>
      <dc:date>2024-11-15T07:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Integration Suite - SQL Updata via JDBC Error</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-integration-suite-sql-updata-via-jdbc-error/qaa-p/13938883#M4892580</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you could create a SQL Server Profiler trace to see what is different in the statement from the system. See this note&amp;nbsp;&lt;A href="https://me.sap.com/notes/929031/E" target="_blank"&gt;929031 - Using SQL Server Profiler for JAVA (and ABAP) - SAP for Me&lt;/A&gt;&amp;nbsp;for details on how to do it.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Clas Hortien&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 08:56:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-integration-suite-sql-updata-via-jdbc-error/qaa-p/13938883#M4892580</guid>
      <dc:creator>Clas_Hortien</dc:creator>
      <dc:date>2024-11-15T08:56:09Z</dc:date>
    </item>
  </channel>
</rss>

