<?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 Change field data type (sqltype) in Excel, add-in for Excel, or ArcGIS Rest Services Directory in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/change-field-data-type-sqltype-in-excel-add-in-for/m-p/1402642#M58395</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I have my data stored in Excel, saved as .csv. Online I have converted the .csv to a shapefile (zip).&amp;nbsp;&lt;BR /&gt;When I upload the shapefile (add as layer into Map Viewer), the column which has "hectares" should be recognized as a number with two decimal places. Instead, it defines it as text, which will be problematic during analysis later.&amp;nbsp;&lt;BR /&gt;(During the conversion from .csv to shp, I could not define the columns that I want recognized as a number.)&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;First option I tried:&lt;BR /&gt;&lt;/STRONG&gt;&lt;/U&gt;I have tried to correct this in the ArcGIS REST Services Directory --&amp;gt; Admin --&amp;gt; Update Definition:&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AnnekeBouman_0-1711729921615.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/99442i4D2978E133A3351E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AnnekeBouman_0-1711729921615.png" alt="AnnekeBouman_0-1711729921615.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;by editing:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000"&gt;&lt;FONT size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "name" : "Hectares",&lt;BR /&gt;&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "type" : "esriFieldTypeDouble",&lt;BR /&gt;&lt;/SPAN&gt;&lt;FONT size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "actualType" : "float",&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "alias" : "Hectares",&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "sqlType" : "sqlTypeFloat",&lt;BR /&gt;&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "nullable" : true,&lt;BR /&gt;&lt;/SPAN&gt;&lt;FONT size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "editable" : true,&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "visible" : true,&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "domain" : null,&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "defaultValue" : null&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;but even though the changes seem to get accepted, and I refreshed the page, they are not visible in Map Viewer.&amp;nbsp;&lt;BR /&gt;--&amp;gt; Question: should I have used a command somewhere that indicates I want to change field type from&amp;nbsp;&lt;FONT color="#008000"&gt;&lt;SPAN&gt;esriFieldTypeString &lt;FONT color="#000000"&gt;to&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;FONT color="#008000"&gt;&lt;SPAN&gt;esriFieldTypeDouble?&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Second option I have tried:&lt;BR /&gt;&lt;/STRONG&gt;&lt;/U&gt;I have also tried ArcGIS Assistant, by View Item JSON --&amp;gt; Edit JSON, but this also didn't update the changes in Map Viewer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AnnekeBouman_1-1711730092308.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/99444iF1C3FF789A3591CD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AnnekeBouman_1-1711730092308.png" alt="AnnekeBouman_1-1711730092308.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Third option I have tried:&lt;/STRONG&gt;&lt;/U&gt;&lt;BR /&gt;I have tried to get Excel to recognize the data in the column as number, by using "number format"&amp;nbsp; and specifying 2 decimals. Unfortunately, AGOL still treats it as text, instead of a number. In addition, the Polygon data I have stored in the same Excel under header WKT does not get recognized as spatial data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;The fourth and final option I have tried:&amp;nbsp;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/U&gt;I have tried the add-in ArcGIS for Excel. When I choose lat/long as coordinates, it will create a point, and I want the polygon data from column A to be used. But when I choose ESRI JSON Geometry, it does not recognize WKT as the geometry column.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AnnekeBouman_0-1711731265375.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/99445i2EFECDA7A3F19BD7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AnnekeBouman_0-1711731265375.png" alt="AnnekeBouman_0-1711731265375.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The big question: What will be my best option to change field data type (from string to double)?&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Information:&lt;BR /&gt;- I'm using ArcGis Online (Creator License)&lt;BR /&gt;- I have created the layer and am the host&lt;BR /&gt;&lt;SPAN&gt;- The Feature Layer has editing enabled&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I really hope someone can help, I have been at it for three full days and can't figure out what I'm doing wrong.&lt;BR /&gt;Thanks in advance!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 29 Mar 2024 17:00:36 GMT</pubDate>
    <dc:creator>AnnekeBouman</dc:creator>
    <dc:date>2024-03-29T17:00:36Z</dc:date>
    <item>
      <title>Change field data type (sqltype) in Excel, add-in for Excel, or ArcGIS Rest Services Directory</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/change-field-data-type-sqltype-in-excel-add-in-for/m-p/1402642#M58395</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I have my data stored in Excel, saved as .csv. Online I have converted the .csv to a shapefile (zip).&amp;nbsp;&lt;BR /&gt;When I upload the shapefile (add as layer into Map Viewer), the column which has "hectares" should be recognized as a number with two decimal places. Instead, it defines it as text, which will be problematic during analysis later.&amp;nbsp;&lt;BR /&gt;(During the conversion from .csv to shp, I could not define the columns that I want recognized as a number.)&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;First option I tried:&lt;BR /&gt;&lt;/STRONG&gt;&lt;/U&gt;I have tried to correct this in the ArcGIS REST Services Directory --&amp;gt; Admin --&amp;gt; Update Definition:&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AnnekeBouman_0-1711729921615.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/99442i4D2978E133A3351E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AnnekeBouman_0-1711729921615.png" alt="AnnekeBouman_0-1711729921615.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;by editing:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000"&gt;&lt;FONT size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "name" : "Hectares",&lt;BR /&gt;&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "type" : "esriFieldTypeDouble",&lt;BR /&gt;&lt;/SPAN&gt;&lt;FONT size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "actualType" : "float",&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "alias" : "Hectares",&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "sqlType" : "sqlTypeFloat",&lt;BR /&gt;&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "nullable" : true,&lt;BR /&gt;&lt;/SPAN&gt;&lt;FONT size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "editable" : true,&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "visible" : true,&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "domain" : null,&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "defaultValue" : null&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;but even though the changes seem to get accepted, and I refreshed the page, they are not visible in Map Viewer.&amp;nbsp;&lt;BR /&gt;--&amp;gt; Question: should I have used a command somewhere that indicates I want to change field type from&amp;nbsp;&lt;FONT color="#008000"&gt;&lt;SPAN&gt;esriFieldTypeString &lt;FONT color="#000000"&gt;to&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;FONT color="#008000"&gt;&lt;SPAN&gt;esriFieldTypeDouble?&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Second option I have tried:&lt;BR /&gt;&lt;/STRONG&gt;&lt;/U&gt;I have also tried ArcGIS Assistant, by View Item JSON --&amp;gt; Edit JSON, but this also didn't update the changes in Map Viewer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AnnekeBouman_1-1711730092308.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/99444iF1C3FF789A3591CD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AnnekeBouman_1-1711730092308.png" alt="AnnekeBouman_1-1711730092308.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Third option I have tried:&lt;/STRONG&gt;&lt;/U&gt;&lt;BR /&gt;I have tried to get Excel to recognize the data in the column as number, by using "number format"&amp;nbsp; and specifying 2 decimals. Unfortunately, AGOL still treats it as text, instead of a number. In addition, the Polygon data I have stored in the same Excel under header WKT does not get recognized as spatial data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;The fourth and final option I have tried:&amp;nbsp;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/U&gt;I have tried the add-in ArcGIS for Excel. When I choose lat/long as coordinates, it will create a point, and I want the polygon data from column A to be used. But when I choose ESRI JSON Geometry, it does not recognize WKT as the geometry column.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AnnekeBouman_0-1711731265375.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/99445i2EFECDA7A3F19BD7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AnnekeBouman_0-1711731265375.png" alt="AnnekeBouman_0-1711731265375.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The big question: What will be my best option to change field data type (from string to double)?&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Information:&lt;BR /&gt;- I'm using ArcGis Online (Creator License)&lt;BR /&gt;- I have created the layer and am the host&lt;BR /&gt;&lt;SPAN&gt;- The Feature Layer has editing enabled&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I really hope someone can help, I have been at it for three full days and can't figure out what I'm doing wrong.&lt;BR /&gt;Thanks in advance!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2024 17:00:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/change-field-data-type-sqltype-in-excel-add-in-for/m-p/1402642#M58395</guid>
      <dc:creator>AnnekeBouman</dc:creator>
      <dc:date>2024-03-29T17:00:36Z</dc:date>
    </item>
  </channel>
</rss>

