<?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>idea GP tool to export one feature at a time and log problem features in an error table in ArcGIS Pro Ideas</title>
    <link>https://community.esri.com/t5/arcgis-pro-ideas/gp-tool-to-export-one-feature-at-a-time-and-log/idi-p/1414986</link>
    <description>&lt;P&gt;&lt;EM&gt;ArcGIS Pro 2.9.5; Oracle 18c 10.7.1 EGDB; SDE.ST_GEOEMTRY:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I have an issue with an annotation FC:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;In 2.9.12, I get a "shape integrity error" when I open the attribute table and navigate to the last row. But I don't have that problem in 2.9.5.&lt;/LI&gt;&lt;LI&gt;When I copy/paste the FC to an EGDB or FDGB via Catalog, I get a&amp;nbsp;"shape integrity error".&lt;/LI&gt;&lt;LI&gt;If I export using Feature Class to Feature Class, only 72 of 800 features get exported.&lt;OL class="lia-list-style-type-lower-alpha"&gt;&lt;LI&gt;Same problem with the Append tool in a blank annotation FC.&lt;/LI&gt;&lt;LI&gt;If I exclude row 73 via a selection, then&amp;nbsp;357 rows of 799 get exported; still, not all features get exported.&lt;/LI&gt;&lt;LI&gt;I haven't had any luck trying to exclude additional rows in the 355-360 range. Still, only ~355 rows get exported.&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;The Repair Geometry tool doesn't support SDE.ST_GEOEMTRY.&lt;/LI&gt;&lt;LI&gt;Esri Case #03605230 - &lt;STRIKE&gt;What is CopyMultiple?&lt;/STRIKE&gt;&lt;SPAN&gt; (Catalog copy/paste shape integrity error)&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;It seems like some rows are broken and preventing GP tools from working properly.&lt;/P&gt;&lt;P&gt;I think it would help to have a GP tool that would export the features one-by-one to a FC. If the tool comes across an error, it could log the issue for each feature in a separate error table, and then move on to the next feature. That would be more useful than the behaviour in other GP tools that produce a generic error (no indication of what rows are the problem) or only exporting a subset of the rows.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I don't have the skills to do this in Python.&lt;/P&gt;&lt;P&gt;I got the idea from this Oracle PL/SQL function:&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/72778525/find-problem-xml-values-by-catching-xmltable-errors-in-custom-function" target="_self"&gt;Find problem XML values by catching XMLTABLE() errors in custom function&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 26 Apr 2024 13:49:18 GMT</pubDate>
    <dc:creator>Bud</dc:creator>
    <dc:date>2024-04-26T13:49:18Z</dc:date>
    <item>
      <title>GP tool to export one feature at a time and log problem features in an error table</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/gp-tool-to-export-one-feature-at-a-time-and-log/idi-p/1414986</link>
      <description>&lt;P&gt;&lt;EM&gt;ArcGIS Pro 2.9.5; Oracle 18c 10.7.1 EGDB; SDE.ST_GEOEMTRY:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I have an issue with an annotation FC:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;In 2.9.12, I get a "shape integrity error" when I open the attribute table and navigate to the last row. But I don't have that problem in 2.9.5.&lt;/LI&gt;&lt;LI&gt;When I copy/paste the FC to an EGDB or FDGB via Catalog, I get a&amp;nbsp;"shape integrity error".&lt;/LI&gt;&lt;LI&gt;If I export using Feature Class to Feature Class, only 72 of 800 features get exported.&lt;OL class="lia-list-style-type-lower-alpha"&gt;&lt;LI&gt;Same problem with the Append tool in a blank annotation FC.&lt;/LI&gt;&lt;LI&gt;If I exclude row 73 via a selection, then&amp;nbsp;357 rows of 799 get exported; still, not all features get exported.&lt;/LI&gt;&lt;LI&gt;I haven't had any luck trying to exclude additional rows in the 355-360 range. Still, only ~355 rows get exported.&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;The Repair Geometry tool doesn't support SDE.ST_GEOEMTRY.&lt;/LI&gt;&lt;LI&gt;Esri Case #03605230 - &lt;STRIKE&gt;What is CopyMultiple?&lt;/STRIKE&gt;&lt;SPAN&gt; (Catalog copy/paste shape integrity error)&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;It seems like some rows are broken and preventing GP tools from working properly.&lt;/P&gt;&lt;P&gt;I think it would help to have a GP tool that would export the features one-by-one to a FC. If the tool comes across an error, it could log the issue for each feature in a separate error table, and then move on to the next feature. That would be more useful than the behaviour in other GP tools that produce a generic error (no indication of what rows are the problem) or only exporting a subset of the rows.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I don't have the skills to do this in Python.&lt;/P&gt;&lt;P&gt;I got the idea from this Oracle PL/SQL function:&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/72778525/find-problem-xml-values-by-catching-xmltable-errors-in-custom-function" target="_self"&gt;Find problem XML values by catching XMLTABLE() errors in custom function&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2024 13:49:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/gp-tool-to-export-one-feature-at-a-time-and-log/idi-p/1414986</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2024-04-26T13:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: GP tool to export one feature at a time and log problem features in a log table</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/gp-tool-to-export-one-feature-at-a-time-and-log/idc-p/1414997#M29667</link>
      <description>&lt;P&gt;Short-term workaround:&lt;/P&gt;&lt;P&gt;I don't work much with Annotation FCs, but could you run a SearchCursor to read it from the existing (broken) table, and an InsertCursor to write it one record at a time to a new table?&lt;/P&gt;&lt;P&gt;You could use a try/except block to skip the broken rows &amp;amp; print a message about them.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 20:44:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/gp-tool-to-export-one-feature-at-a-time-and-log/idc-p/1414997#M29667</guid>
      <dc:creator>MErikReedAugusta</dc:creator>
      <dc:date>2024-04-24T20:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: GP tool to export one feature at a time and log problem features in an error table</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/gp-tool-to-export-one-feature-at-a-time-and-log/idc-p/1416214#M29748</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/569244"&gt;@MErikReedAugusta&lt;/a&gt;&amp;nbsp;Thanks for the Python suggestion. I'm much better with SQL than with Python, so I ended up writing a PL/SQL function to flag problem rows in a SQL query.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I wrote a custom function that uses&amp;nbsp;ST_INTERSECTS() to check if each feature can be used in a spatial SQL operation. If there is an error, then the function returns "error" to the query's resultset.&amp;nbsp;&lt;SPAN&gt;That let me flag the problem row.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Stack Overflow:&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/78393781/find-row-with-problem-shape-sde-st-geometry-spatial-type" target="_self" rel="nofollow noopener noreferrer"&gt;Find row with problem shape (SDE.ST_GEOMETRY spatial type)&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;with&lt;/SPAN&gt; &lt;SPAN class=""&gt;function&lt;/SPAN&gt; check_shape(anno_shape sde.st_geometry, boundary_shape sde.st_geometry) &lt;SPAN class=""&gt;return&lt;/SPAN&gt; varchar2 
