<?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: Integrate Tool in Python in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/integrate-tool-in-python/m-p/535559#M41961</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is it possible that the space and/or the hyphen in your path that you specify here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;integrateFeatures = "C:/Users/kraus-b/Desktop/polygon generalisation/output/soilclass_copy.shp"&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;is causing issues? Generally I think its advisable to avoid paths that include spaces or use 'special' characters.&amp;nbsp; another thought is that the number of characters in the path might be problematic.&amp;nbsp; You might try this in a directory you create that is very simple, like "c:\data".&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Sep 2012 12:54:14 GMT</pubDate>
    <dc:creator>ChristopherThompson</dc:creator>
    <dc:date>2012-09-04T12:54:14Z</dc:date>
    <item>
      <title>Integrate Tool in Python</title>
      <link>https://community.esri.com/t5/python-questions/integrate-tool-in-python/m-p/535558#M41960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to use the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Integrate Tool&lt;/SPAN&gt;&lt;SPAN&gt; in python (stand-alone script). I always get an Error message... I already tried to run the script different ways...no success&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;# Import arcpy modules
import arcpy
from arcpy import env

# Set workspace for Input and Output Data
env.workspace = "C:/Users/kraus-b/Desktop/polygon generalisation"

# Define Input and Output Files
soilclass = "C:/Users/kraus-b/Desktop/polygon generalisation/Input/soilclass.shp"
integrateFeatures = "C:/Users/kraus-b/Desktop/polygon generalisation/output/soilclass_copy.shp"

# CopyFeature (input, output)
arcpy.CopyFeatures_management(soilclass, integrateFeatures)
 
# Execute Integrate
arcpy.Integrate_management(integrateFeatures, "3 Meters")&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;Traceback (most recent call last):
&amp;nbsp; File "C:\Users\kraus-b\Desktop\forum.py", line 28, in &amp;lt;module&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Integrate_management(integrateFeatures, "3 Meters")
&amp;nbsp; File "C:\Program Files (x86)\ArcGIS\Desktop10.0\arcpy\arcpy\management.py", line 1702, in Integrate
&amp;nbsp;&amp;nbsp;&amp;nbsp; raise e
ExecuteError: Failed to execute. Parameters are not valid.
ERROR 000735: Input Features: Value is required
Failed to execute (Integrate).
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to use the&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Integrate Too&lt;/SPAN&gt;&lt;SPAN&gt;l in the Python Shell in ArcMap... it works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also tried to export the Integrate Script from the Modelbuilder to Python. It works in the Modelbuilder but not as a stand-alone script. When I export the Script, it makes a # after the Input. It stands for the rank of feature classes if there are more than one input feature class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The exported script from Modelbuilder:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;# Import arcpy module
import arcpy

# Local variables:
soilclass_copy = "soilclass_copy"

# Process: Integrate
arcpy.Integrate_management("soilclass_copy #", "3 Meters")
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also tried following code&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;arcpy.Integrate_management("C:/Users/kraus-b/Desktop/polygon generalisation/output/soilclass_copy.shp #", "3 Meters")&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;--&amp;gt; same ERROR message&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also tried to copy the code from the example in the Desktop Help - no success&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not a python expert but usually I'm able to use simple gis tools in python. In this case I'm helpless.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any Ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Benjamin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2012 08:36:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/integrate-tool-in-python/m-p/535558#M41960</guid>
      <dc:creator>BenjaminKraus</dc:creator>
      <dc:date>2012-09-03T08:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: Integrate Tool in Python</title>
      <link>https://community.esri.com/t5/python-questions/integrate-tool-in-python/m-p/535559#M41961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is it possible that the space and/or the hyphen in your path that you specify here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;integrateFeatures = "C:/Users/kraus-b/Desktop/polygon generalisation/output/soilclass_copy.shp"&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;is causing issues? Generally I think its advisable to avoid paths that include spaces or use 'special' characters.&amp;nbsp; another thought is that the number of characters in the path might be problematic.&amp;nbsp; You might try this in a directory you create that is very simple, like "c:\data".&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2012 12:54:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/integrate-tool-in-python/m-p/535559#M41961</guid>
      <dc:creator>ChristopherThompson</dc:creator>
      <dc:date>2012-09-04T12:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: Integrate Tool in Python</title>
      <link>https://community.esri.com/t5/python-questions/integrate-tool-in-python/m-p/535560#M41962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks a lot Christopher!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Removing the space in the path solved the problem!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2012 06:36:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/integrate-tool-in-python/m-p/535560#M41962</guid>
      <dc:creator>BenjaminKraus</dc:creator>
      <dc:date>2012-09-10T06:36:26Z</dc:date>
    </item>
  </channel>
</rss>

