<?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 EXTPROC returns errors in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/extproc-returns-errors/m-p/785806#M1790</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oracle RDBMS 12.1.0.5 &lt;/P&gt;&lt;P&gt;Oracle Enterprise Linux 6.6 &lt;/P&gt;&lt;P&gt;SDE 10.2.2 Patch 290200 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We use ST_GEOEMTRY and ST functions, mostly ST_INTERSECTS.&amp;nbsp; EXTPROC is configured and works well -- most of the time.&amp;nbsp; We have this weird problem, when for no reason that I can find (ANYWHERE!), a feature class that participates in an overlay function, returns an error.&amp;nbsp; They are always reference layers, meaning they are static and don't change.&amp;nbsp; To avoid a production issue, I've created a health check program that creates a dynamic SQL that does an ST_INTERSECT with two layers; I then interrogate the log file and send an email when an error happens.&amp;nbsp; The error:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt; color: #3334ca;"&gt;ORA-28579: network error during callback from external procedure agent&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt; color: #3334ca;"&gt;ORA-06512: at "SDE.ST_GEOMETRY_SHAPELIB_PKG", line 100&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt; color: #3334ca;"&gt;ORA-06512: at "SDE.ST_RELATION_OPERATORS", line 340&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The fix is to recreate the feature class from ArcCatalog, and then insert rows from the bad feature class, and generate statistics.&amp;nbsp; I've asked the SDE Administrators to keep the erroring feature class so that I can use it for testing, looking for differences.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Last night the health check ran without an issue. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Today, I have two feature classes to work with:&amp;nbsp; COUNTIES and COUNTIES_OLD.&amp;nbsp;&amp;nbsp; I know that COUNTIES is the current, valid FC, and COUNTIES_OLD was one that returned an error on 1/11/2016.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My first test showed that the reverse is true.&amp;nbsp; While COUNTIES was fine at 3am, it now returns an error.&amp;nbsp; While COUNTIES_OLD returned an error on 1/11/2016 it returns fine today.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oddly enough, I see two different errors returning from COUNTIES, depending on an embedded literal: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt; color: #3334ca;"&gt;select ' fc: COUNTIES' , a.owner, a.numwells&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt; color: #3334ca;"&gt;from asr a left outer join COUNTIES c&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt; color: #3334ca;"&gt;ON sde.st_intersects (c.shape, a.shape) = 1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt; color: #3334ca;"&gt;select ' fc: COUNTIES' , a.owner, a.numwells&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt; color: #3334ca;"&gt;*&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt; color: #3334ca;"&gt;ERROR at line 1:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt; color: #3334ca;"&gt;ORA-20011: Error generating shape. (SHAPE1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt; color: #3334ca;"&gt;ORA-06512: at "SDE.ST_GEOMETRY_SHAPELIB_PKG", line 100&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt; color: #3334ca;"&gt;ORA-06512: at "SDE.ST_RELATION_OPERATORS", line 340&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #303030;"&gt;Removing the literal, with the same SQL (and this is the error I usually get, even with the literal): &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt; color: #3334ca;"&gt;select a.owner, a.numwells&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt; color: #3334ca;"&gt;from asr a left outer join COUNTIES c&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt; color: #3334ca;"&gt;ON sde.st_intersects (c.shape, a.shape) = 1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt; color: #3334ca;"&gt;select a.owner, a.numwells&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt; color: #3334ca;"&gt;*&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt; color: #3334ca;"&gt;ERROR at line 1:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt; color: #3334ca;"&gt;ORA-28579: network error during callback from external procedure agent&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt; color: #3334ca;"&gt;ORA-06512: at "SDE.ST_GEOMETRY_SHAPELIB_PKG", line 100&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt; color: #3334ca;"&gt;ORA-06512: at "SDE.ST_RELATION_OPERATORS", line 340&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #303030;"&gt;This was odd enough behavior, not this makes it weirder.&amp;nbsp; We had an open ticket with ESRI support, who asked for our data.&amp;nbsp; After much back and forth, the answer was 'something in your data - recreate'.&amp;nbsp; I also have an open SR with Oracle support.&amp;nbsp; They've been very thorough and helpful, looking at traces, statistics, but their ultimate answer was to go back to the vendor.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #303030;"&gt;Maybe someone has an idea or has experienced similar issues.&amp;nbsp; Any insights are appreciates.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Feb 2016 17:55:01 GMT</pubDate>
    <dc:creator>SherrieKubis</dc:creator>
    <dc:date>2016-02-10T17:55:01Z</dc:date>
    <item>
      <title>EXTPROC returns errors</title>
      <link>https://community.esri.com/t5/geodatabase-questions/extproc-returns-errors/m-p/785806#M1790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oracle RDBMS 12.1.0.5 &lt;/P&gt;&lt;P&gt;Oracle Enterprise Linux 6.6 &lt;/P&gt;&lt;P&gt;SDE 10.2.2 Patch 290200 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We use ST_GEOEMTRY and ST functions, mostly ST_INTERSECTS.&amp;nbsp; EXTPROC is configured and works well -- most of the time.&amp;nbsp; We have this weird problem, when for no reason that I can find (ANYWHERE!), a feature class that participates in an overlay function, returns an error.&amp;nbsp; They are always reference layers, meaning they are static and don't change.&amp;nbsp; To avoid a production issue, I've created a health check program that creates a dynamic SQL that does an ST_INTERSECT with two layers; I then interrogate the log file and send an email when an error happens.&amp;nbsp; The error:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt; color: #3334ca;"&gt;ORA-28579: network error during callback from external procedure agent&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt; color: #3334ca;"&gt;ORA-06512: at "SDE.ST_GEOMETRY_SHAPELIB_PKG", line 100&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt; color: #3334ca;"&gt;ORA-06512: at "SDE.ST_RELATION_OPERATORS", line 340&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The fix is to recreate the feature class from ArcCatalog, and then insert rows from the bad feature class, and generate statistics.&amp;nbsp; I've asked the SDE Administrators to keep the erroring feature class so that I can use it for testing, looking for differences.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Last night the health check ran without an issue. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Today, I have two feature classes to work with:&amp;nbsp; COUNTIES and COUNTIES_OLD.&amp;nbsp;&amp;nbsp; I know that COUNTIES is the current, valid FC, and COUNTIES_OLD was one that returned an error on 1/11/2016.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My first test showed that the reverse is true.&amp;nbsp; While COUNTIES was fine at 3am, it now returns an error.&amp;nbsp; While COUNTIES_OLD returned an error on 1/11/2016 it returns fine today.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oddly enough, I see two different errors returning from COUNTIES, depending on an embedded literal: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt; color: #3334ca;"&gt;select ' fc: COUNTIES' , a.owner, a.numwells&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt; color: #3334ca;"&gt;from asr a left outer join COUNTIES c&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt; color: #3334ca;"&gt;ON sde.st_intersects (c.shape, a.shape) = 1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt; color: #3334ca;"&gt;select ' fc: COUNTIES' , a.owner, a.numwells&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt; color: #3334ca;"&gt;*&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt; color: #3334ca;"&gt;ERROR at line 1:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt; color: #3334ca;"&gt;ORA-20011: Error generating shape. (SHAPE1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt; color: #3334ca;"&gt;ORA-06512: at "SDE.ST_GEOMETRY_SHAPELIB_PKG", line 100&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt; color: #3334ca;"&gt;ORA-06512: at "SDE.ST_RELATION_OPERATORS", line 340&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #303030;"&gt;Removing the literal, with the same SQL (and this is the error I usually get, even with the literal): &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt; color: #3334ca;"&gt;select a.owner, a.numwells&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt; color: #3334ca;"&gt;from asr a left outer join COUNTIES c&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt; color: #3334ca;"&gt;ON sde.st_intersects (c.shape, a.shape) = 1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt; color: #3334ca;"&gt;select a.owner, a.numwells&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt; color: #3334ca;"&gt;*&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt; color: #3334ca;"&gt;ERROR at line 1:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt; color: #3334ca;"&gt;ORA-28579: network error during callback from external procedure agent&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt; color: #3334ca;"&gt;ORA-06512: at "SDE.ST_GEOMETRY_SHAPELIB_PKG", line 100&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt; color: #3334ca;"&gt;ORA-06512: at "SDE.ST_RELATION_OPERATORS", line 340&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #303030;"&gt;This was odd enough behavior, not this makes it weirder.&amp;nbsp; We had an open ticket with ESRI support, who asked for our data.&amp;nbsp; After much back and forth, the answer was 'something in your data - recreate'.&amp;nbsp; I also have an open SR with Oracle support.&amp;nbsp; They've been very thorough and helpful, looking at traces, statistics, but their ultimate answer was to go back to the vendor.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #303030;"&gt;Maybe someone has an idea or has experienced similar issues.&amp;nbsp; Any insights are appreciates.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2016 17:55:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/extproc-returns-errors/m-p/785806#M1790</guid>
      <dc:creator>SherrieKubis</dc:creator>
      <dc:date>2016-02-10T17:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: EXTPROC returns errors</title>
      <link>https://community.esri.com/t5/geodatabase-questions/extproc-returns-errors/m-p/785807#M1791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Before too long I'm proving myself wrong--somewhat. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The literal doesn't have anything to do with the different errors.&amp;nbsp; The first execution returns&lt;/P&gt;&lt;P&gt;ORA-20011: Error generating shape. (SHAPE1)&lt;/P&gt;&lt;P&gt;ORA-06512: at "SDE.ST_GEOMETRY_SHAPELIB_PKG", line 100&lt;/P&gt;&lt;P&gt;ORA-06512: at "SDE.ST_RELATION_OPERATORS", line 340&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the same session the next error is: &lt;/P&gt;&lt;P&gt;ORA-28579: network error during callback from external procedure agent&lt;/P&gt;&lt;P&gt;ORA-06512: at "SDE.ST_GEOMETRY_SHAPELIB_PKG", line 100&lt;/P&gt;&lt;P&gt;ORA-06512: at "SDE.ST_RELATION_OPERATORS", line 340&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sometimes we see just the second error.&amp;nbsp; My mistake earlier is that I was testing scenario one, then scenario two immediately.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It doesn't change the problem much, in the for an unknown reason, this error pops up.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2016 19:00:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/extproc-returns-errors/m-p/785807#M1791</guid>
      <dc:creator>SherrieKubis</dc:creator>
      <dc:date>2016-02-10T19:00:41Z</dc:date>
    </item>
  </channel>
</rss>