&lt;SPAN class=""&gt;is&lt;/SPAN&gt;
    v_test_result varchar2(&lt;SPAN class=""&gt;10&lt;/SPAN&gt;);
&lt;SPAN class=""&gt;begin&lt;/SPAN&gt;
    &lt;SPAN class=""&gt;select&lt;/SPAN&gt;
        sde.st_intersects (boundary_shape, anno_shape)
    &lt;SPAN class=""&gt;into&lt;/SPAN&gt;     
        v_test_result
    &lt;SPAN class=""&gt;from&lt;/SPAN&gt;
        dual;
    &lt;SPAN class=""&gt;return&lt;/SPAN&gt; &lt;SPAN class=""&gt;'no error'&lt;/SPAN&gt;;
exception
    &lt;SPAN class=""&gt;when&lt;/SPAN&gt; others &lt;SPAN class=""&gt;then&lt;/SPAN&gt;
        &lt;SPAN class=""&gt;return&lt;/SPAN&gt; &lt;SPAN class=""&gt;'error'&lt;/SPAN&gt;;
&lt;SPAN class=""&gt;end&lt;/SPAN&gt;;

&lt;SPAN class=""&gt;select&lt;/SPAN&gt; 
    anno.objectid, 
    anno.shape &lt;SPAN class=""&gt;as&lt;/SPAN&gt; anno_shape,
    check_shape(anno.shape, boundary.shape) &lt;SPAN class=""&gt;as&lt;/SPAN&gt; check_shape
&lt;SPAN class=""&gt;from&lt;/SPAN&gt; 
    city.boundary boundary
&lt;SPAN class=""&gt;cross&lt;/SPAN&gt; &lt;SPAN class=""&gt;join&lt;/SPAN&gt;     
    infrastr.gcsm_hc_anno anno
&lt;SPAN class=""&gt;where&lt;/SPAN&gt; 
    check_shape(anno.shape, boundary.shape) &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;'error'&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_0-1714196544893.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/102378i35654095727E2649/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bud_0-1714196544893.png" alt="Bud_0-1714196544893.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Apr 2024 05:45:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/gp-tool-to-export-one-feature-at-a-time-and-log/idc-p/1416214#M29748</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2024-04-27T05:45:49Z</dc:date>
    </item>
  </channel>
</rss>

