<?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: Oracle view crashes ArcGIS Pro and ArcMap in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/oracle-view-crashes-arcgis-pro-and-arcmap/m-p/1352247#M75441</link>
    <description>&lt;P&gt;In a reply to&amp;nbsp;&lt;A href="https://community.esri.com/t5/geodatabase-questions/create-nil-zero-vertex-geometry/m-p/1352208/highlight/true#M8691" target="_self"&gt;Create NIL (zero vertex) geometry&lt;/A&gt;, I mention that&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://support.esri.com/en-us/knowledge-base/bug-unable-to-define-a-query-layer-in-arcgis-where-the-000011333" target="_self" rel="nofollow noopener noreferrer"&gt;the bug&lt;/A&gt;&amp;nbsp;has been updated. It now suggests that we use the&amp;nbsp;&lt;A href="https://desktop.arcgis.com/en/arcmap/latest/manage-data/using-sql-with-gdbs/st-geometry.htm" target="_self" rel="nofollow noopener noreferrer"&gt;st_geometry constructor&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to convert from subtypes to supertypes. Which seems to work for converting&amp;nbsp;&lt;SPAN&gt;[SDE.ST_POLYFROMTEXT] to&amp;nbsp;[SDE.ST_GEOMETRY].&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But that doesn't help me when c&lt;/SPAN&gt;onverting [ST_POINT] subtype to [ST_GEOMETRY] supertype:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_0-1700599249739.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/86792i8B8EB859DCE9FEAB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bud_0-1700599249739.png" alt="Bud_0-1700599249739.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Nov 2023 21:24:54 GMT</pubDate>
    <dc:creator>Bud</dc:creator>
    <dc:date>2023-11-21T21:24:54Z</dc:date>
    <item>
      <title>Oracle view crashes ArcGIS Pro and ArcMap</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/oracle-view-crashes-arcgis-pro-and-arcmap/m-p/1172078#M54926</link>
      <description>&lt;P&gt;I have a db view in Oracle 18c (EGDB; ST_GEOMETRY):&lt;/P&gt;&lt;PRE&gt;create or replace view startpoint_vw as (&lt;BR /&gt;select&lt;BR /&gt;    objectid,&lt;BR /&gt;    treat(sde.st_startpoint(shape) as sde.st_geometry) as shape --&lt;A href="https://gis.stackexchange.com/a/385767/62572" target="_blank" rel="noopener"&gt;https://gis.stackexchange.com/a/385767/62572&lt;/A&gt;&lt;BR /&gt;    --&lt;A href="https://support.esri.com/en/Technical-Article/000011333" target="_blank" rel="noopener"&gt;https://support.esri.com/en/Technical-Article/000011333&lt;/A&gt;&lt;BR /&gt;from&lt;BR /&gt;    my_owner.sidewalks --14,524 features&lt;BR /&gt;where &lt;BR /&gt;    sde.st_numgeometries(shape) = 1 --The SQL will fail if there are any multi-part features. Temporary workaround: exclude multi-part features from this view.&lt;BR /&gt;)&lt;/PRE&gt;&lt;P&gt;Using Catalog in ArcGIS Pro 2.6.8, I want to &lt;U&gt;right-click --&amp;gt; copy/paste&lt;/U&gt; that view to a FGDB (the view gets pasted as a FC).&lt;/P&gt;&lt;P&gt;Reason: Quickly take a snapshot of the data for geoprocessing purposes, publishing to AGOL as a FC, etc.&lt;/P&gt;&lt;P&gt;Problem: When I paste the view into the FGDB, ArcGIS Pro crashes about 50% of the time.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;When I re-open Pro after the crash, a FC has been created, but not all of the features were inserted. The number of features that&amp;nbsp;&lt;EM&gt;were&lt;/EM&gt; inserted is usually a multiple of 1000 (i.e. 2000, 4000, 8000, etc.).&lt;/LI&gt;&lt;LI&gt;For the other 50% of the time, the view will paste as a FC without issue (all features successfully created).&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I have the same problem when I paste as a FC into SDE (the same environment as the source environment). ArcGIS Pro crashes.&lt;/P&gt;&lt;P&gt;Has anyone had that problem when pasting views? Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 May 2022 14:47:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/oracle-view-crashes-arcgis-pro-and-arcmap/m-p/1172078#M54926</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2022-05-30T14:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro crashes when copying Oracle view to FGDB</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/oracle-view-crashes-arcgis-pro-and-arcmap/m-p/1172088#M54928</link>
      <description>&lt;P&gt;I wondered if the SHAPE column was the problem, since ArcGIS Pro and ArcMap seem to be bad at handling the ST_POINT subtype (even when the TREAT() function is used).&amp;nbsp;ArcGIS Pro and ArcMap seem to do a lot better when the datatype is the ST_GEOMETRY supertype.&lt;/P&gt;&lt;P&gt;So, instead of using the TREAT() function to convert from the ST_POINT subtype to the ST_GEOMETRY supertype, I used a low-tech method: I converted from ST_POINT to &lt;STRONG&gt;binary&lt;/STRONG&gt; to ST_GEOMETRY. Alternatively, converting to text instead of binary would have been an option too.&lt;/P&gt;&lt;PRE&gt;create or replace view startpoint_vw as (&lt;BR /&gt;select&lt;BR /&gt;    objectid,&lt;BR /&gt;    &lt;STRONG&gt;sde.st_geomfromwkb(sde.st_asbinary(&lt;/STRONG&gt;sde.st_startpoint(shape)&lt;STRONG&gt;),26917)&lt;/STRONG&gt; as shape&lt;BR /&gt;from&lt;BR /&gt;    my_owner.sidewalks --14,524 features&lt;BR /&gt;where &lt;BR /&gt;    sde.st_numgeometries(shape) = 1&lt;BR /&gt;)&lt;/PRE&gt;&lt;P&gt;But unfortunately, ArcGIS Pro is still crashing. So I'm not sure what the problem is.&lt;/P&gt;&lt;P&gt;I have the same problem when building the shape from the X &amp;amp; Y coordinates too:&lt;/P&gt;&lt;PRE&gt; sde.st_geometry ('point (' || sde.st_x(sde.st_startpoint(shape)) || ' ' || sde.st_y(sde.st_startpoint(shape)) || ')', 26917) as shape&lt;/PRE&gt;&lt;P&gt;I also tried limiting the query to a small subset of the rows, in case there was a problematic feature somewhere, but that didn't help either. Pro still crashes.&lt;/P&gt;&lt;PRE&gt;create or replace view startpoint_vw as (&lt;BR /&gt;select&lt;BR /&gt;    objectid,&lt;BR /&gt;    sde.st_geomfromwkb(sde.st_asbinary(sde.st_startpoint(shape)),26917) as shape&lt;BR /&gt;from&lt;BR /&gt;    my_owner.sidewalks --14,524 features&lt;BR /&gt;where &lt;BR /&gt;    sde.st_numgeometries(shape) = 1&lt;BR /&gt;    &lt;STRONG&gt;and rownum &amp;lt;= 1000&lt;/STRONG&gt;&lt;BR /&gt;)&lt;/PRE&gt;&lt;P&gt;I’m all out of ideas. And quite frustrated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 17:35:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/oracle-view-crashes-arcgis-pro-and-arcmap/m-p/1172088#M54928</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2022-05-11T17:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro crashes when copying Oracle view to FGDB</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/oracle-view-crashes-arcgis-pro-and-arcmap/m-p/1178092#M55605</link>
      <description>&lt;P&gt;I also (sometimes) have the same issue when simply trying to add the view to the map. The map crashes.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Sometimes, the view crashes ArcMap 10.7.1 and ArcGIS Pro 2.6.8 — when I add the view to the map. Other times, the exact same view works fine. It doesn’t crash.&lt;/P&gt;&lt;P&gt;It seems to go in cycles for me. It works for a few hours or days, then it doesn’t. Then it works again.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I tried creating a new FC — by copy/pasting it in Catalog. I thought maybe there was an issue with the FC. But that didn't work either. The map still crashes.&lt;/P&gt;&lt;PRE&gt;create or replace view bc_atn_copy_vw as (
select /*+ INDEX (bc_atn_copy atn_bc_copy_idx) */ --https://support.esri.com/en/technical-article/000009658
    cast(rownum as number(38,0)) as rownum_unique_id,
    st_startpoint(shape) as shape
from
    infrastr.bc_atn_copy
where
    st_startpoint(shape) is not null --https://stackoverflow.com/a/59581129/5576771
)    &lt;/PRE&gt;</description>
      <pubDate>Fri, 27 May 2022 20:40:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/oracle-view-crashes-arcgis-pro-and-arcmap/m-p/1178092#M55605</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2022-05-27T20:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle view crashes ArcGIS Pro and ArcMap</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/oracle-view-crashes-arcgis-pro-and-arcmap/m-p/1352247#M75441</link>
      <description>&lt;P&gt;In a reply to&amp;nbsp;&lt;A href="https://community.esri.com/t5/geodatabase-questions/create-nil-zero-vertex-geometry/m-p/1352208/highlight/true#M8691" target="_self"&gt;Create NIL (zero vertex) geometry&lt;/A&gt;, I mention that&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://support.esri.com/en-us/knowledge-base/bug-unable-to-define-a-query-layer-in-arcgis-where-the-000011333" target="_self" rel="nofollow noopener noreferrer"&gt;the bug&lt;/A&gt;&amp;nbsp;has been updated. It now suggests that we use the&amp;nbsp;&lt;A href="https://desktop.arcgis.com/en/arcmap/latest/manage-data/using-sql-with-gdbs/st-geometry.htm" target="_self" rel="nofollow noopener noreferrer"&gt;st_geometry constructor&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to convert from subtypes to supertypes. Which seems to work for converting&amp;nbsp;&lt;SPAN&gt;[SDE.ST_POLYFROMTEXT] to&amp;nbsp;[SDE.ST_GEOMETRY].&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But that doesn't help me when c&lt;/SPAN&gt;onverting [ST_POINT] subtype to [ST_GEOMETRY] supertype:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_0-1700599249739.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/86792i8B8EB859DCE9FEAB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bud_0-1700599249739.png" alt="Bud_0-1700599249739.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2023 21:24:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/oracle-view-crashes-arcgis-pro-and-arcmap/m-p/1352247#M75441</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2023-11-21T21:24:54Z</dc:date>
    </item>
  </channel>
</rss>

