Select to view content in your preferred language

Mobile GDB database view — CASE expression value shown incorrectly in attribute table

791
1
Jump to solution
04-17-2023 01:52 AM
Bud
by
Esteemed Contributor

ArcGIS Pro 3.1.1; Mobile Geodatabase

I have a table called TEST_TBL:

Bud_0-1681721058455.png


I can create a view on the table like this, using the Create Database View GP tool:

select 
text_field,
case when text_field = 'a' then 'a' end as case_test
from
test_tbl


The resultset ought to look like this (DBeaver SQL Client):

Bud_1-1681721201356.png


But instead, the attribute table in ArcGIS Pro looks like this:

Bud_2-1681721242953.png


The value in the CASE_TEST field is incorrect. It should be 'a', but is being displayed as '1899-12-30'.

Why is that calculated CASE field being displayed incorrectly?


Video:

 

 

0 Kudos
1 Solution

Accepted Solutions
Bud
by
Esteemed Contributor

Esri Case #03318355 - Mobile GDB database view — CASE expression value shown incorrectly in attribute table

BUG-000157736: Create Database View geoprocessing tool returns incorrect data when SQL CASE expression returns a text value in the View Definition parameter

View solution in original post

0 Kudos
1 Reply
Bud
by
Esteemed Contributor

Esri Case #03318355 - Mobile GDB database view — CASE expression value shown incorrectly in attribute table

BUG-000157736: Create Database View geoprocessing tool returns incorrect data when SQL CASE expression returns a text value in the View Definition parameter

0 Kudos