<?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 and arcgis server Data Store in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/g-esri-variable-and-arcgis-server-data-store/m-p/1253204#M66720</link>
    <description>&lt;P&gt;Hi, Im having trouble with the added "g_ESRI_variable", when publishing a script tool as an geoprocessing service. I see several posts on this topic, and it seems that the&amp;nbsp;g_ESRI_variable should &lt;EM&gt;not&lt;/EM&gt; appear if the, in my case folder, is set in the Data Store (arcgis server manager).&lt;/P&gt;&lt;P&gt;Do I understand this correctly?&lt;/P&gt;&lt;P&gt;In detail: I write files to&amp;nbsp;C:\inetpub\wwwroot\plot. This folder is added as a Data Store. Still, after publishing the script is rewritten to&amp;nbsp;g_ESRI_variable_1 =&amp;nbsp;os.path.join(arcpy.env.packageWorkspace,'plot').&amp;nbsp;&lt;/P&gt;&lt;P&gt;When manually adjusting the&amp;nbsp;g_ESRI_variable_1 to&amp;nbsp;g_ESRI_variable_1 = r'C:\inetpub\wwwroot\plot' the service seems to work and write files to this folder.&lt;/P&gt;&lt;P&gt;Any pointers to why this happens even if folder is registered in Data Store ?&lt;/P&gt;</description>
    <pubDate>Tue, 31 Jan 2023 09:51:40 GMT</pubDate>
    <dc:creator>Torbjørn_EidsheimBøe</dc:creator>
    <dc:date>2023-01-31T09:51:40Z</dc:date>
    <item>
      <title>g_ESRI_variable and arcgis server Data Store</title>
      <link>https://community.esri.com/t5/python-questions/g-esri-variable-and-arcgis-server-data-store/m-p/1253204#M66720</link>
      <description>&lt;P&gt;Hi, Im having trouble with the added "g_ESRI_variable", when publishing a script tool as an geoprocessing service. I see several posts on this topic, and it seems that the&amp;nbsp;g_ESRI_variable should &lt;EM&gt;not&lt;/EM&gt; appear if the, in my case folder, is set in the Data Store (arcgis server manager).&lt;/P&gt;&lt;P&gt;Do I understand this correctly?&lt;/P&gt;&lt;P&gt;In detail: I write files to&amp;nbsp;C:\inetpub\wwwroot\plot. This folder is added as a Data Store. Still, after publishing the script is rewritten to&amp;nbsp;g_ESRI_variable_1 =&amp;nbsp;os.path.join(arcpy.env.packageWorkspace,'plot').&amp;nbsp;&lt;/P&gt;&lt;P&gt;When manually adjusting the&amp;nbsp;g_ESRI_variable_1 to&amp;nbsp;g_ESRI_variable_1 = r'C:\inetpub\wwwroot\plot' the service seems to work and write files to this folder.&lt;/P&gt;&lt;P&gt;Any pointers to why this happens even if folder is registered in Data Store ?&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 09:51:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/g-esri-variable-and-arcgis-server-data-store/m-p/1253204#M66720</guid>
      <dc:creator>Torbjørn_EidsheimBøe</dc:creator>
      <dc:date>2023-01-31T09:51:40Z</dc:date>
    </item>
  </channel>
</rss>

