<?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: Custom tool error in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/custom-tool-error/m-p/461855#M36140</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This thread is in essence a duplicate of this thread &lt;A href="https://community.esri.com/thread/177422"&gt;Error when running custom script tool&lt;/A&gt; &lt;/P&gt;&lt;P&gt;and overwriteoutputs was suggested as well.&lt;/P&gt;&lt;P&gt;Respond to the suggestions in one thread as to whether they worked or not before starting a duplicate. &lt;/P&gt;&lt;P&gt;Could you provide more print statements in your code so people can accurately assess what your inputs and outputs are.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 May 2016 21:51:12 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2016-05-23T21:51:12Z</dc:date>
    <item>
      <title>Custom tool error</title>
      <link>https://community.esri.com/t5/python-questions/custom-tool-error/m-p/461853#M36138</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; As suggestions given in the blog i modified the script, But still i am getting the same error please help me&lt;/P&gt;&lt;P&gt;when i run the script in python editor with workspaces hardcoded like below, the code executes properly.&lt;/P&gt;&lt;P&gt;import arcpy&lt;/P&gt;&lt;P&gt;... import os&lt;/P&gt;&lt;P&gt;... from arcpy import env&lt;/P&gt;&lt;P&gt;... env.overwriteOutput = True&lt;/P&gt;&lt;P&gt;... env.workspace = "D:/Python DVD/Python/Data/Exercise02"&lt;/P&gt;&lt;P&gt;... outgdb = "D:/Data/Test1.gdb"&lt;/P&gt;&lt;P&gt;... print outgdb&lt;/P&gt;&lt;P&gt;... fclist = arcpy.ListFeatureClasses()&lt;/P&gt;&lt;P&gt;... for fc in fclist:&lt;/P&gt;&lt;P&gt;...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fcdesc = arcpy.Describe(fc)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print fcdesc.baseName&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print&amp;nbsp; os.path.join(outgdb, fcdesc.baseName)&lt;/P&gt;&lt;P&gt;...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.CopyFeatures_management(fc, os.path.join(outgdb, fcdesc.baseName))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;But &lt;/STRONG&gt;when i create custom tool using this script i am getting the error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import arcpy&lt;/P&gt;&lt;P&gt;import os&lt;/P&gt;&lt;P&gt;from arcpy import env&lt;/P&gt;&lt;P&gt;env.overwriteOutput = True&lt;/P&gt;&lt;P&gt;env.workspace = arcpy.GetParameterAsText(0)&lt;/P&gt;&lt;P&gt;outgdb = arcpy.GetParameterAsText(1)&lt;/P&gt;&lt;P&gt;print outgdb&lt;/P&gt;&lt;P&gt;fclist = arcpy.ListFeatureClasses()&lt;/P&gt;&lt;P&gt;for fc in fclist:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fcdesc = arcpy.Describe(fc)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print fcdesc.baseName&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print&amp;nbsp; os.path.join(outgdb, fcdesc.baseName)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.CopyFeatures_management(fc, os.path.join(outgdb, fcdesc.baseName))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error is:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="201730" alt="Test.jpg" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/201730_Test.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="201785" alt="test1.jpg" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/201785_test1.jpg" style="width: 620px; height: 314px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2016 11:34:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/custom-tool-error/m-p/461853#M36138</guid>
      <dc:creator>SadanandacharB1</dc:creator>
      <dc:date>2016-05-23T11:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: Custom tool error</title>
      <link>https://community.esri.com/t5/python-questions/custom-tool-error/m-p/461854#M36139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ensure that your Geoprocessing environment is configured to allow output overwrite&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Overwrite Outputs" class="jive-image" src="http://i.stack.imgur.com/YXlnf.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2016 11:58:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/custom-tool-error/m-p/461854#M36139</guid>
      <dc:creator>FC_Basson</dc:creator>
      <dc:date>2016-05-23T11:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: Custom tool error</title>
      <link>https://community.esri.com/t5/python-questions/custom-tool-error/m-p/461855#M36140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This thread is in essence a duplicate of this thread &lt;A href="https://community.esri.com/thread/177422"&gt;Error when running custom script tool&lt;/A&gt; &lt;/P&gt;&lt;P&gt;and overwriteoutputs was suggested as well.&lt;/P&gt;&lt;P&gt;Respond to the suggestions in one thread as to whether they worked or not before starting a duplicate. &lt;/P&gt;&lt;P&gt;Could you provide more print statements in your code so people can accurately assess what your inputs and outputs are.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2016 21:51:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/custom-tool-error/m-p/461855#M36140</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-05-23T21:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: Custom tool error</title>
      <link>https://community.esri.com/t5/python-questions/custom-tool-error/m-p/461856#M36141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very very much&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 07:29:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/custom-tool-error/m-p/461856#M36141</guid>
      <dc:creator>SadanandacharB1</dc:creator>
      <dc:date>2016-05-24T07:29:07Z</dc:date>
    </item>
  </channel>
</rss>

