<?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: Python Scripting for ArcGIS exercise 6 challange 2 Error 000260 Error in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/python-scripting-for-arcgis-exercise-6-challange-2/m-p/129417#M10047</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This :&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Copy_management &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fc&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"C:\EsriPress\Python\Data\Exercise06\newstudy.gdb"&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; fc&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Probably need a "\" in the path between the ".gdb" and the fc.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Like&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Copy_management &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fc&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;"C:\EsriPress\Python\Data\Exercise06\newstudy.gdb\"&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; fc&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;Note the use of the "r" in front of this path. Python then does not try to "interpret" text, it is raw format. For example text like "\n" is a newline.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;Better still use os.path.join() to join paths and outputs.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Mar 2017 16:47:06 GMT</pubDate>
    <dc:creator>NeilAyres</dc:creator>
    <dc:date>2017-03-22T16:47:06Z</dc:date>
    <item>
      <title>Python Scripting for ArcGIS exercise 6 challange 2 Error 000260 Error</title>
      <link>https://community.esri.com/t5/python-questions/python-scripting-for-arcgis-exercise-6-challange-2/m-p/129416#M10046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working on&amp;nbsp; Exercise 6 challenge 2 when I put in the attached code it generates a Error 000260 Error.&amp;nbsp; I have run the code line by line and it is fine until it gets to&lt;/P&gt;&lt;P&gt;arcpy.Copy_management (fc, "C:\EsriPress\Python\Data\Exercise06\newstudy.gdb" + fc) this is the last line of the code.&amp;nbsp; It is unable to copy the feature classes. I will attach the code that I am using. I was wondering if I would be able to get some help on this.&amp;nbsp; This is my first time asking a question on Geonet. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2017 16:32:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-scripting-for-arcgis-exercise-6-challange-2/m-p/129416#M10046</guid>
      <dc:creator>StephenTham</dc:creator>
      <dc:date>2017-03-22T16:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: Python Scripting for ArcGIS exercise 6 challange 2 Error 000260 Error</title>
      <link>https://community.esri.com/t5/python-questions/python-scripting-for-arcgis-exercise-6-challange-2/m-p/129417#M10047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This :&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Copy_management &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fc&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"C:\EsriPress\Python\Data\Exercise06\newstudy.gdb"&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; fc&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Probably need a "\" in the path between the ".gdb" and the fc.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Like&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Copy_management &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fc&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;"C:\EsriPress\Python\Data\Exercise06\newstudy.gdb\"&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; fc&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;Note the use of the "r" in front of this path. Python then does not try to "interpret" text, it is raw format. For example text like "\n" is a newline.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;Better still use os.path.join() to join paths and outputs.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2017 16:47:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-scripting-for-arcgis-exercise-6-challange-2/m-p/129417#M10047</guid>
      <dc:creator>NeilAyres</dc:creator>
      <dc:date>2017-03-22T16:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: Python Scripting for ArcGIS exercise 6 challange 2 Error 000260 Error</title>
      <link>https://community.esri.com/t5/python-questions/python-scripting-for-arcgis-exercise-6-challange-2/m-p/129418#M10048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stephan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Welcome to Geonet first of all.&amp;nbsp; In the future if you have a small amount of code that you need help with, its easier for you to post it directly in your question (See &lt;A href="https://community.esri.com/people/curtvprice/blog/2014/09/25/posting-code-blocks-in-the-new-geonet?sr=search&amp;amp;searchId=194dfe1f-52c7-4d0a-8678-474dd4e4c435&amp;amp;searchIndex=1"&gt;https://community.esri.com/people/curtvprice/blog/2014/09/25/posting-code-blocks-in-the-new-geonet?sr=search&amp;amp;searchId=194dfe1f-52c7-4d0a-8678-474dd4e4c435&amp;amp;searchIndex=1&lt;/A&gt;‌ for examples on how), since people are not always able/comfortable to open zip files from the internet.&amp;nbsp;Also if you have an error code, please post the error code and error message to give more detail on the problem (in this case it was probably&amp;nbsp;something about unable to write features or invalid path which is relevant information).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As to your error, I would use some print statements to determine whether your output for&amp;nbsp;the copy tool&amp;nbsp;is what you think it is, you may be missing something needed for the full file path.&amp;nbsp; Also I would recommend using the os module for creating file paths instead of just concatenating paths and file names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.python.org/2/library/os.path.html"&gt;https://docs.python.org/2/library/os.path.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example of its use from the ListFeatureClasses help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://pro.arcgis.com/en/pro-app/arcpy/functions/listfeatureclasses.htm"&gt;http://pro.arcgis.com/en/pro-app/arcpy/functions/listfeatureclasses.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: I see Neil answered you more directly, but I would strongly recommend using print statements for debugging to make sure your inputs are correct when such errors occur.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2017 16:58:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-scripting-for-arcgis-exercise-6-challange-2/m-p/129418#M10048</guid>
      <dc:creator>IanMurray</dc:creator>
      <dc:date>2017-03-22T16:58:05Z</dc:date>
    </item>
  </channel>
</rss>

