<?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: How can I specify the data types for the columns in a CSV I upload? in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/how-can-i-specify-the-data-types-for-the-columns/m-p/546914#M27692</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rebecca, of course, there is an example of the data that I'm trying to upload. The fields with quotes are the fields with problems to recognized as string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;operator_id,line_id,campaign_id,run_id,CreationDate,Creator,EditDate,Editor,Longitude,Latitude&lt;BR /&gt;operatorName,lineName,"1","2",2/16/2018 9:44:16 PM,userName,2/16/2018 9:44:16,UserName,-75.244467,-3.168276&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already tried with single and double quotes but it still see it as a number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Feb 2018 17:58:15 GMT</pubDate>
    <dc:creator>MauricioGongora</dc:creator>
    <dc:date>2018-02-19T17:58:15Z</dc:date>
    <item>
      <title>How can I specify the data types for the columns in a CSV I upload?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-can-i-specify-the-data-types-for-the-columns/m-p/546912#M27690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to upload data to a feature layer using a CSV file, but some columns that are strings, ArcGIS recognized it as a number and I can't wire that columns. A dummy row don't work for me because I have to load three values that are choices and they are string type. The disponibles choices are "1", "2", or "3", if I use a dummy row to set those columns as string, for example "abc123", an Object Null Reference Exception is thrown, because "abc123" is an avoide value for these fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is any way to specify that a column is a string type instead a number, when the value is "1", "2", etc?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2018 21:38:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-can-i-specify-the-data-types-for-the-columns/m-p/546912#M27690</guid>
      <dc:creator>MauricioGongora</dc:creator>
      <dc:date>2018-02-16T21:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: How can I specify the data types for the columns in a CSV I upload?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-can-i-specify-the-data-types-for-the-columns/m-p/546913#M27691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would think that if the value is in quote, i.e. "1", it would see it as a string...but I haven't uploaded csv files to Online lately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you attach a copy of the first few rows of your csv so others can test?&amp;nbsp; The data can be dummy, as long as the formatting is the same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Feb 2018 16:47:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-can-i-specify-the-data-types-for-the-columns/m-p/546913#M27691</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2018-02-19T16:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: How can I specify the data types for the columns in a CSV I upload?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-can-i-specify-the-data-types-for-the-columns/m-p/546914#M27692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rebecca, of course, there is an example of the data that I'm trying to upload. The fields with quotes are the fields with problems to recognized as string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;operator_id,line_id,campaign_id,run_id,CreationDate,Creator,EditDate,Editor,Longitude,Latitude&lt;BR /&gt;operatorName,lineName,"1","2",2/16/2018 9:44:16 PM,userName,2/16/2018 9:44:16,UserName,-75.244467,-3.168276&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already tried with single and double quotes but it still see it as a number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Feb 2018 17:58:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-can-i-specify-the-data-types-for-the-columns/m-p/546914#M27692</guid>
      <dc:creator>MauricioGongora</dc:creator>
      <dc:date>2018-02-19T17:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: How can I specify the data types for the columns in a CSV I upload?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-can-i-specify-the-data-types-for-the-columns/m-p/546915#M27693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the fields campaign_id and run_id are select_one_choice fields and string type too, the options can be option1, option2, but the values are "1", "2" strings, not numbers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Feb 2018 18:00:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-can-i-specify-the-data-types-for-the-columns/m-p/546915#M27693</guid>
      <dc:creator>MauricioGongora</dc:creator>
      <dc:date>2018-02-19T18:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: How can I specify the data types for the columns in a CSV I upload?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-can-i-specify-the-data-types-for-the-columns/m-p/546916#M27694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, I tried a few different configurations for the campaign_id and run_id .&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;&amp;lt;Note:&amp;nbsp; I'll leave what I started writing below, but I don't think this is an option, since it is no better than the results you were getting above, that is, not wanting to put in a fake value....although you would probably only have to do it for the first line.&amp;nbsp; This may give you or others a better idea.&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although this may not be an option, it did stick as a string if I put a '&amp;nbsp; (single quote) in front, and left off the double quotes completely.&amp;nbsp; A single quote in Excel is seen as a align-left (if I remember correctly) and therefore is invalid for a numeric field. I'm assuming it is now a sctring since if I go into the configure pop-up and then the configure attributes, it shows it as a "single line"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/396939_pastedImage_2.png" style="width: 557px; height: 319px;" /&gt;&lt;/P&gt;&lt;P&gt;I used my own coordinates so I could show it on my base map, but this is the input of my .csv file.&amp;nbsp; I found that if I opened it in Excel to make it easier to change, then it didn't work, so I was editing in Notepad++&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;operator_id,line_id,campaign_id,run_id,CreationDate,Creator,EditDate,Editor,Longitude,Latitude
