<?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 g_ESRI_variable adds extra letter to path, creating invalid syntax in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/g-esri-variable-adds-extra-letter-to-path-creating/m-p/1220888#M34278</link>
    <description>&lt;P&gt;I have recently published a geoprocessing service and there is a path it replaces with the correct location on the server. I use a registered folder for my data and the publisher and server locations of that folder are different; this the path the g_ESRI_variable is attempting to replace. This is what the registered folder is set up as:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 495px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/53378iD9472EDE11B58D26/image-dimensions/495x489?v=v2" width="495" height="489" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my script, I have hardcoded the path needed to access files, this is the publisher folder path:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;workspace = r'E:\ArcGIS_RegisteredFolders_DO_NOT_DELETE\HabitatMapPrint'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The g_ESRI_variable being created and used to replace the above value for the workspace variable is this:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;g_ESRI_variable_4 = 'D:\\RegisteredFolders_DO_NOT_DELETE\\HabitatMapPrint't'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note that it is adding&amp;nbsp;&lt;STRONG&gt;t'&lt;/STRONG&gt; to the end. I have no clue why, but it is causing an invalid syntax error if I try to run the geoprocessing tool from the server:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2022-10-11 165118.png" style="width: 657px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/53383iE832DB4AF787A8E8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2022-10-11 165118.png" alt="Screenshot 2022-10-11 165118.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These are the settings when I overwrite the service:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2022-10-11 164500.png" style="width: 388px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/53381i590F34AC867D81F9/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2022-10-11 164500.png" alt="Screenshot 2022-10-11 164500.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have also deleted the service and attempted to publish brand new, it doesn't make a difference.&lt;/P&gt;</description>
    <pubDate>Tue, 11 Oct 2022 20:51:59 GMT</pubDate>
    <dc:creator>MKF62</dc:creator>
    <dc:date>2022-10-11T20:51:59Z</dc:date>
    <item>
      <title>g_ESRI_variable adds extra letter to path, creating invalid syntax</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/g-esri-variable-adds-extra-letter-to-path-creating/m-p/1220888#M34278</link>
      <description>&lt;P&gt;I have recently published a geoprocessing service and there is a path it replaces with the correct location on the server. I use a registered folder for my data and the publisher and server locations of that folder are different; this the path the g_ESRI_variable is attempting to replace. This is what the registered folder is set up as:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 495px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/53378iD9472EDE11B58D26/image-dimensions/495x489?v=v2" width="495" height="489" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my script, I have hardcoded the path needed to access files, this is the publisher folder path:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;workspace = r'E:\ArcGIS_RegisteredFolders_DO_NOT_DELETE\HabitatMapPrint'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The g_ESRI_variable being created and used to replace the above value for the workspace variable is this:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;g_ESRI_variable_4 = 'D:\\RegisteredFolders_DO_NOT_DELETE\\HabitatMapPrint't'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note that it is adding&amp;nbsp;&lt;STRONG&gt;t'&lt;/STRONG&gt; to the end. I have no clue why, but it is causing an invalid syntax error if I try to run the geoprocessing tool from the server:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2022-10-11 165118.png" style="width: 657px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/53383iE832DB4AF787A8E8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2022-10-11 165118.png" alt="Screenshot 2022-10-11 165118.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These are the settings when I overwrite the service:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2022-10-11 164500.png" style="width: 388px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/53381i590F34AC867D81F9/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2022-10-11 164500.png" alt="Screenshot 2022-10-11 164500.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have also deleted the service and attempted to publish brand new, it doesn't make a difference.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2022 20:51:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/g-esri-variable-adds-extra-letter-to-path-creating/m-p/1220888#M34278</guid>
      <dc:creator>MKF62</dc:creator>
      <dc:date>2022-10-11T20:51:59Z</dc:date>
    </item>
  </channel>
</rss>

