<?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 — CASE expression value shown incorrectly in attribute table in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/mobile-gdb-database-view-case-expression-value/m-p/1281473#M68258</link>
    <description>&lt;P&gt;Esri Case #03318355 - Mobile GDB database view — CASE expression value shown incorrectly in attribute table&lt;/P&gt;&lt;P&gt;BUG-000157736: Create Database View geoprocessing tool returns incorrect data when SQL CASE expression returns a text value in the View Definition parameter&lt;/P&gt;</description>
    <pubDate>Fri, 21 Apr 2023 20:37:33 GMT</pubDate>
    <dc:creator>Bud</dc:creator>
    <dc:date>2023-04-21T20:37:33Z</dc:date>
    <item>
      <title>Mobile GDB database view — CASE expression value shown incorrectly in attribute table</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/mobile-gdb-database-view-case-expression-value/m-p/1279170#M68030</link>
      <description>&lt;P&gt;&lt;EM&gt;ArcGIS Pro 3.1.1; Mobile Geodatabase&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I have a table called TEST_TBL:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_0-1681721058455.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/68139iB60D28CCA486CC64/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bud_0-1681721058455.png" alt="Bud_0-1681721058455.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I can create a view on the table like this, using the Create Database View GP tool:&lt;/P&gt;&lt;PRE&gt;select &lt;BR /&gt;    text_field,&lt;BR /&gt;    case when text_field = 'a' then 'a' end as case_test&lt;BR /&gt;from &lt;BR /&gt;    test_tbl&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;The resultset ought to look like this (DBeaver SQL Client):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_1-1681721201356.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/68140i75D70CAE1A074B20/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bud_1-1681721201356.png" alt="Bud_1-1681721201356.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;But instead, the attribute table in ArcGIS Pro looks like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_2-1681721242953.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/68141i03CF0D7B60AC462C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bud_2-1681721242953.png" alt="Bud_2-1681721242953.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The value in the CASE_TEST field is incorrect. It should be 'a', but is being displayed as '1899-12-30'.&lt;/P&gt;&lt;P&gt;Why is that calculated CASE field being displayed incorrectly?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Video:&lt;/P&gt;&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6325250645112w754h540r907" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6325250645112" 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-6325250645112w754h540r907');  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/6325250645112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&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 14:48:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/mobile-gdb-database-view-case-expression-value/m-p/1279170#M68030</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2023-04-17T14:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: Mobile GDB database view — CASE expression value shown incorrectly in attribute table</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/mobile-gdb-database-view-case-expression-value/m-p/1281473#M68258</link>
      <description>&lt;P&gt;Esri Case #03318355 - Mobile GDB database view — CASE expression value shown incorrectly in attribute table&lt;/P&gt;&lt;P&gt;BUG-000157736: Create Database View geoprocessing tool returns incorrect data when SQL CASE expression returns a text value in the View Definition parameter&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2023 20:37:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/mobile-gdb-database-view-case-expression-value/m-p/1281473#M68258</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2023-04-21T20:37:33Z</dc:date>
    </item>
  </channel>
</rss>

