<?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: st_geometry can bine a long value only for insert into a long column in Python Snippets Questions</title>
    <link>https://community.esri.com/t5/python-snippets-questions/st-geometry-can-bine-a-long-value-only-for-insert/m-p/1121185#M696</link>
    <description>&lt;P&gt;I was facing the same issue the reason is I am using the .net which creates string value parameter with&amp;nbsp;&lt;SPAN&gt;OracleDbType.Varchar2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So I did below changes and it works now&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if (((string)value).Length &amp;gt; 4000)&lt;BR /&gt;{&lt;BR /&gt;((OracleParameter)para).OracleDbType = OracleDbType.Clob;&lt;BR /&gt;}&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 30 Nov 2021 10:44:50 GMT</pubDate>
    <dc:creator>ManishGohil</dc:creator>
    <dc:date>2021-11-30T10:44:50Z</dc:date>
    <item>
      <title>st_geometry can bine a long value only for insert into a long column</title>
      <link>https://community.esri.com/t5/python-snippets-questions/st-geometry-can-bine-a-long-value-only-for-insert/m-p/850215#M545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to update the polyline layer using cx_oracle in python script.&lt;/P&gt;&lt;P&gt;i read the feature details from another layer as sde.stastext and convert it as a&amp;nbsp; below format string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i insert the string value as bind value using sde.stgeomerty com&lt;/P&gt;&lt;P&gt;&amp;nbsp;['LINESTRING ( 9291551.34660000 4187266.23730000, 9291554.47640000 4187256.33170000, 9291591.01820000 4187201.97960000, 9291608.79190000 4187176.35690000, 9291662.02290000 4187099.15550000, 9291816.12480000 4187073.98510000, 9291848.38680000 4187068.90750000, 9291884.79440000 4187062.83460000, 9291887.57330000 4187079.48540000, 9292095.47260000 4187047.47530000, 9292097.25390000 4187058.05110000)', u'S-16059']&lt;/P&gt;&lt;P&gt;then I inserted using the following sql statement and got the error.&lt;/P&gt;&lt;P&gt;insert into SUGGESTION_LINE ( shape,SUGGESTION_ID, objectid) values ( sde.st_geometry(:1,3),:2,:3,sde.gdb_util.next_rowid('gis','SUGGESTION_LINE'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error:&amp;nbsp;DatabaseError: ORA-01461: can bind a LONG value only for insert into a LONG column&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but the same script worked fine with point layers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Dec 2019 11:29:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-snippets-questions/st-geometry-can-bine-a-long-value-only-for-insert/m-p/850215#M545</guid>
      <dc:creator>venaktesa_kumarNatarajan</dc:creator>
      <dc:date>2019-12-09T11:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: st_geometry can bine a long value only for insert into a long column</title>
      <link>https://community.esri.com/t5/python-snippets-questions/st-geometry-can-bine-a-long-value-only-for-insert/m-p/1121185#M696</link>
      <description>&lt;P&gt;I was facing the same issue the reason is I am using the .net which creates string value parameter with&amp;nbsp;&lt;SPAN&gt;OracleDbType.Varchar2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So I did below changes and it works now&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if (((string)value).Length &amp;gt; 4000)&lt;BR /&gt;{&lt;BR /&gt;((OracleParameter)para).OracleDbType = OracleDbType.Clob;&lt;BR /&gt;}&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 10:44:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-snippets-questions/st-geometry-can-bine-a-long-value-only-for-insert/m-p/1121185#M696</guid>
      <dc:creator>ManishGohil</dc:creator>
      <dc:date>2021-11-30T10:44:50Z</dc:date>
    </item>
  </channel>
</rss>

