<?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: Geoprocessing Tool on AGOL - Error 000210: Cannot Create Output in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-tool-on-agol-error-000210-cannot/m-p/1060443#M30249</link>
    <description>&lt;P&gt;Hello Davin,&lt;/P&gt;&lt;P&gt;Here is a snippet of code from the script before the failure happens:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;savePoint = os.path.join(outgdb, "SelectedPoint")  

# Create a new feature set with same schema as Facilities parameter in  
# Generate Service Areas tool. 
facilities = arcpy.GetParameter(0)

  # Set limit on number of facilities entered - 1
 maxFacilities = 1 
fac_count = arcpy.GetCount_management(facilities) 
fac_str = str(fac_count)
 fac_int = int(fac_str)  
''' 
*    Title: GenerateServiceAreas_Workflow.py 
*    Author: Esri 
*    Date: 2019 
*    Code / Type version: 10.7 
*    Code adapted from: ArcToolbox Script / ArcMap Search
 ''' 
if fac_int &amp;gt; maxFacilities:
     arcpy.Delete_management(facilities)
     arcpy.AddIDMessage("ERROR", 30096, "Facilities", maxFacilities) 
    sys.exit(0)
 elif facilities == '#' or not facilities:
     arcpy.Delete_management(facilities)
     arcpy.AddMessage("ERROR. Select a point on the map.")
     sys.exit(0) 
else: 
    pass 
'''(Version 10.7) [Source code].
      "ArcMap Search: Generate Service Areas (Network Analyst)'''  

# fails at the following line of code 
# ExecuteError: ERROR 000210: Cannot create output: pt_out = arcpy.CopyFeatures_management(facilities, savePoint)
 pt_out = arcpy.CopyFeatures_management(facilities, savePoint)&lt;/LI-CODE&gt;&lt;P&gt;Facilities (arcpy.getParameter(0)) is a Feature set, point layer that is created on the map by the user.&lt;/P&gt;</description>
    <pubDate>Fri, 21 May 2021 15:04:56 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2021-05-21T15:04:56Z</dc:date>
    <item>
      <title>Geoprocessing Tool on AGOL - Error 000210: Cannot Create Output</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-tool-on-agol-error-000210-cannot/m-p/1059620#M30209</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I am running a custom geoprocessing tool on AGOL in a web application and I&amp;nbsp;am getting the error:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;Error 000210: Cannot Create Output&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have this tool set up in ArcGIS Pro in model builder where it accepts user input and runs three python scripts along with some built in tools.&amp;nbsp;This error only occurs when running on AGOL. I believe the cause of this error is file locking in my environment workspace (geodatabase). This locking behavior does not happen when running on ArcGIS Pro, but when I publish to enterprise then use on AGOL in web application, lock files are created in the geodatabase. If I stop the service the locks are deleted and are created again when I run the tool on AGOL.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Are there any known file locking issues associated with publishing a tool to a GIS server from ArcGIS Pro?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 19:35:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-tool-on-agol-error-000210-cannot/m-p/1059620#M30209</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-05-19T19:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing Tool on AGOL - Error 000210: Cannot Create Output</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-tool-on-agol-error-000210-cannot/m-p/1060344#M30245</link>
      <description>&lt;P&gt;Are you able to provide the script and any further error messages?&lt;/P&gt;</description>
      <pubDate>Fri, 21 May 2021 11:20:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-tool-on-agol-error-000210-cannot/m-p/1060344#M30245</guid>
      <dc:creator>DavinWalker2</dc:creator>
      <dc:date>2021-05-21T11:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing Tool on AGOL - Error 000210: Cannot Create Output</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-tool-on-agol-error-000210-cannot/m-p/1060443#M30249</link>
      <description>&lt;P&gt;Hello Davin,&lt;/P&gt;&lt;P&gt;Here is a snippet of code from the script before the failure happens:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;savePoint = os.path.join(outgdb, "SelectedPoint")  

# Create a new feature set with same schema as Facilities parameter in  
# Generate Service Areas tool. 
facilities = arcpy.GetParameter(0)

  # Set limit on number of facilities entered - 1
 maxFacilities = 1 
fac_count = arcpy.GetCount_management(facilities) 
fac_str = str(fac_count)
 fac_int = int(fac_str)  
''' 
*    Title: GenerateServiceAreas_Workflow.py 
*    Author: Esri 
*    Date: 2019 
*    Code / Type version: 10.7 
*    Code adapted from: ArcToolbox Script / ArcMap Search
 ''' 
if fac_int &amp;gt; maxFacilities:
     arcpy.Delete_management(facilities)
     arcpy.AddIDMessage("ERROR", 30096, "Facilities", maxFacilities) 
    sys.exit(0)
 elif facilities == '#' or not facilities:
     arcpy.Delete_management(facilities)
     arcpy.AddMessage("ERROR. Select a point on the map.")
     sys.exit(0) 
else: 
    pass 
'''(Version 10.7) [Source code].
      "ArcMap Search: Generate Service Areas (Network Analyst)'''  

# fails at the following line of code 
# ExecuteError: ERROR 000210: Cannot create output: pt_out = arcpy.CopyFeatures_management(facilities, savePoint)
 pt_out = arcpy.CopyFeatures_management(facilities, savePoint)&lt;/LI-CODE&gt;&lt;P&gt;Facilities (arcpy.getParameter(0)) is a Feature set, point layer that is created on the map by the user.&lt;/P&gt;</description>
      <pubDate>Fri, 21 May 2021 15:04:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-tool-on-agol-error-000210-cannot/m-p/1060443#M30249</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-05-21T15:04:56Z</dc:date>
    </item>
  </channel>
</rss>

