<?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: Webtool with registered data source in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/webtool-with-registered-data-source/m-p/1292887#M36062</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;Just checking if "G:\1_Projekte\ALG\SDE-Connections\AGIS_309_U_ALG_APP.sde" is registered as a data source with ArcGIS Enterprise and the account running ArcGIS Server has read access to that location? Is that G drive not located on the server where ArcGIS Enterprise is running?&lt;/P&gt;&lt;P&gt;When you published the tool, did it prompt to copy data when publishing?&lt;/P&gt;</description>
    <pubDate>Thu, 25 May 2023 01:17:43 GMT</pubDate>
    <dc:creator>sxw_eaglegis</dc:creator>
    <dc:date>2023-05-25T01:17:43Z</dc:date>
    <item>
      <title>Webtool with registered data source</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/webtool-with-registered-data-source/m-p/1289951#M35941</link>
      <description>&lt;P&gt;I'm publishing a webtool to our portal server. In the webtool i'm coping multiple feature classes pack them in a zip file and use this path for as output paramter for a later download. If I'm using my webtool with one feature class it works fine:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;source = os.path.join(r"G:\1_Projekte\ALG\SDE-Connections\AGIS_309_U_ALG_APP.sde","AGIS_309_Prod.U_ALG_APP.alg_floraapp_saatgut_edit_f")
    print(source)
    gp.AddMessage(source)
    arcpy.FeatureClassToGeodatabase_conversion([source],str(gdbPath))
    gp.AddMessage("Data copied")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I try to advance the script to multiple feature classe like this it fails on the server. The paths to the registered enterprise geodatabase is not resolved:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;sources = []
sources.append(os.path.join(r"G:\1_Projekte\ALG\SDE-Connections\AGIS_309_U_ALG_APP.sde","AGIS_309_Prod.U_ALG_APP.alg_floraapp_massnahm_edit_f"))
sources.append(os.path.join(r"G:\1_Projekte\ALG\SDE-Connections\AGIS_309_U_ALG_APP.sde","AGIS_309_Prod.U_ALG_APP.alg_floraapp_saatgut_edit_f"))

scratchFolder = arcpy.env.scratchFolder

uid = uuid.uuid4().hex
tempPath = Path(scratchFolder).joinpath(uid)
if not tempPath.exists():
    tempPath.mkdir()

gdbPath = arcpy.CreateFileGDB_management(str(tempPath), "{0}.gdb".format("floraapp"))

arcpy.FeatureClassToGeodatabase_conversion(sources,str(gdbPath))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried to iterate over the workspace like this. It failed too on the server:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;    arcpy.env.workspace = 'G:/1_Projekte/ALG/SDE-Connections/AGIS_309_U_ALG_APP.sde'
    gp.AddMessage(str(arcpy.env.workspace))
    names = []
    names.append("AGIS_309_Prod.U_ALG_APP.alg_floraapp_massnahm_edit_f")
    names.append("AGIS_309_Prod.U_ALG_APP.alg_floraapp_saatgut_edit_f")
    sources = []
    for fc in arcpy.ListFeatureClasses():
        if str(fc) in names:
            sources.append(fc)

    scratchFolder = arcpy.env.scratchFolder
    print(scratchFolder)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The output from line 2 is expected to be be a path to the registered connections but looks like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;D:\\arcgisserver\\directories\\arcgissystem\\arcgisinput\\ALG\\DownloadFloraAppDataToFGDB.GPServer\\extracted\\p30&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2023 04:44:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/webtool-with-registered-data-source/m-p/1289951#M35941</guid>
      <dc:creator>Zoggo</dc:creator>
      <dc:date>2023-05-17T04:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: Webtool with registered data source</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/webtool-with-registered-data-source/m-p/1292887#M36062</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;Just checking if "G:\1_Projekte\ALG\SDE-Connections\AGIS_309_U_ALG_APP.sde" is registered as a data source with ArcGIS Enterprise and the account running ArcGIS Server has read access to that location? Is that G drive not located on the server where ArcGIS Enterprise is running?&lt;/P&gt;&lt;P&gt;When you published the tool, did it prompt to copy data when publishing?&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2023 01:17:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/webtool-with-registered-data-source/m-p/1292887#M36062</guid>
      <dc:creator>sxw_eaglegis</dc:creator>
      <dc:date>2023-05-25T01:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Webtool with registered data source</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/webtool-with-registered-data-source/m-p/1295691#M36145</link>
      <description>&lt;P&gt;The G-Drive is a local Drive and not located on the server.&amp;nbsp;&lt;SPAN&gt;"G:\1_Projekte\ALG\SDE-Connections\AGIS_309_U_ALG_APP.sde" is a registered data source und the data won't be copied to the server.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2023 06:19:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/webtool-with-registered-data-source/m-p/1295691#M36145</guid>
      <dc:creator>Zoggo</dc:creator>
      <dc:date>2023-06-05T06:19:30Z</dc:date>
    </item>
  </channel>
</rss>

