<?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: Raster to Polygon within Model - inline variable error in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/raster-to-polygon-within-model-inline-variable/m-p/369545#M12705</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;%val% is already a parsed path variable. The tool itself will append .shp to the file name if it doesn't read .gdb in the file path. This happens when I set up the tool in the model and have only been able to change it manually as a parameter later when I try an run it. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Jan 2015 15:10:17 GMT</pubDate>
    <dc:creator>JenniferRoath</dc:creator>
    <dc:date>2015-01-06T15:10:17Z</dc:date>
    <item>
      <title>Raster to Polygon within Model - inline variable error</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/raster-to-polygon-within-model-inline-variable/m-p/369539#M12699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created a model to iterate through and process rasters and convert the desired value field to a polygon. The final model needs to be robust and very user friendly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when I try to use an inline variable to put the polygon into a user defined temp geodatabase the tool will add ".shp" to the output file name. Unless it is pathed to a gdb in the model it will add the ".shp" But since the output is really a gdb, it causes an error during the run.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem:&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.esri.com/legacyfs/online/47650_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been getting around this by making the polygon output into a parameter and changing the location myself each run. But then it's not exactly user friendly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How I "fix" the problem:&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-2" src="https://community.esri.com/legacyfs/online/47657_pastedImage_3.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I prevent the automatic addition of ".shp" on this step? And leave out my work-around solution so the eventual user only defines a temp gdb?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(None of the other steps have this issue with the inline variable)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2015 23:57:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/raster-to-polygon-within-model-inline-variable/m-p/369539#M12699</guid>
      <dc:creator>JenniferRoath</dc:creator>
      <dc:date>2015-01-05T23:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: Raster to Polygon within Model - inline variable error</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/raster-to-polygon-within-model-inline-variable/m-p/369540#M12700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe you should write to the in_memory workspace: &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//002w0000005s000000" title="http://resources.arcgis.com/en/help/main/10.2/index.html#//002w0000005s000000"&gt;ArcGIS Help (10.2, 10.2.1, and 10.2.2)&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2015 00:02:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/raster-to-polygon-within-model-inline-variable/m-p/369540#M12700</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2015-01-06T00:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: Raster to Polygon within Model - inline variable error</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/raster-to-polygon-within-model-inline-variable/m-p/369541#M12701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The files are too big and it kept crashing in memory. Using a defined gdb stopped the crashing but then it wouldn't let me use the location as an inline variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2015 00:06:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/raster-to-polygon-within-model-inline-variable/m-p/369541#M12701</guid>
      <dc:creator>JenniferRoath</dc:creator>
      <dc:date>2015-01-06T00:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: Raster to Polygon within Model - inline variable error</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/raster-to-polygon-within-model-inline-variable/m-p/369542#M12702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The alternative is to include a file geodatabase in the model, using he proposed folder structure by Esri:&lt;/P&gt;&lt;P&gt; &lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00570000000q000000.htm" title="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00570000000q000000.htm"&gt;ArcGIS Desktop&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2015 00:11:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/raster-to-polygon-within-model-inline-variable/m-p/369542#M12702</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2015-01-06T00:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: Raster to Polygon within Model - inline variable error</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/raster-to-polygon-within-model-inline-variable/m-p/369543#M12703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using a file geodatabase. The problem is that when I tell the "raster to polygon" tool to create the output polygon features as %temp%\%val%_poly it will append .shp to the file name. However, %temp% is a geodatabase and doesn't allow .shp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been getting around this by setting the output as a parameter and telling it to create the feature as E:\temp.gdb\%val%_poly each time I run the model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My final version can't ask the user to include an inline variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2015 00:27:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/raster-to-polygon-within-model-inline-variable/m-p/369543#M12703</guid>
      <dc:creator>JenniferRoath</dc:creator>
      <dc:date>2015-01-06T00:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: Raster to Polygon within Model - inline variable error</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/raster-to-polygon-within-model-inline-variable/m-p/369544#M12704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe you could use the "Model Only Tool" - Parse Path to get rid of the .shp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2015 00:49:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/raster-to-polygon-within-model-inline-variable/m-p/369544#M12704</guid>
      <dc:creator>MikeCusi</dc:creator>
      <dc:date>2015-01-06T00:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: Raster to Polygon within Model - inline variable error</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/raster-to-polygon-within-model-inline-variable/m-p/369545#M12705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;%val% is already a parsed path variable. The tool itself will append .shp to the file name if it doesn't read .gdb in the file path. This happens when I set up the tool in the model and have only been able to change it manually as a parameter later when I try an run it. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2015 15:10:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/raster-to-polygon-within-model-inline-variable/m-p/369545#M12705</guid>
      <dc:creator>JenniferRoath</dc:creator>
      <dc:date>2015-01-06T15:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: Raster to Polygon within Model - inline variable error</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/raster-to-polygon-within-model-inline-variable/m-p/369546#M12706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok - I found a solution (posting in case someone reads this later with a similar problem)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Model parameter = Results Folder (not a gdb like I had it set up to do)&lt;/P&gt;&lt;P&gt;2) First Step in the model - create "Temp" GDB in the user defined Results Folder&lt;/P&gt;&lt;P&gt;3) In the raster to polygon tool, have the output feature polygon be %Results_Folder%\Temp.gdb\%val%_poly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The tool requires the output path to have .gdb or it will append .shp to the name. This accomplishes that without having to manually change the path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks everyone for the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2015 15:22:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/raster-to-polygon-within-model-inline-variable/m-p/369546#M12706</guid>
      <dc:creator>JenniferRoath</dc:creator>
      <dc:date>2015-01-06T15:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Raster to Polygon within Model - inline variable error</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/raster-to-polygon-within-model-inline-variable/m-p/369547#M12707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the same problem but I did not understand your solution quite well. Could you give post a screenshot of your model? Your solution is the only one that I know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 15:35:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/raster-to-polygon-within-model-inline-variable/m-p/369547#M12707</guid>
      <dc:creator>BrunoMartins1</dc:creator>
      <dc:date>2017-05-04T15:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: Raster to Polygon within Model - inline variable error</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/raster-to-polygon-within-model-inline-variable/m-p/369548#M12708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suggest using the built in variable %scratchGDB% - guaranteed to exist and be writable, set the output of Raster To Polygon to be %scratchGDB%\xxtemp, and then then use Copy Features after that to copy the output of Raster To Polygon to an output feature class set as (output parameter). &lt;A href="https://community.esri.com/group/1218"&gt;Model Builder&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/analyze/sharing-workflows/managing-intermediate-data-in-models-and-scripts.htm" title="http://desktop.arcgis.com/en/arcmap/latest/analyze/sharing-workflows/managing-intermediate-data-in-models-and-scripts.htm"&gt;Managing intermediate (scratch) data in shared model and script tools—Sharing geoprocessing workflows | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Using scratchGDB" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/349579_scratchGDB.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 15:46:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/raster-to-polygon-within-model-inline-variable/m-p/369548#M12708</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2017-05-04T15:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: Raster to Polygon within Model - inline variable error</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/raster-to-polygon-within-model-inline-variable/m-p/369549#M12709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ms. &lt;A href="https://community.esri.com/migrated-users/39525"&gt;Jennifer Roath&lt;/A&gt;,&amp;nbsp;I have similar problem to what you posted last year. The shapefiles in my ModelBuilder like for example in my attached image, the raster to polyline is having an error when I run the model. Based on your posted solution, I should have create a folder that is not inside the File Geodatabase am I right? Thank you.&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/405489_MW_error.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2018 05:02:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/raster-to-polygon-within-model-inline-variable/m-p/369549#M12709</guid>
      <dc:creator>MarinelDegones</dc:creator>
      <dc:date>2018-05-02T05:02:56Z</dc:date>
    </item>
  </channel>
</rss>

