<?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 Spatial View has features but the table is empty in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/spatial-view-has-features-but-the-table-is-empty/m-p/587486#M33185</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've created a spatial view that displays features in ArcCatalog and ArcMap but if I look at the table, it's empty, though the table does have the correct column names.&amp;nbsp; If I identify a feature, it returns results including the attributes.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Things of note about the spatial view is that a majority of the fields come from another view, which is registered with the geodatabase with sdetable -o register command.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's an Oracle 11G database with SDE 9.3.1 on it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Craig&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Jun 2012 17:50:20 GMT</pubDate>
    <dc:creator>CraigPatterson</dc:creator>
    <dc:date>2012-06-01T17:50:20Z</dc:date>
    <item>
      <title>Spatial View has features but the table is empty</title>
      <link>https://community.esri.com/t5/data-management-questions/spatial-view-has-features-but-the-table-is-empty/m-p/587486#M33185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've created a spatial view that displays features in ArcCatalog and ArcMap but if I look at the table, it's empty, though the table does have the correct column names.&amp;nbsp; If I identify a feature, it returns results including the attributes.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Things of note about the spatial view is that a majority of the fields come from another view, which is registered with the geodatabase with sdetable -o register command.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's an Oracle 11G database with SDE 9.3.1 on it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Craig&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2012 17:50:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/spatial-view-has-features-but-the-table-is-empty/m-p/587486#M33185</guid>
      <dc:creator>CraigPatterson</dc:creator>
      <dc:date>2012-06-01T17:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial View has features but the table is empty</title>
      <link>https://community.esri.com/t5/data-management-questions/spatial-view-has-features-but-the-table-is-empty/m-p/587487#M33186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does the view contain a registered rowid (objectid) column?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is the join 1:1, 1:M, or M:1?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What does 'sdetable -o describe' report for each of the tables?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What geometry storage is being used?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you define the table with 'sdetable -o create_view' or did you use CREATE VIEW with&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'sdelayer -o register'?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What exact command did you use to create the view?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2012 18:31:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/spatial-view-has-features-but-the-table-is-empty/m-p/587487#M33186</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2012-06-01T18:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial View has features but the table is empty</title>
      <link>https://community.esri.com/t5/data-management-questions/spatial-view-has-features-but-the-table-is-empty/m-p/587488#M33187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Does the view contain a registered rowid (objectid) column?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes it does, the view alias it's unique number id as objectid.&amp;nbsp; I register it with this command:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;sdetable -o register -t OPEN_SR_VW -c OBJECTID -C USER -S &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Is the join 1:1, 1:M, or M:1?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The join is a 1:M.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;What does 'sdetable -o describe' report for each of the tables?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It says "segmentation fault" for both.&amp;nbsp; The view is created via a database link.&amp;nbsp; That may be causing the error message.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;What geometry storage is being used?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ST_GEOMETRY&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Did you define the table with 'sdetable -o create_view' or did you use CREATE VIEW with&lt;BR /&gt;'sdelayer -o register'?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See below&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;What exact command did you use to create the view?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;sdetable -o create_view -T OPEN_SR_SVW -t&amp;nbsp;&amp;nbsp; "OPEN_SR_VW SR, MXCENTROID" -c "SR.OBJECTID, SR.MXTICKETID, SR.MXCLASS, SR.MXORGID, SR.DESCRIPTION, SR.STATUS, SR.LEAD, SR.OWNER, SR.INTERNALPRIORITY, SR.REPORTDATE, SR.COMMODITY, SR.COMMODITYGROUP, SR.FAILURECODE, SR.PROBLEMCODE, SR.SUPERVISOR, SR.REPORTEDBY, SR.REPORTEDPHONE, SR.REPORTEDPRIORITY, SR.REPTBYCONTACTNAME, SR.SHOP, SR.CHANGEDATE, SR.MXSITEID, SR.PLUSSFEATURECLASS, SR.MXASSETNUM, SR.MXLOCATION, SR.MXADDRESSCODE, MXCENTROID.SHAPE" -w "(SR.mxticketid = mxcentroid.maxgisid and sr.mxclass = mxcentroid.maxgisid2 and mxcentroid.maxtablename = 'SR') OR (SR.mxassetnum = mxcentroid.maxgisid and SR.mxsiteid = mxcentroid.maxgisid2 and mxcentroid.maxtablename = 'ASSET' AND SR.PLUSSFEATURECLASS IS NULL) OR (SR.mxlocation = mxcentroid.maxgisid and SR.mxsiteid = mxcentroid.maxgisid2 and mxcentroid.maxtablename = 'LOCATIONS' AND SR.PLUSSFEATURECLASS IS NULL AND SR.MXASSETNUM IS NULL) OR (SR.mxaddresscode = mxcentroid.maxgisid&amp;nbsp; and mxcentroid.maxtablename = 'PLUSSSERVICEADDRESS' AND SR.PLUSSFEATURECLASS IS NULL AND SR.MXASSETNUM IS NULL AND SR.MXLOCATION IS NULL)"&amp;nbsp; -i sde:oracle11g:maxdevgis -u maxspatial&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2012 19:12:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/spatial-view-has-features-but-the-table-is-empty/m-p/587488#M33187</guid>
      <dc:creator>CraigPatterson</dc:creator>
      <dc:date>2012-06-01T19:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial View has features but the table is empty</title>
      <link>https://community.esri.com/t5/data-management-questions/spatial-view-has-features-but-the-table-is-empty/m-p/587489#M33188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;'sdetable -o create_view' should only really be used with SDEBINARY/SDELOB storage layers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SQL is a much more powerful tool for view creation than what 'sdetable' provides.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For ArcGIS to operate correctly, 1:M joins need to return the same USER-set rowid value for the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;same row with each query (no fast/loose games with ROWNUM).&amp;nbsp; It's not well-enforced, but the &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;column is required to map to SE_INT32_TYPE (long integer). Use 'sdetable -o describe' on the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;view to make sure the type mapping is correct.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The segmentation violations are disconcerting, as is the use of DBLINK, which will often perform, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;shall we say, "poorly" (make sure you tune the query so that selection is occurring on the correct&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;side of the link).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That join where clause isn't at all pretty -- you might want to evaluate using a UNION ALL join&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;within the view (just make sure the returned rowids are unique).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2012 21:42:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/spatial-view-has-features-but-the-table-is-empty/m-p/587489#M33188</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2012-06-01T21:42:20Z</dc:date>
    </item>
  </channel>
</rss>

