<?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 Spatial Join ERROR 000725: Output Feature Class: GISLAYER already exists in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/spatial-join-error-000725-output-feature-class/m-p/462733#M36206</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I created a simple model, it has spatial join, it takes two feature classes (parameters are hardcoded) and then does a spatial join and the outputs the joined features. The output feature class is also hardcoded. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to do a spatial join and the output should be overwritten to that hardcoded feature class... &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It works fine in model builder, But when i export that model to python script and i run that python script i get this error - &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Spatial Join ERROR 000725: Output Feature Class: GISLAYER already exists&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Jun 2011 20:18:24 GMT</pubDate>
    <dc:creator>AshakaThakore</dc:creator>
    <dc:date>2011-06-29T20:18:24Z</dc:date>
    <item>
      <title>Spatial Join ERROR 000725: Output Feature Class: GISLAYER already exists</title>
      <link>https://community.esri.com/t5/python-questions/spatial-join-error-000725-output-feature-class/m-p/462733#M36206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I created a simple model, it has spatial join, it takes two feature classes (parameters are hardcoded) and then does a spatial join and the outputs the joined features. The output feature class is also hardcoded. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to do a spatial join and the output should be overwritten to that hardcoded feature class... &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It works fine in model builder, But when i export that model to python script and i run that python script i get this error - &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Spatial Join ERROR 000725: Output Feature Class: GISLAYER already exists&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2011 20:18:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/spatial-join-error-000725-output-feature-class/m-p/462733#M36206</guid>
      <dc:creator>AshakaThakore</dc:creator>
      <dc:date>2011-06-29T20:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial Join ERROR 000725: Output Feature Class: GISLAYER already exists</title>
      <link>https://community.esri.com/t5/python-questions/spatial-join-error-000725-output-feature-class/m-p/462734#M36207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;See: &lt;/SPAN&gt;&lt;A href="http://blogs.esri.com/Dev/blogs/geoprocessing/archive/2011/06/24/ExportModelToPy.aspx"&gt;http://blogs.esri.com/Dev/blogs/geoprocessing/archive/2011/06/24/ExportModelToPy.aspx&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Specifically add arcpy.env.overwriteOutput = True before your spatial join operation.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2011 20:22:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/spatial-join-error-000725-output-feature-class/m-p/462734#M36207</guid>
      <dc:creator>LoganPugh</dc:creator>
      <dc:date>2011-06-29T20:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial Join ERROR 000725: Output Feature Class: GISLAYER already exists</title>
      <link>https://community.esri.com/t5/python-questions/spatial-join-error-000725-output-feature-class/m-p/462735#M36208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thanks ... &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i am using 9.3 so this worked for me &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;gp.overwriteoutput = True&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks again&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2011 13:01:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/spatial-join-error-000725-output-feature-class/m-p/462735#M36208</guid>
      <dc:creator>AshakaThakore</dc:creator>
      <dc:date>2011-07-01T13:01:06Z</dc:date>
    </item>
  </channel>
</rss>

