<?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 Which parameter data type will work for an excel spreadsheet? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/which-parameter-data-type-will-work-for-an-excel/m-p/1033618#M60244</link>
    <description>&lt;P&gt;I am trying to pass in an excel spreadsheet as in input into my script tool using arcpy.GetParametersAsText()&lt;/P&gt;&lt;P&gt;The script does post processing on the spreadsheet, the script itself works when it is run with hard coded file paths. However, I cannot seem to find the correct parameter data type to give to the tool in ArcGIS Pro. This tool takes in 2 files, one is a csv which it has no problem taking. The other is the excel spreadsheet which arc recognizes but only as a file that is holding a table. I cannot get arc to pass the whole file into the tool.&lt;/P&gt;&lt;P&gt;Any suggestions would be useful.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;J&lt;/P&gt;</description>
    <pubDate>Fri, 05 Mar 2021 22:06:40 GMT</pubDate>
    <dc:creator>JeremiahJones</dc:creator>
    <dc:date>2021-03-05T22:06:40Z</dc:date>
    <item>
      <title>Which parameter data type will work for an excel spreadsheet?</title>
      <link>https://community.esri.com/t5/python-questions/which-parameter-data-type-will-work-for-an-excel/m-p/1033618#M60244</link>
      <description>&lt;P&gt;I am trying to pass in an excel spreadsheet as in input into my script tool using arcpy.GetParametersAsText()&lt;/P&gt;&lt;P&gt;The script does post processing on the spreadsheet, the script itself works when it is run with hard coded file paths. However, I cannot seem to find the correct parameter data type to give to the tool in ArcGIS Pro. This tool takes in 2 files, one is a csv which it has no problem taking. The other is the excel spreadsheet which arc recognizes but only as a file that is holding a table. I cannot get arc to pass the whole file into the tool.&lt;/P&gt;&lt;P&gt;Any suggestions would be useful.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;J&lt;/P&gt;</description>
      <pubDate>Fri, 05 Mar 2021 22:06:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/which-parameter-data-type-will-work-for-an-excel/m-p/1033618#M60244</guid>
      <dc:creator>JeremiahJones</dc:creator>
      <dc:date>2021-03-05T22:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: Which parameter data type will work for an excel spreadsheet?</title>
      <link>https://community.esri.com/t5/python-questions/which-parameter-data-type-will-work-for-an-excel/m-p/1033624#M60246</link>
      <description>&lt;P&gt;Try workspace, then you have to read the sheet name&lt;/P&gt;&lt;P&gt;&lt;A href="https://gis.stackexchange.com/questions/65035/reading-excel-sheet-in-arcpy-script" target="_blank"&gt;python - Reading Excel sheet in ArcPy script? - Geographic Information Systems Stack Exchange&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Alternately, just get the filename and you can use the xlrd module directly&lt;/P&gt;</description>
      <pubDate>Fri, 05 Mar 2021 22:25:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/which-parameter-data-type-will-work-for-an-excel/m-p/1033624#M60246</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-03-05T22:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: Which parameter data type will work for an excel spreadsheet?</title>
      <link>https://community.esri.com/t5/python-questions/which-parameter-data-type-will-work-for-an-excel/m-p/1033630#M60247</link>
      <description>&lt;P&gt;My issue is the data type parameter when making the script tool. I can't find the correct parameter type that will just pass in the excel file. Basically it needs to be passed in as a filepath.&lt;/P&gt;&lt;P&gt;There is no issues with my script, it runs and processes as intended. Arc just won't allow me to give the filepath to the spreadsheet.&lt;/P&gt;&lt;P&gt;Hopefully this screenshot will help. With the MSAG_Current as a file, arc will see the xl spreadsheet but asks me to open it, because it wants the table inside. Which isn't what my script wants, all the script wants is the filepath.&lt;/P&gt;&lt;P&gt;Thank you Dan.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Mar 2021 22:48:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/which-parameter-data-type-will-work-for-an-excel/m-p/1033630#M60247</guid>
      <dc:creator>JeremiahJones</dc:creator>
      <dc:date>2021-03-05T22:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: Which parameter data type will work for an excel spreadsheet?</title>
      <link>https://community.esri.com/t5/python-questions/which-parameter-data-type-will-work-for-an-excel/m-p/1033637#M60248</link>
      <description>&lt;P&gt;Well, in my excel to table, I used Any Value, so give it a shot if you don't want to navigate to a sheet&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="excel_to_table.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/7728i6891D152211B4A95/image-size/medium?v=v2&amp;amp;px=400" role="button" title="excel_to_table.png" alt="excel_to_table.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Mar 2021 23:02:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/which-parameter-data-type-will-work-for-an-excel/m-p/1033637#M60248</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-03-05T23:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: Which parameter data type will work for an excel spreadsheet?</title>
      <link>https://community.esri.com/t5/python-questions/which-parameter-data-type-will-work-for-an-excel/m-p/1033643#M60249</link>
      <description>&lt;P&gt;Well, if I navigate to the xlsx file using Any Value it still wants to open up to the table. But if I use the path to the table I just delete the table from the path and the script runs. That may be the best I get.&lt;/P&gt;&lt;P&gt;ESRI should have a XLSX parameter in my opinion, but hey that's why they pay me the small bucks. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you Dan.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Mar 2021 23:13:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/which-parameter-data-type-will-work-for-an-excel/m-p/1033643#M60249</guid>
      <dc:creator>JeremiahJones</dc:creator>
      <dc:date>2021-03-05T23:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: Which parameter data type will work for an excel spreadsheet?</title>
      <link>https://community.esri.com/t5/python-questions/which-parameter-data-type-will-work-for-an-excel/m-p/1034304#M60304</link>
      <description>&lt;P&gt;If you just want to point to an excel file (and not a sheet/range within the file) use the FILE data type, and then set the filter to XLSX.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MarkBryant_0-1615262854035.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/7897i0AB0B9A2C33BA331/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MarkBryant_0-1615262854035.png" alt="MarkBryant_0-1615262854035.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 04:09:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/which-parameter-data-type-will-work-for-an-excel/m-p/1034304#M60304</guid>
      <dc:creator>MarkBryant</dc:creator>
      <dc:date>2021-03-09T04:09:40Z</dc:date>
    </item>
  </channel>
</rss>

