<?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: Error 000210 in Transportation Questions</title>
    <link>https://community.esri.com/t5/transportation-questions/error-000210/m-p/595985#M1957</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You have your workspace set to your output directory. You need to fully qualify your path to your input data in the tool or change the workspace to your input directory and retain the fully qualified path to your output.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also instead of or, or, or you can do this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;if dayofweek in [0, 1, 2, 3, 4]:&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Or this&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;if dayofweek in range(5):&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Jan 2013 12:33:19 GMT</pubDate>
    <dc:creator>MathewCoyle</dc:creator>
    <dc:date>2013-01-08T12:33:19Z</dc:date>
    <item>
      <title>Error 000210</title>
      <link>https://community.esri.com/t5/transportation-questions/error-000210/m-p/595982#M1954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: MCline19&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am writing a python program.&amp;nbsp; One of my steps is suppose to take a .sde file and convert it to a shapefile.&amp;nbsp; I have tried several different processing methods and I continually receive the same error.&amp;nbsp; I have even tried running these processes directly using the toolbox (rather than through my coding) and I still receive the same error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Runtime error &amp;lt;class 'arcgisscripting.ExecuteError'&amp;gt;: ERROR 000210: Cannot create output G:\GISAdmin\NEW_ROADS_NOTIFICATION\Road_Exports&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;oads2013-01-07.shp Failed to execute (Select). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I cannot figure out how to fix this issue.&amp;nbsp; I have posted the different processes that I've tried in code form below.&amp;nbsp; Thank you for any advise.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; arcpy.FeatureClassToFeatureClass_conversion('public_works.PW.Streets','G:\GISAdmin\NEW_ROADS_NOTIFICATION\Road_Exports','roads' + todaysdate + '.shp')
 arcpy.Select_analysis('public_works.PW.Streets', 'C:\Users\mcline\Downloads\roads2.shp')
 arcpy.CopyFeatures_management("public_works.PW.Streets", 'G:\GISAdmin\NEW_ROADS_NOTIFICATION\Road_Exports\roads' + todaysdate + '.shp')
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:35:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/transportation-questions/error-000210/m-p/595982#M1954</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-12T01:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: Error 000210</title>
      <link>https://community.esri.com/t5/transportation-questions/error-000210/m-p/595983#M1955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: mzcoyle&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Post the entire code you are executing or explain your environment a little more. Also, when using back slashes in your paths you need to use the r (raw string) tag to make sure they go through properly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;eg r'C:\Users\mcline\Downloads\roads2.shp'&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2013 16:15:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/transportation-questions/error-000210/m-p/595983#M1955</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-01-07T16:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Error 000210</title>
      <link>https://community.esri.com/t5/transportation-questions/error-000210/m-p/595984#M1956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: MCline19&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;More code below.&amp;nbsp; The code I posted earlier are the other processes I have tried within the "If-Then" statement.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
import os
import datetime
from datetime import date, timedelta
from arcpy import env
env.workspace = r'G:\GISAdmin\NEW_ROADS_NOTIFICATION\Road_Exports'
dayofweek = datetime.datetime.now().weekday()
todaysdate = str(datetime.date.today())
print todaysdate

if dayofweek == 0 or 1 or 2 or 3 or 4:
 arcpy.CopyFeatures_management("public_works.PW.Streets", r'G:\GISAdmin\NEW_ROADS_NOTIFICATION\Road_Exports\roads' + todaysdate + '.shp')
else:
 print ("End: Not programmed to run on weekends.")
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:35:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/transportation-questions/error-000210/m-p/595984#M1956</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-12T01:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: Error 000210</title>
      <link>https://community.esri.com/t5/transportation-questions/error-000210/m-p/595985#M1957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You have your workspace set to your output directory. You need to fully qualify your path to your input data in the tool or change the workspace to your input directory and retain the fully qualified path to your output.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also instead of or, or, or you can do this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;if dayofweek in [0, 1, 2, 3, 4]:&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Or this&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;if dayofweek in range(5):&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2013 12:33:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/transportation-questions/error-000210/m-p/595985#M1957</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2013-01-08T12:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: Error 000210</title>
      <link>https://community.esri.com/t5/transportation-questions/error-000210/m-p/595986#M1958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: MCline19&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Excellent!&amp;nbsp; Thanks for that suggestion.&amp;nbsp; I'm new to coding and still learning how to be most efficient.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas on what's causing the error?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2013 12:55:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/transportation-questions/error-000210/m-p/595986#M1958</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-01-08T12:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Error 000210</title>
      <link>https://community.esri.com/t5/transportation-questions/error-000210/m-p/595987#M1959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You need to include the path to your sde connection file.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2013 13:01:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/transportation-questions/error-000210/m-p/595987#M1959</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2013-01-08T13:01:40Z</dc:date>
    </item>
  </channel>
</rss>

