<?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: Having an error while creating Intersect tool using python script in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/having-an-error-while-creating-intersect-tool/m-p/1127460#M63274</link>
    <description>&lt;P&gt;How about hard-coding the tolerance value into the tool line of code to see if you can get past that error?&lt;/P&gt;</description>
    <pubDate>Sun, 19 Dec 2021 16:43:42 GMT</pubDate>
    <dc:creator>MichaelVolz</dc:creator>
    <dc:date>2021-12-19T16:43:42Z</dc:date>
    <item>
      <title>Having an error while creating Intersect tool using python script</title>
      <link>https://community.esri.com/t5/python-questions/having-an-error-while-creating-intersect-tool/m-p/1127459#M63273</link>
      <description>&lt;P&gt;Hello Community members!&lt;/P&gt;&lt;P&gt;I am trying to make an intersect tool using the python script but it is giving me errors after I try to run the created tool. Can any expert help me, please?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This is the Python script:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;import arcpy&lt;BR /&gt;arcpy.env.workspace = "C:/Users/SABA FATIMA/Desktop/GIS App Labs/lab_pythontoolCreation"&lt;BR /&gt;inputfeature=arcpy.GetParameterAsText(0)&lt;BR /&gt;intersectfeature=arcpy.GetParameterAsText(1)&lt;BR /&gt;outputfeature=arcpy.GetParameterAsText(2)&lt;BR /&gt;cluster_tolerance =0.15&lt;BR /&gt;arcpy.Intersect_analysis([inputfeature,intersectfeature],outputfeature, cluster_tolerance, "polygon")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This is the error:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Failed script Script...&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;File "C:\Users\SABA FATIMA\Desktop\GIS App Labs\lab_pythontoolCreation\intersectPolygon.py", line 7, in &amp;lt;module&amp;gt;&lt;BR /&gt;arcpy.Intersect_analysis([inputfeature,intersectfeature],outputfeature, cluster_tolerance, "polygon")&lt;BR /&gt;File "c:\program files (x86)\arcgis\desktop10.7\arcpy\arcpy\analysis.py", line 334, in Intersect&lt;BR /&gt;raise e&lt;BR /&gt;ExecuteError: ERROR 000622: Failed to execute (Intersect). Parameters are not valid.&lt;BR /&gt;ERROR 000628: Cannot set input into parameter cluster_tolerance.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Failed to execute (Script).&lt;/P&gt;</description>
      <pubDate>Sun, 19 Dec 2021 16:39:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/having-an-error-while-creating-intersect-tool/m-p/1127459#M63273</guid>
      <dc:creator>sabafatima</dc:creator>
      <dc:date>2021-12-19T16:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: Having an error while creating Intersect tool using python script</title>
      <link>https://community.esri.com/t5/python-questions/having-an-error-while-creating-intersect-tool/m-p/1127460#M63274</link>
      <description>&lt;P&gt;How about hard-coding the tolerance value into the tool line of code to see if you can get past that error?&lt;/P&gt;</description>
      <pubDate>Sun, 19 Dec 2021 16:43:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/having-an-error-while-creating-intersect-tool/m-p/1127460#M63274</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2021-12-19T16:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: Having an error while creating Intersect tool using python script</title>
      <link>https://community.esri.com/t5/python-questions/having-an-error-while-creating-intersect-tool/m-p/1127463#M63276</link>
      <description>&lt;P&gt;Already tried to do so...but still it gives the same error&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Failed script Script...&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;File "C:\Users\SABA FATIMA\Desktop\GIS App Labs\lab_pythontoolCreation\intersectPolygon.py", line 6, in &amp;lt;module&amp;gt;&lt;BR /&gt;arcpy.Intersect_analysis([inputfeature,intersectfeature],outputfeature, "0.15", "polygon")&lt;BR /&gt;File "c:\program files (x86)\arcgis\desktop10.7\arcpy\arcpy\analysis.py", line 334, in Intersect&lt;BR /&gt;raise e&lt;BR /&gt;ExecuteError: ERROR 000622: Failed to execute (Intersect). Parameters are not valid.&lt;BR /&gt;ERROR 000628: Cannot set input into parameter cluster_tolerance.&lt;/P&gt;</description>
      <pubDate>Sun, 19 Dec 2021 17:22:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/having-an-error-while-creating-intersect-tool/m-p/1127463#M63276</guid>
      <dc:creator>sabafatima</dc:creator>
      <dc:date>2021-12-19T17:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: Having an error while creating Intersect tool using python script</title>
      <link>https://community.esri.com/t5/python-questions/having-an-error-while-creating-intersect-tool/m-p/1127464#M63277</link>
      <description>&lt;P&gt;Please Community Members help me debug this,,, i have to this by tonight cuz it's my lab work that I have to submit.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Dec 2021 17:31:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/having-an-error-while-creating-intersect-tool/m-p/1127464#M63277</guid>
      <dc:creator>sabafatima</dc:creator>
      <dc:date>2021-12-19T17:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: Having an error while creating Intersect tool using python script</title>
      <link>https://community.esri.com/t5/python-questions/having-an-error-while-creating-intersect-tool/m-p/1127465#M63278</link>
      <description>&lt;P&gt;Try creating a model and then export out to python script and compare to your script.&lt;/P&gt;&lt;P&gt;Add print statements for all inputs to ensure the correct information is being passed.&lt;/P&gt;</description>
      <pubDate>Sun, 19 Dec 2021 17:36:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/having-an-error-while-creating-intersect-tool/m-p/1127465#M63278</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2021-12-19T17:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: Having an error while creating Intersect tool using python script</title>
      <link>https://community.esri.com/t5/python-questions/having-an-error-while-creating-intersect-tool/m-p/1127466#M63279</link>
      <description>&lt;P&gt;This same idea crossed my mind and I tried that but now, this error is showing up&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Failed script Script...&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;File "C:\Users\SABA FATIMA\Desktop\GIS App Labs\lab_pythontoolCreation\intersectPolygon.py", line 9, in &amp;lt;module&amp;gt;&lt;BR /&gt;arcpy.Intersect_analysis("inputfeature;intersectfeature", outputfeature, "ALL", "", "INPUT")&lt;BR /&gt;File "c:\program files (x86)\arcgis\desktop10.7\arcpy\arcpy\analysis.py", line 334, in Intersect&lt;BR /&gt;raise e&lt;BR /&gt;ExecuteError: Failed to execute. Parameters are not valid.&lt;BR /&gt;ERROR 000732: Input Features: Dataset inputfeature #;intersectfeature # does not exist or is not supported&lt;BR /&gt;Failed to execute (Intersect).&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Failed to execute (Script).&lt;BR /&gt;Failed at Sun Dec 19 22:53:05 2021 (Elapsed Time: 0.19 seconds)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;for code:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;import arcpy&lt;BR /&gt;arcpy.env.workspace = "C:/Users/SABA FATIMA/Desktop/GIS App Labs/lab_pythontoolCreation"&lt;BR /&gt;inputfeature=arcpy.GetParameterAsText(0)&lt;BR /&gt;print "input completed"&lt;BR /&gt;intersectfeature=arcpy.GetParameterAsText(1)&lt;BR /&gt;print "intersect shp taken"&lt;BR /&gt;outputfeature=arcpy.GetParameterAsText(2)&lt;BR /&gt;print "output shp created"&lt;BR /&gt;arcpy.Intersect_analysis("inputfeature;intersectfeature", outputfeature, "ALL", "", "INPUT")&lt;BR /&gt;print "tool run successfully"&lt;/P&gt;</description>
      <pubDate>Sun, 19 Dec 2021 17:55:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/having-an-error-while-creating-intersect-tool/m-p/1127466#M63279</guid>
      <dc:creator>sabafatima</dc:creator>
      <dc:date>2021-12-19T17:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: Having an error while creating Intersect tool using python script</title>
      <link>https://community.esri.com/t5/python-questions/having-an-error-while-creating-intersect-tool/m-p/1127467#M63280</link>
      <description>&lt;P&gt;A few points to check.&lt;/P&gt;&lt;P&gt;1. All the input feature classes are polygon feature classes (since you have mentioned your output_type as polygon).&lt;/P&gt;&lt;P&gt;2. What is the coordinate system of the input features? All the features should be in same coordinate system (A Projected Coordinate System).&lt;/P&gt;&lt;P&gt;3. Ensure there is no multipart feature. Run&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/multipart-to-singlepart.htm" target="_self"&gt;Multipart To Singlepart (Data Management)&lt;/A&gt;&amp;nbsp;to see if any extra features are generated among the inut features.&amp;nbsp;&lt;/P&gt;&lt;P&gt;4. What happens if you don't define the Cluster Tolerance&lt;/P&gt;&lt;LI-CODE lang="python"&gt;arcpy.Intersect_analysis([inputfeature,intersectfeature],outputfeature, "", "","polygon")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Dec 2021 18:22:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/having-an-error-while-creating-intersect-tool/m-p/1127467#M63280</guid>
      <dc:creator>JayantaPoddar</dc:creator>
      <dc:date>2021-12-19T18:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: Having an error while creating Intersect tool using python script</title>
      <link>https://community.esri.com/t5/python-questions/having-an-error-while-creating-intersect-tool/m-p/1127468#M63281</link>
      <description>&lt;P&gt;I performed all the checks you mentioned. Now, it's giving a new error.&lt;/P&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;P&gt;Failed script Script...&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;File "C:\Users\SABA FATIMA\Desktop\GIS App Labs\lab_pythontoolCreation\intersectPolygon.py", line 6, in &amp;lt;module&amp;gt;&lt;BR /&gt;arcpy.Intersect_analysis([inputfeature,intersectfeature],outputfeature, "","", "polygon")&lt;BR /&gt;File "c:\program files (x86)\arcgis\desktop10.7\arcpy\arcpy\analysis.py", line 334, in Intersect&lt;BR /&gt;raise e&lt;BR /&gt;ExecuteError: Failed to execute. Parameters are not valid.&lt;BR /&gt;ERROR 000800: The value is not a member of INPUT | LINE | POINT.&lt;BR /&gt;Failed to execute (Intersect).&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Failed to execute (Script).&lt;/P&gt;</description>
      <pubDate>Sun, 19 Dec 2021 18:36:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/having-an-error-while-creating-intersect-tool/m-p/1127468#M63281</guid>
      <dc:creator>sabafatima</dc:creator>
      <dc:date>2021-12-19T18:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: Having an error while creating Intersect tool using python script</title>
      <link>https://community.esri.com/t5/python-questions/having-an-error-while-creating-intersect-tool/m-p/1127469#M63282</link>
      <description>&lt;P&gt;Could you share how both the input features look in ArcMap? Screenshots would help.&lt;/P&gt;</description>
      <pubDate>Sun, 19 Dec 2021 18:47:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/having-an-error-while-creating-intersect-tool/m-p/1127469#M63282</guid>
      <dc:creator>JayantaPoddar</dc:creator>
      <dc:date>2021-12-19T18:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: Having an error while creating Intersect tool using python script</title>
      <link>https://community.esri.com/t5/python-questions/having-an-error-while-creating-intersect-tool/m-p/1127473#M63283</link>
      <description>&lt;P&gt;Yeah sure.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sabafatima_0-1639940032578.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/30005i8246E6194EB4A325/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sabafatima_0-1639940032578.png" alt="sabafatima_0-1639940032578.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Dec 2021 18:54:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/having-an-error-while-creating-intersect-tool/m-p/1127473#M63283</guid>
      <dc:creator>sabafatima</dc:creator>
      <dc:date>2021-12-19T18:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: Having an error while creating Intersect tool using python script</title>
      <link>https://community.esri.com/t5/python-questions/having-an-error-while-creating-intersect-tool/m-p/1127474#M63284</link>
      <description>&lt;P&gt;Replace "polygon" with "INPUT"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;arcpy.Intersect_analysis([inputfeature,intersectfeature],outputfeature, "", "","INPUT")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Dec 2021 18:58:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/having-an-error-while-creating-intersect-tool/m-p/1127474#M63284</guid>
      <dc:creator>JayantaPoddar</dc:creator>
      <dc:date>2021-12-19T18:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: Having an error while creating Intersect tool using python script</title>
      <link>https://community.esri.com/t5/python-questions/having-an-error-while-creating-intersect-tool/m-p/1127475#M63285</link>
      <description>&lt;P&gt;It worked. Thank you so much!!!&lt;/P&gt;&lt;P&gt;i have been working on it for more than 10 hours.&lt;/P&gt;</description>
      <pubDate>Sun, 19 Dec 2021 19:00:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/having-an-error-while-creating-intersect-tool/m-p/1127475#M63285</guid>
      <dc:creator>sabafatima</dc:creator>
      <dc:date>2021-12-19T19:00:04Z</dc:date>
    </item>
  </channel>
</rss>

