<?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: Error when running custom script tool in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/error-when-running-custom-script-tool/m-p/144151#M11205</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From what I can see Benjamin hit the nail on the head. Workspaces can be folders or geodatabases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your second tool parameter should be an existing geodatabase, that is "E:\ArcPy\ResultFeatures\Test1.gdb" (instead of a folder:&amp;nbsp; "E:\ArcPy\ResultFeatures").&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can set the parameter Filter property to exclude folders - this will prevent you from providing a folder name for the second argument by mistake. Also -- make sure this parameter is of type Input to make sure you provide the path to an existing geodatabase.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 May 2016 05:16:08 GMT</pubDate>
    <dc:creator>curtvprice</dc:creator>
    <dc:date>2016-05-24T05:16:08Z</dc:date>
    <item>
      <title>Error when running custom script tool</title>
      <link>https://community.esri.com/t5/python-questions/error-when-running-custom-script-tool/m-p/144142#M11196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&amp;nbsp; I am getting error when running custom created script tool to copy feature classes from folder to geodatabase&lt;/P&gt;&lt;P&gt;below is the error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Traceback (most recent call last):
&amp;nbsp; File "D:\Python DVD\Python\Data\Exercise02\CopyFeature.py", line 9, in &amp;lt;module&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.CopyFeatures_management(fc, os.path.join(outgdb, fcdesc.basename))
&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\management.py", line 2429, in CopyFeatures
&amp;nbsp;&amp;nbsp;&amp;nbsp; raise e
ExecuteError: ERROR 000210: Cannot create output E:\ArcPy\ResultFeatures\basin
Failed to execute (CopyFeatures).
Failed to execute (MyCopy).&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am i missing, Please help me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 07:54:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-when-running-custom-script-tool/m-p/144142#M11196</guid>
      <dc:creator>SadanandacharB1</dc:creator>
      <dc:date>2021-12-11T07:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: Error when running custom script tool</title>
      <link>https://community.esri.com/t5/python-questions/error-when-running-custom-script-tool/m-p/144143#M11197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;and the script? the details are within&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 May 2016 14:16:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-when-running-custom-script-tool/m-p/144143#M11197</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-05-20T14:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: Error when running custom script tool</title>
      <link>https://community.esri.com/t5/python-questions/error-when-running-custom-script-tool/m-p/144144#M11198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It doesn't look as if there is a geodatabase in your output file path, based on the error you are receiving. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 May 2016 14:18:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-when-running-custom-script-tool/m-p/144144#M11198</guid>
      <dc:creator>BenjaminMittler</dc:creator>
      <dc:date>2016-05-20T14:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: Error when running custom script tool</title>
      <link>https://community.esri.com/t5/python-questions/error-when-running-custom-script-tool/m-p/144145#M11199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sadanandachar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you post the script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 May 2016 14:18:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-when-running-custom-script-tool/m-p/144145#M11199</guid>
      <dc:creator>AdrianWelsh</dc:creator>
      <dc:date>2016-05-20T14:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: Error when running custom script tool</title>
      <link>https://community.esri.com/t5/python-questions/error-when-running-custom-script-tool/m-p/144146#M11200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi below is my script created&amp;nbsp; for custom tool&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
