<?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 to upload a CSV to a web service? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-to-upload-a-csv-to-a-web-service/m-p/186458#M14347</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have access to ArcGIS Server? If so, I would try to set it up as a geoprocessing service.&amp;nbsp; &lt;A href="http://server.arcgis.com/en/server/latest/publish-services/windows/what-is-a-geoprocessing-service-.htm" title="http://server.arcgis.com/en/server/latest/publish-services/windows/what-is-a-geoprocessing-service-.htm"&gt;What is a geoprocessing service?—Documentation (10.3 and 10.3.1) | ArcGIS for Server&lt;/A&gt;&amp;nbsp; and then look at sharing it with you AGOL account &lt;A href="http://server.arcgis.com/en/server/latest/publish-services/windows/about-sharing-services-with-your-arcgis-organization.htm" title="http://server.arcgis.com/en/server/latest/publish-services/windows/about-sharing-services-with-your-arcgis-organization.htm"&gt;About sharing services with your ArcGIS organization—Documentation (10.3 and 10.3.1) | ArcGIS for Server&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you do not have access to AGS, I'm not sure, but I'm sure others will know if/how it is done.&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Sep 2015 18:43:58 GMT</pubDate>
    <dc:creator>RebeccaStrauch__GISP</dc:creator>
    <dc:date>2015-09-11T18:43:58Z</dc:date>
    <item>
      <title>How to upload a CSV to a web service?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-upload-a-csv-to-a-web-service/m-p/186457#M14346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I thought this would be a good place to figure out how to set up a web service to accept a CSV as an input. To keep it short, I want a user to upload a CSV file with lat/long pairings, and the tool will perform a spatial join and give the user the joined fields in an excel spreadsheet. I already have a script tool that works perfectly, but I cannot figure out how to set up a web service to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently the (successful) script tool has two parameters: input and output, both of which are File Data Types. Any suggestions on the best way to go about creating a web service to perform this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2015 16:47:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-upload-a-csv-to-a-web-service/m-p/186457#M14346</guid>
      <dc:creator>MichaelKozub</dc:creator>
      <dc:date>2015-09-11T16:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload a CSV to a web service?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-upload-a-csv-to-a-web-service/m-p/186458#M14347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have access to ArcGIS Server? If so, I would try to set it up as a geoprocessing service.&amp;nbsp; &lt;A href="http://server.arcgis.com/en/server/latest/publish-services/windows/what-is-a-geoprocessing-service-.htm" title="http://server.arcgis.com/en/server/latest/publish-services/windows/what-is-a-geoprocessing-service-.htm"&gt;What is a geoprocessing service?—Documentation (10.3 and 10.3.1) | ArcGIS for Server&lt;/A&gt;&amp;nbsp; and then look at sharing it with you AGOL account &lt;A href="http://server.arcgis.com/en/server/latest/publish-services/windows/about-sharing-services-with-your-arcgis-organization.htm" title="http://server.arcgis.com/en/server/latest/publish-services/windows/about-sharing-services-with-your-arcgis-organization.htm"&gt;About sharing services with your ArcGIS organization—Documentation (10.3 and 10.3.1) | ArcGIS for Server&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you do not have access to AGS, I'm not sure, but I'm sure others will know if/how it is done.&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2015 18:43:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-upload-a-csv-to-a-web-service/m-p/186458#M14347</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2015-09-11T18:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload a CSV to a web service?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-upload-a-csv-to-a-web-service/m-p/186459#M14348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rebecca. I do have access to ArcGIS Server and I have created a GP service with this script tool. I just haven't been able to figure out the proper way to allow CSV uploads. It seems that setting the input parameter is where my issue lies.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2015 19:15:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-upload-a-csv-to-a-web-service/m-p/186459#M14348</guid>
      <dc:creator>MichaelKozub</dc:creator>
      <dc:date>2015-09-11T19:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload a CSV to a web service?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-upload-a-csv-to-a-web-service/m-p/186460#M14349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael, &lt;/P&gt;&lt;P&gt;Wish I could help more, but I'm away from my server for another week, so anything more would be speculation. But I am interested in the topic so will follow and jump in if/when I can think of anything more.&amp;nbsp; Is it possible to share your script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2015 23:24:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-upload-a-csv-to-a-web-service/m-p/186460#M14349</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2015-09-11T23:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload a CSV to a web service?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-upload-a-csv-to-a-web-service/m-p/186461#M14350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy

inputTable = arcpy.GetParameter(0)

#When running in the python window in ArcMap, I comment out line 3 above and un-comment line 6.&amp;nbsp; 
#inputTable = "C:\\Users\\user1\\Desktop\\example.csv"

arcpy.MakeXYEventLayer_management(inputTable, "Longitude", "Latitude", "tableXY")

arcpy.FeatureClassToFeatureClass_conversion("tableXY", "%scratchfolder%\\Scratch.gdb\\", "tableXYfc")

arcpy.SpatialJoin_analysis("%scratchfolder%\\Scratch.gdb\\tableXYfc", "Database Connections\\example.sde\\example.polygons", "in_memory\\_join","","")

arcpy.TableToExcel_conversion("in_memory\\_join", "C:\\Users\\user1\\Desktop\\final_export.xls")&lt;/PRE&gt;&lt;P&gt;Here's the script which (which works perfectly in ArcMap).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 09:26:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-upload-a-csv-to-a-web-service/m-p/186461#M14350</guid>
      <dc:creator>MichaelKozub</dc:creator>
      <dc:date>2021-12-11T09:26:58Z</dc:date>
    </item>
  </channel>
</rss>

