<?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: Mobile GDB database view gets created even if SQL is invalid/error in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/mobile-gdb-database-view-gets-created-even-if-sql/m-p/1279241#M68039</link>
    <description>&lt;P&gt;Too funny, I just logged a defect on this issue a couple weeks ago:&amp;nbsp; &lt;A href="https://support.esri.com/en-us/bug/the-following-error-message-create-database-view-failed-bug-000157051" target="_blank"&gt;BUG-000157051 for ArcGIS Pro (esri.com)&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 17 Apr 2023 13:57:51 GMT</pubDate>
    <dc:creator>JoshuaBixby</dc:creator>
    <dc:date>2023-04-17T13:57:51Z</dc:date>
    <item>
      <title>Mobile GDB database view gets created even if SQL is invalid/error</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/mobile-gdb-database-view-gets-created-even-if-sql/m-p/1279162#M68029</link>
      <description>&lt;P&gt;&lt;I&gt;ArcGIS Pro 3.1.1; mobile&amp;nbsp;geodatabase&lt;/I&gt;&lt;/P&gt;&lt;P&gt;Scenario: I try to create a database view, but I make a mistake in the SQL, so the view is invalid.&lt;/P&gt;&lt;PRE&gt;select * from test_tbl&lt;FONT size="4" color="#FF0000"&gt;&lt;STRONG&gt;x&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;ArcGIS Pro throws an error because the view is invalid:&lt;/P&gt;&lt;PRE&gt;ERROR 999999: Something unexpected caused the tool to fail. Contact Esri Technical Support (http://esriurl.com/support) to Report a Bug, and refer to the error help for potential solutions or workarounds.&lt;BR /&gt;DBMS table not found [&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;no such table&lt;/FONT&gt;&lt;/STRONG&gt;: main.test_tblx] [test_vw6][STATE_ID = 0]&lt;BR /&gt;DBMS table not found [&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;DBMS table not found&lt;/FONT&gt;&lt;/STRONG&gt;] [main.test_vw6]&lt;BR /&gt;Failed to execute (CreateDatabaseView).&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_0-1681719204714.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/68135i3873384292EF4786/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bud_0-1681719204714.png" alt="Bud_0-1681719204714.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;That error is expected.&lt;/P&gt;&lt;P&gt;However, if I refresh the mobile geodatabase in Catalog, I see that the view was actually created, despite the error. That's not expected.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_1-1681719284182.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/68136i8F88BC1BE6F3276F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bud_1-1681719284182.png" alt="Bud_1-1681719284182.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Note: If the view was valid, then I wouldn't need to refresh the mobile geodatabase. The view would have shown up automatically without refreshing. But if the view is invalid, then I do need refresh the mobile geodatabase in order to see it.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Likewise, I can't add the broken view to the map:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_2-1681719519547.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/68137i7B1A1C680ECF1548/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bud_2-1681719519547.png" alt="Bud_2-1681719519547.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Video:&lt;/P&gt;&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6325246254112w754h540r825" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6325246254112" data-account="6161463677001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6161463677001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6325246254112w754h540r825');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://community.esri.com/t5/video/gallerypage/video-id/6325246254112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Why does&amp;nbsp;the view get created even if the SQL is invalid?&lt;BR /&gt;And if that behavior is expected for some reason, why doesn't Catalog automatically refresh the GDB to show the new view (like it would if the view was valid)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2023 08:23:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/mobile-gdb-database-view-gets-created-even-if-sql/m-p/1279162#M68029</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2023-04-17T08:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: Mobile GDB database view gets created even if SQL is invalid/error</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/mobile-gdb-database-view-gets-created-even-if-sql/m-p/1279241#M68039</link>
      <description>&lt;P&gt;Too funny, I just logged a defect on this issue a couple weeks ago:&amp;nbsp; &lt;A href="https://support.esri.com/en-us/bug/the-following-error-message-create-database-view-failed-bug-000157051" target="_blank"&gt;BUG-000157051 for ArcGIS Pro (esri.com)&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2023 13:57:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/mobile-gdb-database-view-gets-created-even-if-sql/m-p/1279241#M68039</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2023-04-17T13:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: Mobile GDB database view gets created even if SQL is invalid/error</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/mobile-gdb-database-view-gets-created-even-if-sql/m-p/1279254#M68045</link>
      <description>&lt;P&gt;Haha. Nice. Thanks.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;From BUG-000157051:&lt;/P&gt;&lt;P&gt;...and the table view cannot be deleted.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;That helps. I had noticed that certain views couldn't be deleted. I hadn't put my finger on what scenario lead to those undeletable views. Good to know.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Edit:&lt;/STRONG&gt; I suppose Esri Support could add this post's URL to that bug report/case -- just as an added reference.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Also, FYI, here are a few other mobile GDB-related bugs I've found/submitted:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;BUG-000155819 - Attribute table of joined layer in Mobile Geodatabase does not open when a definition query with a subquery is applied to the join table.&lt;/LI&gt;&lt;LI&gt;BUG-000155830 - Failed to open Mobile geodatabase feature attribute table after applying join from a SQL queried standalone table with error: Underlying DBMS Error [ambiguous column name objectid]&lt;/LI&gt;&lt;LI&gt;BUG-000157223 - The View Icon shows as Standalone table instead as Feature Class in Mobile Geodatabase&lt;/LI&gt;&lt;LI&gt;BUG-000156931 - Unable to select features using the Explore or selection tool from a view in a mobile geodatabase in ArcGIS Pro.&lt;UL class="lia-list-style-type-circle"&gt;&lt;LI&gt;Related:&lt;BR /&gt;BUG-000157376 - Unable to select features using the Explore or selection tool from a view with a join in a File geodatabase in ArcGIS Pro&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;BUG-000157475 - Cannot open table from the Catalog pane for a spatial view found in a mobile geodatabase.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I've got a few other ENHs and open tickets related to mobile geodatabases too. I track that stuff in a Word doc, since my MyEsri account isn't linked to my organization's MyEsri account. So I could send that Word doc to you if needed.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2023 14:51:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/mobile-gdb-database-view-gets-created-even-if-sql/m-p/1279254#M68045</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2023-04-17T14:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: Mobile GDB database view gets created even if SQL is invalid/error</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/mobile-gdb-database-view-gets-created-even-if-sql/m-p/1279264#M68048</link>
      <description>&lt;P&gt;The views that can't be deleted from ArcGIS Pro can be deleted from any SQLite tool just fine.&amp;nbsp; They can't be deleted in ArcGIS Pro because they are created in SQLite but not populated in various GDB system tables, so the delete tools can't really figure out what to do.&amp;nbsp; The solution to the delete issue is to have them never created in SQLite in the first place if the SQL is invalid.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2023 15:08:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/mobile-gdb-database-view-gets-created-even-if-sql/m-p/1279264#M68048</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2023-04-17T15:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: Mobile GDB database view gets created even if SQL is invalid/error</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/mobile-gdb-database-view-gets-created-even-if-sql/m-p/1279456#M68064</link>
      <description>&lt;P&gt;It's a strange issue.&lt;/P&gt;&lt;P&gt;In comparison, if I create a valid view using a SQL client like DBeaver, then ArcGIS Pro can delete that view without issue. Even though it was created outside of ArcGIS Pro and so no system tables would have been updated.. But as you said, if ArcGIS Pro creates an invalid view, ArcGIS Pro can't delete that view.&lt;/P&gt;&lt;P&gt;It seems kind of inconsistent to me.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 00:08:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/mobile-gdb-database-view-gets-created-even-if-sql/m-p/1279456#M68064</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2023-04-18T00:08:56Z</dc:date>
    </item>
  </channel>
</rss>