operatorName,lineName,'1,'2,2/16/2018 21:44,userName,2/16/2018 9:44,UserName,-154.244467,64
operatorNam2,lineNam2,'1,'2,2/16/2018 21:44,userName,2/16/2018 9:44,UserName,-154.244467,64&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;NOTE: the pop-up doesn't show the single quote, but it does seem to show when viewing the attribute tables...so this may not help any.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is likely a better way to do this, but if in a hurry, that might be a quick fix.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:40:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-can-i-specify-the-data-types-for-the-columns/m-p/546916#M27694</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2021-12-11T23:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: How can I specify the data types for the columns in a CSV I upload?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-can-i-specify-the-data-types-for-the-columns/m-p/546917#M27695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, the single quote does not work, I tried it too. ArcGIS throw an exception and I suppose that is because '1 is not a valid value for the domain of the field, that is "1", "2", for example. I neither can use a first row as dummy to specify the data types because the uploading fails due to the domain of the select_one field.&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/396913_pastedImage_1.png" style="width: 620px; height: 401px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I probe with a single quote in another string field that is text and the value stored is textually '1, and it is an invalid value for the select_one field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I thing that I'll have to change the values for the domain to alpha-numeric string but it mean that I'll have to update the other apps that uses the feature service too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other problem that I've had is that the coordinates doesn't are recognized, the system change the values to a non valid latitude and longitude, I don't know which is the correct format for the coordinates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know if because the feature layer was created from a survey of Survey123, It works different and has&amp;nbsp;these troubles that if the feature was created with another method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Feb 2018 19:12:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-can-i-specify-the-data-types-for-the-columns/m-p/546917#M27695</guid>
      <dc:creator>MauricioGongora</dc:creator>
      <dc:date>2018-02-19T19:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: How can I specify the data types for the columns in a CSV I upload?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-can-i-specify-the-data-types-for-the-columns/m-p/546918#M27696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'll tag the &lt;A href="https://community.esri.com/groups/survey123?sr=search&amp;amp;searchId=6076e8f8-522e-48f1-af1e-41a6f4a41552&amp;amp;searchIndex=0"&gt;https://community.esri.com/groups/survey123?sr=search&amp;amp;searchId=6076e8f8-522e-48f1-af1e-41a6f4a41552&amp;amp;searchIndex=0&lt;/A&gt;‌ space since they may have some workarounds or suggestions.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Feb 2018 19:16:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-can-i-specify-the-data-types-for-the-columns/m-p/546918#M27696</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2018-02-19T19:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: How can I specify the data types for the columns in a CSV I upload?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-can-i-specify-the-data-types-for-the-columns/m-p/546919#M27697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Feb 2018 19:19:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-can-i-specify-the-data-types-for-the-columns/m-p/546919#M27697</guid>
      <dc:creator>MauricioGongora</dc:creator>
      <dc:date>2018-02-19T19:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: How can I specify the data types for the columns in a CSV I upload?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-can-i-specify-the-data-types-for-the-columns/m-p/546920#M27698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just did a simple test to load the csv from my computer and when I do so, it allows me to change the data format that it will apply to the fields. See the interface below (sorry for the Spanish text). As you can see the field campaign_id is detected as integer field:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/396885_pastedImage_1.png" style="width: 620px; height: 373px;" /&gt;&lt;/P&gt;&lt;P&gt;When I click on the field type, I can set it to Text:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/396886_pastedImage_2.png" style="width: 620px; height: 153px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The resulting service seems to be correct if I validate the field type at the REST endpoint:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/396947_pastedImage_3.png" style="width: 620px; height: 164px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Feb 2018 19:53:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-can-i-specify-the-data-types-for-the-columns/m-p/546920#M27698</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2018-02-19T19:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: How can I specify the data types for the columns in a CSV I upload?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-can-i-specify-the-data-types-for-the-columns/m-p/546921#M27699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I never thought about using the "Add Item" from computer.&amp;nbsp; I was draggin and dropping or just adding in the map itself.&amp;nbsp; I think you have the answer &lt;A href="https://community.esri.com/people/xander_bakker"&gt;xander_bakker&lt;/A&gt;&amp;nbsp;.&amp;nbsp; That worked for me too (in English even. &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&amp;nbsp;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Feb 2018 20:29:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-can-i-specify-the-data-types-for-the-columns/m-p/546921#M27699</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2018-02-19T20:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: How can I specify the data types for the columns in a CSV I upload?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-can-i-specify-the-data-types-for-the-columns/m-p/546922#M27700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Xander, thank you, that is a good solution, there is any way to relate the new layer created through that way with the older layer that was created from a survey, since the applications are tied to the current layer?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Uploading the CSV file as a new layer I can create data domain for a select type field?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Feb 2018 21:09:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-can-i-specify-the-data-types-for-the-columns/m-p/546922#M27700</guid>
      <dc:creator>MauricioGongora</dc:creator>
      <dc:date>2018-02-19T21:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: How can I specify the data types for the columns in a CSV I upload?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-can-i-specify-the-data-types-for-the-columns/m-p/546923#M27701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe this document can help:&amp;nbsp;&lt;A class="link-titled" href="https://support.esri.com/en/technical-article/000014561" title="https://support.esri.com/en/technical-article/000014561"&gt;How To: Add coded value domains to a hosted feature service in ArcGIS Online&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have a web map / web application that is consuming the "old" service, you could use&amp;nbsp;&lt;A class="link-titled" href="https://ago-assistant.esri.com/" title="https://ago-assistant.esri.com/"&gt;ArcGIS Online Assistant&lt;/A&gt;&amp;nbsp;to redirect the service. Be careful, if the schema has changed you may need to edit the json itself (which is kinda risky)&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Feb 2018 22:03:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-can-i-specify-the-data-types-for-the-columns/m-p/546923#M27701</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2018-02-19T22:03:52Z</dc:date>
    </item>
  </channel>
</rss>

