<?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>topic Re: insert.execute() writes truncated strings in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/insert-execute-writes-truncated-strings/m-p/294525#M16875</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you using the 9.3.1 terminal service pack (SP2)?&amp;nbsp; If not, you should upgrade to that first.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Jun 2012 15:27:13 GMT</pubDate>
    <dc:creator>VinceAngelo</dc:creator>
    <dc:date>2012-06-19T15:27:13Z</dc:date>
    <item>
      <title>insert.execute() writes truncated strings</title>
      <link>https://community.esri.com/t5/data-management-questions/insert-execute-writes-truncated-strings/m-p/294524#M16874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi to all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using Oracle 11g (64 bit) on Linux and SDE 9.3.1 (32 bit) on Windows Server 2003 SP2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In my Java application I want to add features to my SDE layer but string fields seems to be not correctly handled.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my layer I have a VARCHAR2(32 bytes) field and every time I write a value its last character get lost (e.g. I want to insert 'username' but in my table I found 'usernam').&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I use SeRow.setString(index,string) and Inser.execute() for doing my job.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone help me?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Flavio&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2012 12:23:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/insert-execute-writes-truncated-strings/m-p/294524#M16874</guid>
      <dc:creator>FlavioPompermaier</dc:creator>
      <dc:date>2012-06-19T12:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: insert.execute() writes truncated strings</title>
      <link>https://community.esri.com/t5/data-management-questions/insert-execute-writes-truncated-strings/m-p/294525#M16875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you using the 9.3.1 terminal service pack (SP2)?&amp;nbsp; If not, you should upgrade to that first.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2012 15:27:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/insert-execute-writes-truncated-strings/m-p/294525#M16875</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2012-06-19T15:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: insert.execute() writes truncated strings</title>
      <link>https://community.esri.com/t5/data-management-questions/insert-execute-writes-truncated-strings/m-p/294526#M16876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes I did it. However this error occurs on every sde installation, from 8.3 to 9.3.1..Maybe it's related to the column definition..maybe sde doesn't like VARCHAR2(32 bytes) in oracle..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2012 09:20:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/insert-execute-writes-truncated-strings/m-p/294526#M16876</guid>
      <dc:creator>FlavioPompermaier</dc:creator>
      <dc:date>2012-06-20T09:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: insert.execute() writes truncated strings</title>
      <link>https://community.esri.com/t5/data-management-questions/insert-execute-writes-truncated-strings/m-p/294527#M16877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's more likely to be linked to your character set, but this is really something to address with&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tech Support.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2012 09:41:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/insert-execute-writes-truncated-strings/m-p/294527#M16877</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2012-06-20T09:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: insert.execute() writes truncated strings</title>
      <link>https://community.esri.com/t5/data-management-questions/insert-execute-writes-truncated-strings/m-p/294528#M16878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My db encoding is AL32UTF8 in one db and in another is WE8MSWIN1252.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2012 13:30:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/insert-execute-writes-truncated-strings/m-p/294528#M16878</guid>
      <dc:creator>FlavioPompermaier</dc:creator>
      <dc:date>2012-06-20T13:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: insert.execute() writes truncated strings</title>
      <link>https://community.esri.com/t5/data-management-questions/insert-execute-writes-truncated-strings/m-p/294529#M16879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Flavio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having exactly the same problem with stings being truncated via SeRow.setString(index,string). I just wondered if you found a solution for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It was working fine with SDE 9.1 on Oracle 10g but we've just upgraded to SDE 10.1 and have found this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next stop is Tech Support, but just thought I'd see how you got on first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Adam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Nov 2014 10:52:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/insert-execute-writes-truncated-strings/m-p/294529#M16879</guid>
      <dc:creator>AdamWasiak</dc:creator>
      <dc:date>2014-11-14T10:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: insert.execute() writes truncated strings</title>
      <link>https://community.esri.com/t5/data-management-questions/insert-execute-writes-truncated-strings/m-p/294530#M16880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just thought I'd share my solution, in case anyone else has this problem in the future.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem was actually caused by conflicting class files. While we had the 10.1 sdk jar files on the class path, what we didn't notice immediately was that the JAVA_HOME was set to an old installation of java that came with ArcIMS, which in turn had old 9.1 sdk jar files in the lib/ext folder. Interestingly most of our system appeared to work fine like this, with the one exception as reported. Simply moving JAVA_HOME to a fresh install of Java that had nothing to do with ArcIMS (and hence no ESRI jar files in lib/ext) fixed the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, if you are having this problem, take a look in $JAVA_HOME/lib/ext and see if there are any ESRI jar files conflicting with your classpath (or look for multiple sdk versions on your classpath).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps someone in the future.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Adam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 11:46:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/insert-execute-writes-truncated-strings/m-p/294530#M16880</guid>
      <dc:creator>AdamWasiak</dc:creator>
      <dc:date>2014-12-05T11:46:37Z</dc:date>
    </item>
  </channel>
</rss>

