<?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 Bug: EGDB view — YEAR column displayed incorrectly as zeros in attribute table in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/bug-egdb-view-year-column-displayed-incorrectly-as/m-p/1251615#M64625</link>
    <description>&lt;P&gt;&lt;EM&gt;ArcGIS Pro 2.6.8&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have an Oracle 18c 10.7.1 EGDB standalone table:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_1-1674680551110.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/61265i5F45597B177B1EE5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bud_1-1674680551110.png" alt="Bud_1-1674680551110.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;      YEAR     AMOUNT
&lt;SPAN class=""&gt;---------- ----------&lt;/SPAN&gt;
      &lt;SPAN class=""&gt;2024&lt;/SPAN&gt;        &lt;SPAN class=""&gt;100&lt;/SPAN&gt;
      &lt;SPAN class=""&gt;2025&lt;/SPAN&gt;        &lt;SPAN class=""&gt;200&lt;/SPAN&gt;
      &lt;SPAN class=""&gt;2025&lt;/SPAN&gt;        &lt;SPAN class=""&gt;300&lt;/SPAN&gt;
      &lt;SPAN class=""&gt;2026&lt;/SPAN&gt;        &lt;SPAN class=""&gt;400&lt;/SPAN&gt;
      &lt;SPAN class=""&gt;2027&lt;/SPAN&gt;        &lt;SPAN class=""&gt;500&lt;/SPAN&gt;
      &lt;SPAN class=""&gt;2028&lt;/SPAN&gt;        &lt;SPAN class=""&gt;600&lt;/SPAN&gt;
      &lt;SPAN class=""&gt;2028&lt;/SPAN&gt;        &lt;SPAN class=""&gt;700&lt;/SPAN&gt;
      &lt;SPAN class=""&gt;2028&lt;/SPAN&gt;        &lt;SPAN class=""&gt;800&lt;/SPAN&gt;
      &lt;SPAN class=""&gt;2029&lt;/SPAN&gt;        &lt;SPAN class=""&gt;900&lt;/SPAN&gt;
      &lt;SPAN class=""&gt;2031&lt;/SPAN&gt;        &lt;SPAN class=""&gt;100&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;I've created a view on the table that generates filler rows:&lt;/P&gt;&lt;PRE&gt;--create or replace view a_test_tbl_vw as 
select
    cast(rownum as number(38,0)) as rownum_,
    cast(year   as number(38,0)) as year, 
    amount
from
    (
    select    
        y.year,
        t.amount
    from      
        (select extract(year from sysdate) + level - 1 as year from dual connect by level &amp;lt;= 10) y
    left join 
        infrastr.a_test_tbl t 
        on t.year = y.year
    order by  
        y.year, 
        t.amount
    )&lt;BR /&gt;&lt;BR /&gt;   ROWNUM_       YEAR     AMOUNT
---------- ---------- ----------
         1       2023           
         2       2024        100
         3       2025        200
         4       2025        300
         5       2026        400
         6       2027        500
         7       2028        600
         8       2028        700
         9       2028        800
        10       2029        900
        11       2030           
        12       2031        100
        13       2032      &lt;/PRE&gt;&lt;P&gt;Use Case:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-pro-questions/force-bar-chart-to-show-missing-years-within-10/m-p/1250755" target="_self"&gt;Force bar chart to show missing years within 10-year range (system year + 9)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;SQL Source: &lt;A href="https://stackoverflow.com/questions/75215564/oracle-generate-rows-for-missing-years-within-range-sysyear-9" target="_self"&gt;Oracle: Generate rows for missing years within range (sysyear + 9)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Problem:&lt;/P&gt;&lt;P&gt;When I add the view to ArcGIS Pro 2.6.8, the YEAR column is displayed as zeros, which is incorrect:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_2-1674680761134.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/61266i16BFB9CD1AF2C02E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bud_2-1674680761134.png" alt="Bud_2-1674680761134.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Whereas, ArcMap 10.7.1 displays the YEAR integers correctly:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_3-1674680907386.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/61267i4091327418B08112/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bud_3-1674680907386.png" alt="Bud_3-1674680907386.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Why is the YEAR column being displayed as zeros in ArcGIS Pro?&lt;/P&gt;&lt;P&gt;I'm aware that views can be tricky in ArcGIS, especially when there are generated rows — rows that aren't selected directly from a table.&lt;/P&gt;&lt;P&gt;But I believe I've satisfied all of ArcGIS' requirements for views. The view has a unique ID that is a number. And the YEAR column has been CAST as a proper integer too. So I think it should work. And the fact that it does work in ArcMap tells me that it should work in ArcGIS Pro too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 26 Jan 2023 06:12:13 GMT</pubDate>
    <dc:creator>Bud</dc:creator>
    <dc:date>2023-01-26T06:12:13Z</dc:date>
    <item>
      <title>Bug: EGDB view — YEAR column displayed incorrectly as zeros in attribute table</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/bug-egdb-view-year-column-displayed-incorrectly-as/m-p/1251615#M64625</link>
      <description>&lt;P&gt;&lt;EM&gt;ArcGIS Pro 2.6.8&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have an Oracle 18c 10.7.1 EGDB standalone table:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_1-1674680551110.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/61265i5F45597B177B1EE5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bud_1-1674680551110.png" alt="Bud_1-1674680551110.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;      YEAR     AMOUNT
