<?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: Why can't I calculate a date field in my SQL-hosted GDB using ArcGIS Pro 1.4? in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/why-can-t-i-calculate-a-date-field-in-my-sql/m-p/75155#M3204</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We can only make guesses here. It is better to raise a ticket with Esri. Let them have a closer look at the issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 01 Apr 2017 02:04:17 GMT</pubDate>
    <dc:creator>JayantaPoddar</dc:creator>
    <dc:date>2017-04-01T02:04:17Z</dc:date>
    <item>
      <title>Why can't I calculate a date field in my SQL-hosted GDB using ArcGIS Pro 1.4?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/why-can-t-i-calculate-a-date-field-in-my-sql/m-p/75149#M3198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's the problem I'm having:&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI&gt;I'm using SQL Server 2012 that hosts a geodatabase.&lt;/LI&gt;&lt;LI&gt;ArcCatalog 10.5 reports that the SQL-hosted GDB is at version 10.4.0.&lt;/LI&gt;&lt;LI&gt;In ArcGIS Pro 1.4, I am using the following Python calc expression to update a field named MTP_Date: &lt;EM&gt;&lt;STRONG&gt;datetime.datetime(2016, 3, 15)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;In ArcGIS Pro 1.4, the above calc expression works just fine when run on a non-SQL-hosted file geodatabase.&lt;/LI&gt;&lt;LI&gt;In ArcGIS Pro 1.4, the &lt;EM&gt;Calculate Field&lt;/EM&gt; tool does not successfully update the date field in one of the feature classes in my SQL-hosted GDB. The strange thing is, the calc tool runs successfully with no errors, but the date field is not actually updated. It makes no change to the value in the date field.&lt;/LI&gt;&lt;LI&gt;In ArcGIS Pro 1.4, I can successfully edit a date field by manually typing the date in the feature class' attribute table. But my work is such that manually entering date values is not practical. I need to be able to calculate the field values.&lt;/LI&gt;&lt;LI&gt;Using ArcMap 10.5, the &lt;EM&gt;Calculate Field&lt;/EM&gt; tool does successfully update the value for the date field in the SQL-hosted 10.4.0 GDB.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, using the same exact SQL-hosted 10.4.0 GDB:&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI&gt;ArcGIS Pro 1.4 &lt;STRONG&gt;cannot&lt;/STRONG&gt; successfully calc a date field value&lt;/LI&gt;&lt;LI&gt;ArcMap 10.5 &lt;STRONG&gt;can&lt;/STRONG&gt; successfully calc a date field value&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm wondering if I need to upgrade the SQL-hosted GDB to version 10.5 in order for ArcGIS Pro 1.4 to be able to successfully calculate date field values. Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2017 22:54:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/why-can-t-i-calculate-a-date-field-in-my-sql/m-p/75149#M3198</guid>
      <dc:creator>ScottMcGee3</dc:creator>
      <dc:date>2017-03-22T22:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I calculate a date field in my SQL-hosted GDB using ArcGIS Pro 1.4?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/why-can-t-i-calculate-a-date-field-in-my-sql/m-p/75150#M3199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What happens if you run&amp;nbsp;&lt;EM style="color: #6a6a6a; background-color: #ffffff; font-weight: bold; font-size: small;"&gt;DateSerial&lt;/EM&gt;&lt;SPAN style="color: #545454; background-color: #ffffff; font-size: small;"&gt;(2016,3,15) or &lt;EM style="color: #6a6a6a; background-color: #ffffff; font-weight: bold; font-size: small;"&gt;DateSerial&lt;/EM&gt;&lt;SPAN style="color: #545454; background-color: #ffffff; font-size: small;"&gt;(16,3,15)&lt;/SPAN&gt;?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #545454; background-color: #ffffff; font-size: small;"&gt;&lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/help/data/tables/date-fields.htm#GUID-11B42237-4401-4EC5-81CD-B39D88F0514C" title="http://pro.arcgis.com/en/pro-app/help/data/tables/date-fields.htm#GUID-11B42237-4401-4EC5-81CD-B39D88F0514C"&gt;Date fields—ArcGIS Pro | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="color: #545454; background-color: #ffffff; font-size: small;"&gt;&lt;SPAN class="" style="color: #4d4d4d; background-color: #fefefe;"&gt;ArcGIS Pro&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; background-color: #fefefe;"&gt; follows the &lt;/SPAN&gt;&lt;A href="http://links.esri.com/format-date-microsoft-office" style="color: #00b9f2; background-color: #fefefe; text-decoration: none;"&gt;Windows settings for date formats&lt;/A&gt;&lt;SPAN style="color: #4d4d4d; background-color: #fefefe;"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Mar 2017 04:07:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/why-can-t-i-calculate-a-date-field-in-my-sql/m-p/75150#M3199</guid>
      <dc:creator>JayantaPoddar</dc:creator>
      <dc:date>2017-03-23T04:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I calculate a date field in my SQL-hosted GDB using ArcGIS Pro 1.4?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/why-can-t-i-calculate-a-date-field-in-my-sql/m-p/75151#M3200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is the data versioned or not?&amp;nbsp; Does it happen with all data types in Pro or just dates?&amp;nbsp; Also, do you see the same with other feature classes or just this one?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Mar 2017 13:59:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/why-can-t-i-calculate-a-date-field-in-my-sql/m-p/75151#M3200</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2017-03-23T13:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I calculate a date field in my SQL-hosted GDB using ArcGIS Pro 1.4?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/why-can-t-i-calculate-a-date-field-in-my-sql/m-p/75152#M3201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DateSerial doesn't work. I get a message saying "&lt;EM&gt;module datetime has no attribute dateserial&lt;/EM&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/343725_pastedImage_1.png" style="width: 620px; height: 778px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Mar 2017 20:43:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/why-can-t-i-calculate-a-date-field-in-my-sql/m-p/75152#M3201</guid>
      <dc:creator>ScottMcGee3</dc:creator>
      <dc:date>2017-03-23T20:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I calculate a date field in my SQL-hosted GDB using ArcGIS Pro 1.4?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/why-can-t-i-calculate-a-date-field-in-my-sql/m-p/75153#M3202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;"Is the data versioned or not?"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Yes, it is versioned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"Does it happen with all data types in Pro or just dates?"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Yes, it happens with all data types in all of our SQL-hosted geodatabases.and feature classes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I've narrowed down the problem to being specific to ArcGIS Pro 1.4 and our version 10.4.0 SQL-hosted geodatabases. The problem does not occur when using Pro 1.4 to edit file geodatabases or shapefiles. So I suspect I need to upgrade our SQL-hosted GDBs from version 10.4.0 to version 10.5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just to give a bit of additional info, I did some testing and found that when using Pro 1.4 to calculate field values in any of our SQL-hosted feature classes, that the calculation did actually insert the new value into the field. However, the attribute table still showed the old value, as if the attribute table was not being refreshed. The only way to see the newly-calculated field value was to close the ArcGIS Pro project and open it again. Then the calculated value was shown in the attribute table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Mar 2017 22:56:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/why-can-t-i-calculate-a-date-field-in-my-sql/m-p/75153#M3202</guid>
      <dc:creator>ScottMcGee3</dc:creator>
      <dc:date>2017-03-23T22:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I calculate a date field in my SQL-hosted GDB using ArcGIS Pro 1.4?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/why-can-t-i-calculate-a-date-field-in-my-sql/m-p/75154#M3203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a follow up on my previous post above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I upgraded our SQL Server-hosted geodatabase to ArcGIS 10.5. So now everything we have is at version 10.5 (ArcGIS Desktop, ArcGIS Enterprise, SQL-hosted GDB). We're also using ArcGIS Pro 1.4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's a recap of the problem I'm having:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) I started a brand new, empty Pro 1.4 project. In that project, I added a database connection to our SQL-hosted GDB and added a feature class (PLSS Sections) to the map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Using ArcCatalog, I exported the PLSS Sections from the SQL-hosted GDB into a new, empty file geodatabase. I did this so I could test using the same feature class (PLSS Sections) from two different sources (SQL-hosted GDB and file GDB).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) I added the PLSS Sections from the file GDB into the map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) Calculating the date field in the&lt;STRONG&gt; file GDB&lt;/STRONG&gt; PLSS Sections feature class &lt;STRONG&gt;worked fine&lt;/STRONG&gt;. I could see the newly-calculated value in the date field of the attribute table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5) Calculating the date field in the &lt;STRONG&gt;SQL-hosted GDB&lt;/STRONG&gt; PLSS Sections feature class &lt;STRONG&gt;sort of worked&lt;/STRONG&gt;.The calc operation completed without any errors, but the date field in the attribute table did not show the newly-calculated value. However, when I saved the project, closed it, and opened it up again, the newly-calculated value was shown in the date field of the attribute table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6) The problem described in #5 above occurs with &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;all fields&lt;/STRONG&gt;&lt;/SPAN&gt; of &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;all feature classes&lt;/STRONG&gt;&lt;/SPAN&gt; of &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;all of our SQL-hosted GDBs&lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So...&lt;/P&gt;&lt;P&gt;1) Pro 1.4 and a&lt;STRONG&gt; file GDB&lt;/STRONG&gt;: calculating a field value works as it should. No problems.&lt;/P&gt;&lt;P&gt;2) Pro 1.4 and a &lt;STRONG&gt;SQL-hosted GDB&lt;/STRONG&gt;: calculating a field value works, but the only way to confirm that it worked is to close the ArcGIS Pro project and then re-open it. Upon re-opening the project, I can see newly-calculated field values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I took a wild guess that the problem might be due to using DirectX vs. OpenGL. So I tried both settings in Pro 1.4. It didn't make any difference. I also downloaded and installed the latest driver for my graphics card. That made no difference either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Obviously, it's not reasonable to close my Pro 1.4 project(s) and re-open them every time I calculate a field value in our SQL-hosted GDBs. So this pretty much makes Pro 1.4 unusable for me (even though I'm really trying to like it!).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone else experienced this problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Apr 2017 00:16:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/why-can-t-i-calculate-a-date-field-in-my-sql/m-p/75154#M3203</guid>
      <dc:creator>ScottMcGee3</dc:creator>
      <dc:date>2017-04-01T00:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I calculate a date field in my SQL-hosted GDB using ArcGIS Pro 1.4?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/why-can-t-i-calculate-a-date-field-in-my-sql/m-p/75155#M3204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We can only make guesses here. It is better to raise a ticket with Esri. Let them have a closer look at the issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Apr 2017 02:04:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/why-can-t-i-calculate-a-date-field-in-my-sql/m-p/75155#M3204</guid>
      <dc:creator>JayantaPoddar</dc:creator>
      <dc:date>2017-04-01T02:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I calculate a date field in my SQL-hosted GDB using ArcGIS Pro 1.4?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/why-can-t-i-calculate-a-date-field-in-my-sql/m-p/75156#M3205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I finally figured out the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On this page: &lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/tool-reference/data-management/calculate-field.htm" title="http://pro.arcgis.com/en/pro-app/tool-reference/data-management/calculate-field.htm"&gt;Calculate Field—Data Management toolbox | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It states:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"Be aware that this tool honors the &lt;A href="http://pro.arcgis.com/en/pro-app/tool-reference/environment-settings/output-extent.htm"&gt;Output Extent&lt;/A&gt; environment setting. Only those features within the extent will have their field values calculated. The environment setting has no effect on nonspatial data such as tables."&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, in the &lt;STRONG&gt;Geoprocessing &lt;/STRONG&gt;&amp;gt; &lt;STRONG&gt;Calculate Field&lt;/STRONG&gt; pane, I clicked &lt;STRONG&gt;Environments&lt;/STRONG&gt; and set the &lt;STRONG&gt;Extent&lt;/STRONG&gt; equal to the &lt;STRONG&gt;feature class&lt;/STRONG&gt; that I wanted to calculate field values. That solved the problem. Newly-calculated field values then were shown in the attribute table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Apr 2017 00:41:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/why-can-t-i-calculate-a-date-field-in-my-sql/m-p/75156#M3205</guid>
      <dc:creator>ScottMcGee3</dc:creator>
      <dc:date>2017-04-11T00:41:17Z</dc:date>
    </item>
  </channel>
</rss>

