<?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: Controlling Field Data Types When Creating a Feature Service From a GeoJSON in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/controlling-field-data-types-when-creating-a/m-p/1593785#M41787</link>
    <description>&lt;P&gt;I am encountering the same problem, so I appreciate the workaround you included.&lt;/P&gt;&lt;P&gt;That said, I agree that date fields should be typed correctly when the layer is initially published. In my case, I made sure the dates were formatted as Esri expects: &lt;A href="https://doc.arcgis.com/en/arcgis-online/manage-data/work-with-date-fields.htm," target="_blank"&gt;https://doc.arcgis.com/en/arcgis-online/manage-data/work-with-date-fields.htm,&lt;/A&gt; but they were still interpreted as strings.&lt;/P&gt;</description>
    <pubDate>Mon, 10 Mar 2025 13:32:52 GMT</pubDate>
    <dc:creator>eabrahams_tesla</dc:creator>
    <dc:date>2025-03-10T13:32:52Z</dc:date>
    <item>
      <title>Controlling Field Data Types When Creating a Feature Service From a GeoJSON</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/controlling-field-data-types-when-creating-a/m-p/1528072#M40431</link>
      <description>&lt;P&gt;This question is in regards to both using the ArcGIS Portal GUI and the ArcGIS API for Python.&lt;/P&gt;&lt;P&gt;I'm able to create a hosted feature service from a GeoJSON, but I'm unable to create esriFieldTypeDate fields. All date formats in the geojson properties lead to esriFieldTypeString field types. I don't have this issue when publishing from a csv.&lt;/P&gt;&lt;P&gt;I understand that I can delete the fields and add new ones in. But it would help our workflow to immediately declare the field type.&lt;/P&gt;&lt;P&gt;Here's what I do programmatically...&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;layer.manager.delete_from_definition({&lt;BR /&gt;"fields": [{"name": "created_at"}]&lt;BR /&gt;})&lt;/P&gt;&lt;P&gt;layer.manager.add_to_definition({&lt;BR /&gt;"fields": [{&lt;BR /&gt;"name": "created_at",&lt;BR /&gt;"type": "esriFieldTypeDate",&lt;BR /&gt;"alias": "Created At"]&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Just wondering if this is a bug when working with geojsons or if I'm not formatting my dates correctly.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2024 18:04:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/controlling-field-data-types-when-creating-a/m-p/1528072#M40431</guid>
      <dc:creator>mikeytes</dc:creator>
      <dc:date>2024-08-27T18:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling Field Data Types When Creating a Feature Service From a GeoJSON</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/controlling-field-data-types-when-creating-a/m-p/1593785#M41787</link>
      <description>&lt;P&gt;I am encountering the same problem, so I appreciate the workaround you included.&lt;/P&gt;&lt;P&gt;That said, I agree that date fields should be typed correctly when the layer is initially published. In my case, I made sure the dates were formatted as Esri expects: &lt;A href="https://doc.arcgis.com/en/arcgis-online/manage-data/work-with-date-fields.htm," target="_blank"&gt;https://doc.arcgis.com/en/arcgis-online/manage-data/work-with-date-fields.htm,&lt;/A&gt; but they were still interpreted as strings.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Mar 2025 13:32:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/controlling-field-data-types-when-creating-a/m-p/1593785#M41787</guid>
      <dc:creator>eabrahams_tesla</dc:creator>
      <dc:date>2025-03-10T13:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling Field Data Types When Creating a Feature Service From a GeoJSON</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/controlling-field-data-types-when-creating-a/m-p/1647607#M42980</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/819573"&gt;@eabrahams_tesla&lt;/a&gt;&amp;nbsp;HELLO! Haven't heard anything from ESRI&lt;/P&gt;</description>
      <pubDate>Wed, 03 Sep 2025 13:48:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/controlling-field-data-types-when-creating-a/m-p/1647607#M42980</guid>
      <dc:creator>mikeytes</dc:creator>
      <dc:date>2025-09-03T13:48:03Z</dc:date>
    </item>
  </channel>
</rss>