import os
from arcpy import env
env.workspace = arcpy.GetParameterAsText(0)
outgdb = arcpy.GetParameterAsText(1)
fclist = arcpy.ListFeatureClasses()
for fc in fclist:
&amp;nbsp;&amp;nbsp;&amp;nbsp; fcdesc = arcpy.Describe(fc)
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.CopyFeatures_management(fc, os.path.join(outgdb, fcdesc.basename))&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 07:54:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-when-running-custom-script-tool/m-p/144146#M11200</guid>
      <dc:creator>SadanandacharB1</dc:creator>
      <dc:date>2021-12-11T07:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: Error when running custom script tool</title>
      <link>https://community.esri.com/t5/python-questions/error-when-running-custom-script-tool/m-p/144147#M11201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Should the N in baseName be capitalized?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;arcpy.CopyFeatures_management(fc, os.path.join(outgdb, fcdesc.&lt;STRONG&gt;baseName&lt;/STRONG&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Does that make a difference?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;If that is not the case, maybe you could put in a print statement after the user input (the GetParameterAsText) to capture what was inputted to see if it is the right type of input.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2016 05:28:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-when-running-custom-script-tool/m-p/144147#M11201</guid>
      <dc:creator>AdrianWelsh</dc:creator>
      <dc:date>2016-05-23T05:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: Error when running custom script tool</title>
      <link>https://community.esri.com/t5/python-questions/error-when-running-custom-script-tool/m-p/144148#M11202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should keep these links handy&lt;/P&gt;&lt;P&gt;&lt;A href="https://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy/what-is-arcpy-.htm" title="https://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy/what-is-arcpy-.htm"&gt;What is ArcPy?—Help | ArcGIS for Desktop&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;A href="https://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-functions/arcinfo-item-properties.htm" title="https://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-functions/arcinfo-item-properties.htm"&gt;ArcInfo Workstation Item properties—Help | ArcGIS for Desktop&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;A href="https://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-functions/describe-object-properties.htm" title="https://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-functions/describe-object-properties.htm"&gt;Describe object properties—Help | ArcGIS for Desktop&lt;/A&gt; &lt;/P&gt;&lt;P&gt;and particularly&lt;/P&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-classes/env.htm" title="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-classes/env.htm"&gt;env—Help | ArcGIS for Desktop&lt;/A&gt; with the overwriteOutput option.&amp;nbsp; Sometime a 'can't create... means that it already exists and can't be overwriten since env.overwriteOutput = True needs to be set&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2016 06:58:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-when-running-custom-script-tool/m-p/144148#M11202</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-05-23T06:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: Error when running custom script tool</title>
      <link>https://community.esri.com/t5/python-questions/error-when-running-custom-script-tool/m-p/144149#M11203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oooh, that's a good one. Forgot about:&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="_jivemacro_uid_14640218051567274 jive_macro_code jive_text_macro" data-renderedposition="33.45170211791992_7.997159004211426_1332_15" jivemacro_uid="_14640218051567274"&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;env.overwriteOutput = True&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;That may be the issue here.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2016 16:43:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-when-running-custom-script-tool/m-p/144149#M11203</guid>
      <dc:creator>AdrianWelsh</dc:creator>
      <dc:date>2016-05-23T16:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: Error when running custom script tool</title>
      <link>https://community.esri.com/t5/python-questions/error-when-running-custom-script-tool/m-p/144150#M11204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are coming full circle on a duplicate problem in your other thread&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/177456"&gt;Custom tool error&lt;/A&gt;&lt;/P&gt;&lt;P&gt;see the comments there or provide the information in this thread. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2016 21:52:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-when-running-custom-script-tool/m-p/144150#M11204</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-05-23T21:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: Error when running custom script tool</title>
      <link>https://community.esri.com/t5/python-questions/error-when-running-custom-script-tool/m-p/144151#M11205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From what I can see Benjamin hit the nail on the head. Workspaces can be folders or geodatabases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your second tool parameter should be an existing geodatabase, that is "E:\ArcPy\ResultFeatures\Test1.gdb" (instead of a folder:&amp;nbsp; "E:\ArcPy\ResultFeatures").&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can set the parameter Filter property to exclude folders - this will prevent you from providing a folder name for the second argument by mistake. Also -- make sure this parameter is of type Input to make sure you provide the path to an existing geodatabase.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 05:16:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-when-running-custom-script-tool/m-p/144151#M11205</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2016-05-24T05:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: Error when running custom script tool</title>
      <link>https://community.esri.com/t5/python-questions/error-when-running-custom-script-tool/m-p/144152#M11206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;maybe you could put in a print statement&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The GP messages stream helpfully includes the arguments provided to the tool. The OP left that helpful bit of text off, unfortunately. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 05:21:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-when-running-custom-script-tool/m-p/144152#M11206</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2016-05-24T05:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: Error when running custom script tool</title>
      <link>https://community.esri.com/t5/python-questions/error-when-running-custom-script-tool/m-p/144153#M11207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much for your HELP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 07:27:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-when-running-custom-script-tool/m-p/144153#M11207</guid>
      <dc:creator>SadanandacharB1</dc:creator>
      <dc:date>2016-05-24T07:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: Error when running custom script tool</title>
      <link>https://community.esri.com/t5/python-questions/error-when-running-custom-script-tool/m-p/144154#M11208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry and Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 07:27:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-when-running-custom-script-tool/m-p/144154#M11208</guid>
      <dc:creator>SadanandacharB1</dc:creator>
      <dc:date>2016-05-24T07:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: Error when running custom script tool</title>
      <link>https://community.esri.com/t5/python-questions/error-when-running-custom-script-tool/m-p/144155#M11209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 07:28:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-when-running-custom-script-tool/m-p/144155#M11209</guid>
      <dc:creator>SadanandacharB1</dc:creator>
      <dc:date>2016-05-24T07:28:26Z</dc:date>
    </item>
  </channel>
</rss>

