<?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: VSCode unable to read file even though it's there in the defined path in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/vscode-unable-to-read-file-even-though-it-s-there/m-p/1388916#M79547</link>
    <description>&lt;P&gt;Yup that did it, cheers for the super quick response &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Feb 2024 16:39:51 GMT</pubDate>
    <dc:creator>Ed_</dc:creator>
    <dc:date>2024-02-29T16:39:51Z</dc:date>
    <item>
      <title>VSCode unable to read file even though it's there in the defined path</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/vscode-unable-to-read-file-even-though-it-s-there/m-p/1388901#M79542</link>
      <description>&lt;P&gt;So I exported the code from a model builder model in ArcGIS Pro 3.1. I then opened the code in VScode to firstly see whether the code is running fine from VScode or not.&lt;/P&gt;&lt;P&gt;So the code fails where it has to read an xlsx file, even though the file does exist in the location path defined.&lt;/P&gt;&lt;P&gt;Is this a path issue? How can I fix this?&lt;/P&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;ERROR 000732: Input Excel File: Dataset \bc\efs\PowerBI\EPGMD\INNOVATION UNIT\CulturalArts\Grants.xlsx does not exist or is not supported&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code line:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Grants_xlsx = "\\bc\efs\PowerBI\EPGMD\INNOVATION UNIT\CulturalArts\Grants.xlsx"

# Process: Excel To Table (Excel To Table) (conversion)
    Grants_ExcelToTable = "O:\\psd\\Ed\\GeocodeProject\\ModelGeodatabase.gdb\\Grants_ExcelToTable"
    arcpy.conversion.ExcelToTable(Input_Excel_File=Grants_xlsx, Output_Table=Grants_ExcelToTable, Sheet="Grants")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;File location:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ed__0-1709223884729.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/96325i9F7BD507D82A9E70/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ed__0-1709223884729.png" alt="Ed__0-1709223884729.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 16:25:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/vscode-unable-to-read-file-even-though-it-s-there/m-p/1388901#M79542</guid>
      <dc:creator>Ed_</dc:creator>
      <dc:date>2024-02-29T16:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: VSCode unable to read file even though it's there in the defined path</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/vscode-unable-to-read-file-even-though-it-s-there/m-p/1388906#M79543</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/554773"&gt;@Ed_&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In your error I see that the first \ in your line isn't showing as double, you may try this:&lt;/P&gt;&lt;P&gt;Grants_xlsx = r"\\bc\efs\PowerBI\EPGMD\INNOVATION UNIT\CulturalArts\Grants.xlsx"&lt;/P&gt;&lt;P&gt;This may take in the second \.&lt;/P&gt;&lt;P&gt;Hope that helps!&lt;/P&gt;&lt;P&gt;Cody&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 16:29:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/vscode-unable-to-read-file-even-though-it-s-there/m-p/1388906#M79543</guid>
      <dc:creator>CodyPatterson</dc:creator>
      <dc:date>2024-02-29T16:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: VSCode unable to read file even though it's there in the defined path</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/vscode-unable-to-read-file-even-though-it-s-there/m-p/1388916#M79547</link>
      <description>&lt;P&gt;Yup that did it, cheers for the super quick response &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 16:39:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/vscode-unable-to-read-file-even-though-it-s-there/m-p/1388916#M79547</guid>
      <dc:creator>Ed_</dc:creator>
      <dc:date>2024-02-29T16:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: VSCode unable to read file even though it's there in the defined path</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/vscode-unable-to-read-file-even-though-it-s-there/m-p/1388917#M79548</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/554773"&gt;@Ed_&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No problem at all, glad to help out!&lt;/P&gt;&lt;P&gt;Cody&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 16:40:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/vscode-unable-to-read-file-even-though-it-s-there/m-p/1388917#M79548</guid>
      <dc:creator>CodyPatterson</dc:creator>
      <dc:date>2024-02-29T16:40:34Z</dc:date>
    </item>
  </channel>
</rss>