&lt;SPAN class=""&gt;---------- ----------&lt;/SPAN&gt;
      &lt;SPAN class=""&gt;2024&lt;/SPAN&gt;        &lt;SPAN class=""&gt;100&lt;/SPAN&gt;
      &lt;SPAN class=""&gt;2025&lt;/SPAN&gt;        &lt;SPAN class=""&gt;200&lt;/SPAN&gt;
      &lt;SPAN class=""&gt;2025&lt;/SPAN&gt;        &lt;SPAN class=""&gt;300&lt;/SPAN&gt;
      &lt;SPAN class=""&gt;2026&lt;/SPAN&gt;        &lt;SPAN class=""&gt;400&lt;/SPAN&gt;
      &lt;SPAN class=""&gt;2027&lt;/SPAN&gt;        &lt;SPAN class=""&gt;500&lt;/SPAN&gt;
      &lt;SPAN class=""&gt;2028&lt;/SPAN&gt;        &lt;SPAN class=""&gt;600&lt;/SPAN&gt;
      &lt;SPAN class=""&gt;2028&lt;/SPAN&gt;        &lt;SPAN class=""&gt;700&lt;/SPAN&gt;
      &lt;SPAN class=""&gt;2028&lt;/SPAN&gt;        &lt;SPAN class=""&gt;800&lt;/SPAN&gt;
      &lt;SPAN class=""&gt;2029&lt;/SPAN&gt;        &lt;SPAN class=""&gt;900&lt;/SPAN&gt;
      &lt;SPAN class=""&gt;2031&lt;/SPAN&gt;        &lt;SPAN class=""&gt;100&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;I've created a view on the table that generates filler rows:&lt;/P&gt;&lt;PRE&gt;--create or replace view a_test_tbl_vw as 
select
    cast(rownum as number(38,0)) as rownum_,
    cast(year   as number(38,0)) as year, 
    amount
from
    (
    select    
        y.year,
        t.amount
    from      
        (select extract(year from sysdate) + level - 1 as year from dual connect by level &amp;lt;= 10) y
    left join 
        infrastr.a_test_tbl t 
        on t.year = y.year
    order by  
        y.year, 
        t.amount
    )&lt;BR /&gt;&lt;BR /&gt;   ROWNUM_       YEAR     AMOUNT
---------- ---------- ----------
         1       2023           
         2       2024        100
         3       2025        200
         4       2025        300
         5       2026        400
         6       2027        500
         7       2028        600
         8       2028        700
         9       2028        800
        10       2029        900
        11       2030           
        12       2031        100
        13       2032      &lt;/PRE&gt;&lt;P&gt;Use Case:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-pro-questions/force-bar-chart-to-show-missing-years-within-10/m-p/1250755" target="_self"&gt;Force bar chart to show missing years within 10-year range (system year + 9)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;SQL Source: &lt;A href="https://stackoverflow.com/questions/75215564/oracle-generate-rows-for-missing-years-within-range-sysyear-9" target="_self"&gt;Oracle: Generate rows for missing years within range (sysyear + 9)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Problem:&lt;/P&gt;&lt;P&gt;When I add the view to ArcGIS Pro 2.6.8, the YEAR column is displayed as zeros, which is incorrect:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_2-1674680761134.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/61266i16BFB9CD1AF2C02E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bud_2-1674680761134.png" alt="Bud_2-1674680761134.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Whereas, ArcMap 10.7.1 displays the YEAR integers correctly:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_3-1674680907386.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/61267i4091327418B08112/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bud_3-1674680907386.png" alt="Bud_3-1674680907386.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Why is the YEAR column being displayed as zeros in ArcGIS Pro?&lt;/P&gt;&lt;P&gt;I'm aware that views can be tricky in ArcGIS, especially when there are generated rows — rows that aren't selected directly from a table.&lt;/P&gt;&lt;P&gt;But I believe I've satisfied all of ArcGIS' requirements for views. The view has a unique ID that is a number. And the YEAR column has been CAST as a proper integer too. So I think it should work. And the fact that it does work in ArcMap tells me that it should work in ArcGIS Pro too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2023 06:12:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/bug-egdb-view-year-column-displayed-incorrectly-as/m-p/1251615#M64625</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2023-01-26T06:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: EGDB view — YEAR column displayed incorrectly as zeros in attribute table</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/bug-egdb-view-year-column-displayed-incorrectly-as/m-p/1251625#M64626</link>
      <description>&lt;P&gt;The problem seems to be the column name "YEAR".&lt;/P&gt;&lt;P&gt;If I change that column name to something else, such as "YEAR_", then it works fine in ArcGIS Pro:&lt;/P&gt;&lt;PRE&gt;--create or replace view a_test_tbl_vw as 
