<?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 File names containing dash in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/file-names-containing-dash/m-p/517108#M17152</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why is it that some (possibly most?) geoprocessing tools do not allow output shapefile names to start with a number (for example, Dissolve and Spatial Join), while others do (for example, Rename)? Also, why can you start a shapefile name with a number while exporting data (Data -&amp;gt; Export Data)? It does not seem to be a shapefile limitation, it seems to be a individual geoprocessing tool "check".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ask because my organization's project numbers (surprise!) start with numbers, and it would make sense to start file names with the project number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Darren Wiens

*This thread started off wondering why file names could not start with numbers, but it turns out they can.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Aug 2014 21:26:28 GMT</pubDate>
    <dc:creator>DarrenWiens2</dc:creator>
    <dc:date>2014-08-22T21:26:28Z</dc:date>
    <item>
      <title>File names containing dash</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/file-names-containing-dash/m-p/517108#M17152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why is it that some (possibly most?) geoprocessing tools do not allow output shapefile names to start with a number (for example, Dissolve and Spatial Join), while others do (for example, Rename)? Also, why can you start a shapefile name with a number while exporting data (Data -&amp;gt; Export Data)? It does not seem to be a shapefile limitation, it seems to be a individual geoprocessing tool "check".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ask because my organization's project numbers (surprise!) start with numbers, and it would make sense to start file names with the project number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Darren Wiens

*This thread started off wondering why file names could not start with numbers, but it turns out they can.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 21:26:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/file-names-containing-dash/m-p/517108#M17152</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2014-08-22T21:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: File names that start with numbers</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/file-names-containing-dash/m-p/517109#M17153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I haven't check the standard interface but the &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//00080000000q000000"&gt;Spatial join tool&lt;/A&gt; has no such reference to that limitation.&amp;nbsp; Do you get an error message?&amp;nbsp; If so a link should be provided in the help files describing the limitations.&amp;nbsp; I know that dbase field names shouldn't begin with numbers, but I have never saved a shapefile with a starting number.&amp;nbsp; You could use Proj_12345_roads.shp which would allow you to split file names on the "_" character and parse by class (Proj), class number (12345) and class type (roads)., however, I presume that this is a long standing method that you use.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 21:44:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/file-names-containing-dash/m-p/517109#M17153</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2014-08-22T21:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: File names that start with numbers</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/file-names-containing-dash/m-p/517110#M17154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After a little more investigation, I can in fact save the output of Spatial Join starting with a number. I cannot, however, save the output of Spatial Join with a name containing a dash character (our project numbers are like "14-P-575".).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The exact file name I would like to use is "14-P-0575_AgCap.shp". After running Spatial Join, naming the file as something like "AgCap.shp", I can then rename the file to "14-P-0575_AgCap.shp". Why does Spatial Join care if the name contains a dash?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 22:13:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/file-names-containing-dash/m-p/517110#M17154</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2014-08-22T22:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: File names that start with numbers</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/file-names-containing-dash/m-p/517111#M17155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know...maybe if you could just lower your dash to an underscore &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 22:22:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/file-names-containing-dash/m-p/517111#M17155</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2014-08-22T22:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: File names containing dash</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/file-names-containing-dash/m-p/517112#M17156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From my understanding, various naming conventions are enforced so that ArcGIS can work with multiple data types. In some cases, a hyphen is an invalid character so ArcGIS tends to choke on them from time to time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//00vq0000000w010085"&gt; this link &lt;/A&gt;for a quick guide on naming conventions. I know this is for field names, but it's a good practice to keep your file names clean too.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 22:28:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/file-names-containing-dash/m-p/517112#M17156</guid>
      <dc:creator>JaredStewart</dc:creator>
      <dc:date>2014-08-22T22:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: File names containing dash</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/file-names-containing-dash/m-p/517113#M17157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That was for field names....do you mean this one for &lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//00vq0000000w010090"&gt;file names&lt;/A&gt;&amp;nbsp; was that the error message Darren? or did you get an error message? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 22:41:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/file-names-containing-dash/m-p/517113#M17157</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2014-08-22T22:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: File names containing dash</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/file-names-containing-dash/m-p/517114#M17158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I get errors: &lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/000210_Cannot_create_output_value/00vp0000000n000210/"&gt;000210&lt;/A&gt; (Cannot create output), and &lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/000354_The_name_contains_invalid_characters/00vp00000026000354/"&gt;000354&lt;/A&gt; (The name contains invalid characters).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field names are fine. I'm not concerned with "the best ways" to name my files (our project numbers contain numbers and hyphens and there's not much I can do about it), I'm curious why some geoprocessing tools treat names as invalid, when they are not (i.e. I can rename the files to contain hyphens and as is well).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 23:14:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/file-names-containing-dash/m-p/517114#M17158</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2014-08-22T23:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: File names containing dash</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/file-names-containing-dash/m-p/517115#M17159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nothing has change in 10.2.2, so if you are scripting you will have to rename after the fact.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Aug 2014 00:11:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/file-names-containing-dash/m-p/517115#M17159</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2014-08-23T00:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: File names containing dash</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/file-names-containing-dash/m-p/517116#M17160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am resurrecting this old post to see if anyone found a workaround for the limitation on the use of hyphens in an output shapefile when certain geoprocessing tools are used.&amp;nbsp; I have an ArcMap&amp;nbsp; project where selected features get exported to new shapefiles with dates using hyphens.&amp;nbsp; It works fine and the result fits in with the naming format of hundreds of shapefiles.&amp;nbsp; In ArcGIS Pro it doesn't work because Pro uses the Copy Features tool to do the same thing, and while it can read a shapefile with hyphens in its name as input, it cannot export to a shapefile with hyphens in its name.&amp;nbsp; Same thing for the Feature to Polygon tool.&amp;nbsp; This is not a big deal since I have the ArcMap project and can make a QGIS project from it, but it is just one more way Pro seems to delight in screwing up simple conversion of ArcMap projects to Pro projects. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2018 15:41:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/file-names-containing-dash/m-p/517116#M17160</guid>
      <dc:creator>JohnSobetzer</dc:creator>
      <dc:date>2018-12-03T15:41:14Z</dc:date>
    </item>
  </channel>
</rss>

