<?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: Model builder: iterative Excel-file import and Shapefile output in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-iterative-excel-file-import-and/m-p/713084#M23623</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the hint (Calculate Value is now "shaded" too) - unfortunately it didn't have any effect. I think the order of the processes works according to plan, but for some reason the string I'm trying to create by "Calculate value" does not seem to have a proper format.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How would you create the output file name, if you wanted to base it on the input file's name?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Or is there another/better way to import 50 files (csv or xls) into point shapes?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Eric&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Sep 2013 09:17:36 GMT</pubDate>
    <dc:creator>EricWehner</dc:creator>
    <dc:date>2013-09-19T09:17:36Z</dc:date>
    <item>
      <title>Model builder: iterative Excel-file import and Shapefile output</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-iterative-excel-file-import-and/m-p/713082#M23621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to automate the following process within the model builder:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Import Excel xls-files, that each contain point elevation data with x,y and z values&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Convert them into separate shape files while using the original xls file name as the output file name&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Therefore I've setup the following model:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]27506[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem occurs while trying to copy the features to an output shape when using the expression for the new file name. Since for iterating the Excel files I need to activate the Recursive option to scan the worksheets within each xls file. The extracted "File" then contains a "$" at the end to mark the worksheet (so if for instance the input file is 001b.xls, the extracted name within "File" is 001b$). &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Because of the error message "000354 : The name contains invalid characters" i assumed that the "$" is the problem and used the Calculate Value tool with&amp;nbsp;&amp;nbsp; r"%File%".replace("$","")&amp;nbsp;&amp;nbsp; as an Expression and string as the Data Type. Unfortunately this doesn't help, although the calculated value seems to be correct (without the "$")...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hence my questions are:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;a) What exactly is causing the error and how can I solve it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;b) What other possibilities would I have to manipulate the input file name for output, for instance if I want to use only a part of the name or add an automated counter?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance for any help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Sep 2013 10:52:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-builder-iterative-excel-file-import-and/m-p/713082#M23621</guid>
      <dc:creator>EricWehner</dc:creator>
      <dc:date>2013-09-17T10:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: Model builder: iterative Excel-file import and Shapefile output</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-iterative-excel-file-import-and/m-p/713083#M23622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Eric,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you sure the Calculate Value process is running prior to the Copy process? I understand you have a precondition but Model Builder can be tricky with preconditions at times.&amp;nbsp; I ask because I don't see the shade underneath the process as if it has ran.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A quick way to make sure of that is to delete and re-add the processes, adding the Calculate Value first, then the Copy.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As for your question regarding an automated counter %i% and/or %n% can be used to add the iteration number to a name.&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//002w00000060000000"&gt;Here's&lt;/A&gt;&lt;SPAN&gt; more information on these variables.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris B.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Edit:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also it just occurred to me that you are naming a file starting with a number (at least in your example).&amp;nbsp; If you're storing this in a geodatabase, there will be naming issues for the file if it starts with a number.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Sep 2013 12:48:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-builder-iterative-excel-file-import-and/m-p/713083#M23622</guid>
      <dc:creator>ChristopherBlinn1</dc:creator>
      <dc:date>2013-09-17T12:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: Model builder: iterative Excel-file import and Shapefile output</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-iterative-excel-file-import-and/m-p/713084#M23623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the hint (Calculate Value is now "shaded" too) - unfortunately it didn't have any effect. I think the order of the processes works according to plan, but for some reason the string I'm trying to create by "Calculate value" does not seem to have a proper format.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How would you create the output file name, if you wanted to base it on the input file's name?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Or is there another/better way to import 50 files (csv or xls) into point shapes?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Eric&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2013 09:17:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-builder-iterative-excel-file-import-and/m-p/713084#M23623</guid>
      <dc:creator>EricWehner</dc:creator>
      <dc:date>2013-09-19T09:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: Model builder: iterative Excel-file import and Shapefile output</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-iterative-excel-file-import-and/m-p/713085#M23624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;First I would try to import the xls files into geodatabase tables. I experienced problems regarding xls tables.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Akos&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2013 09:50:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-builder-iterative-excel-file-import-and/m-p/713085#M23624</guid>
      <dc:creator>AkosKisreti1</dc:creator>
      <dc:date>2013-09-19T09:50:31Z</dc:date>
    </item>
  </channel>
</rss>