select
    cast(rownum as number(38,0)) as rownum_,
    cast(year   as number(38,0)) as &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;year_&lt;/STRONG&gt;&lt;/FONT&gt;, 
    amount
from
    (
    select    
        y.year,
        t.amount
    from      
        (select extract(year from sysdate) + level - 1 as year from dual connect by level &amp;lt;= 10) y
    left join 
        infrastr.a_test_tbl t 
        on t.year = y.year
    order by  
        y.year, 
        t.amount
    )&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_0-1674682036610.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/61269iC7A0E9971F1134BF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bud_0-1674682036610.png" alt="Bud_0-1674682036610.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;"YEAR" is an SQL keyword in Oracle (but using it in SQL isn't prohibited, just discouraged). Maybe that causes a problem in ArcGIS Pro? Or maybe "YEAR" is a reserve word in Pro, but not in ArcMap?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 21:33:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/bug-egdb-view-year-column-displayed-incorrectly-as/m-p/1251625#M64626</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2023-01-25T21:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: EGDB view — YEAR column displayed incorrectly as zeros in attribute table</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/bug-egdb-view-year-column-displayed-incorrectly-as/m-p/1251865#M64648</link>
      <description>&lt;P&gt;Always had the understanding that&amp;nbsp;ArcSDE\Enterprise gdb does not have reserved words of its own. These are determined by the host RDBMS on which the geodatabase resides.&lt;/P&gt;&lt;P&gt;This document for ArcGIS Pro mentions the same:&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/defining-fields-in-tables.htm" target="_self"&gt;Define fields in tables&lt;/A&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;Additional field name rules and limitations are as follows:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Field names cannot contain reserved words, such as all or result.&lt;P&gt;Consult your database management system (DBMS) documentation for additional reserved words.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Thu, 26 Jan 2023 14:52:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/bug-egdb-view-year-column-displayed-incorrectly-as/m-p/1251865#M64648</guid>
      <dc:creator>Asrujit_SenGupta</dc:creator>
      <dc:date>2023-01-26T14:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: Bug: EGDB view — YEAR column displayed incorrectly as zeros in attribute table</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/bug-egdb-view-year-column-displayed-incorrectly-as/m-p/1253874#M64922</link>
      <description>&lt;P&gt;I've been doing some testing with Esri Canada support&amp;nbsp;(Case #03252485). Here's where I'm at:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;Unfortunately, I’m currently unable to reproduce the issue – not even with my original view – the one I used to take the screenshot that I put in the Esri Community post: &lt;A href="https://community.esri.com/t5/image/serverpage/image-id/61266i16BFB9CD1AF2C02E/image-size/medium?v=v2&amp;amp;px=400" target="_blank"&gt;https://community.esri.com/t5/image/serverpage/image-id/61266i16BFB9CD1AF2C02E/image-size/medium?v=v2&amp;amp;px=400&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I’m not sure why I’m not seeing the issue right now. The years (field name: YEAR) in the view are being displayed as numbers, not zero, as desired.&lt;BR /&gt;It’s frustrating that the issue is intermittent/inconsistent.&lt;/P&gt;&lt;P&gt;I’m going to do some more testing.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 15:41:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/bug-egdb-view-year-column-displayed-incorrectly-as/m-p/1253874#M64922</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2023-02-01T15:41:00Z</dc:date>
    </item>
  </channel>
</rss>

