<?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: Why would this simple buffer script fail? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/why-would-this-simple-buffer-script-fail/m-p/60093#M4771</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This might help you out too...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/21526-Trouble-with-Feature-Datasets-in-directories-with-spaces?p=139246&amp;amp;viewfull=1#post139246"&gt;http://forums.arcgis.com/threads/21526-Trouble-with-Feature-Datasets-in-directories-with-spaces?p=139246&amp;amp;viewfull=1#post139246&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Apr 2012 17:02:41 GMT</pubDate>
    <dc:creator>ChrisSnyder</dc:creator>
    <dc:date>2012-04-17T17:02:41Z</dc:date>
    <item>
      <title>Why would this simple buffer script fail?</title>
      <link>https://community.esri.com/t5/python-questions/why-would-this-simple-buffer-script-fail/m-p/60091#M4769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;(the script was straight from the ESRI python tutorial)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;gt;&amp;gt;&amp;gt; #Buffer the roads feature class for each distance in the distance list ... import arcpy ... arcpy.env.workspace = r"C:\PETER PENG\ppTests.gdb" ... fc = "TestApr17" ... distanceList= ["100 meters", "200 meters", "400 meters"] ... #loop thru ea distance in the distanceList ... for dist in distanceList: ...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; outName = fc+"_"+dist ...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Buffer_analysis(fc, outName, dist) ... print "Finished buffering" ...&amp;nbsp; Runtime error &amp;lt;class 'arcgisscripting.ExecuteError'&amp;gt;: ERROR 000210: Cannot create output C:\PETER PENG\ppTests.gdb\TestApr17_100 meters Failed to execute (Buffer).&amp;nbsp; &amp;gt;&amp;gt;&amp;gt; &lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- Tried the non-python method: Buffer tool in toolbox, worked!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Tried different file path names, taking away "_". Does Python not accept " "(space)? I thought raw data was fine?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Message Log attached&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Have no idea how to get this simple script to work, any help appreciated!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2012 16:11:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/why-would-this-simple-buffer-script-fail/m-p/60091#M4769</guid>
      <dc:creator>PeterPeng</dc:creator>
      <dc:date>2012-04-17T16:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: Why would this simple buffer script fail?</title>
      <link>https://community.esri.com/t5/python-questions/why-would-this-simple-buffer-script-fail/m-p/60092#M4770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Don't use spaces in your dataset names.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using this line should fix your problem...&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;outName = fc+"_"+dist.replace(" ", "_")&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2012 16:56:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/why-would-this-simple-buffer-script-fail/m-p/60092#M4770</guid>
      <dc:creator>ChrisSnyder</dc:creator>
      <dc:date>2012-04-17T16:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: Why would this simple buffer script fail?</title>
      <link>https://community.esri.com/t5/python-questions/why-would-this-simple-buffer-script-fail/m-p/60093#M4771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This might help you out too...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/21526-Trouble-with-Feature-Datasets-in-directories-with-spaces?p=139246&amp;amp;viewfull=1#post139246"&gt;http://forums.arcgis.com/threads/21526-Trouble-with-Feature-Datasets-in-directories-with-spaces?p=139246&amp;amp;viewfull=1#post139246&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2012 17:02:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/why-would-this-simple-buffer-script-fail/m-p/60093#M4771</guid>
      <dc:creator>ChrisSnyder</dc:creator>
      <dc:date>2012-04-17T17:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: Why would this simple buffer script fail?</title>
      <link>https://community.esri.com/t5/python-questions/why-would-this-simple-buffer-script-fail/m-p/60094#M4772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Spaces was my problem, thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2012 20:47:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/why-would-this-simple-buffer-script-fail/m-p/60094#M4772</guid>
      <dc:creator>PeterPeng</dc:creator>
      <dc:date>2012-04-17T20:47:27Z</dc:date>
    </item>
  </channel>
</rss>

