<?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: In-line Variables in ModelBuilder in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/in-line-variables-in-modelbuilder/m-p/678653#M38470</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think &lt;A href="https://community.esri.com/migrated-users/3116"&gt;Dan Patterson&lt;/A&gt; is on to the reason - the in-line variable substitution is including the path besides the filename, so thus too many characters.&amp;nbsp; As suggested in the links Dan posted, the &lt;EM&gt;Parse Path&lt;/EM&gt; tool in &lt;EM&gt;Modelbuilder&lt;/EM&gt;&amp;nbsp; can be used to separate out the name from the path.&lt;/P&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/desktop/latest/tools/modelbuilder-toolbox/parse-path.htm" title="http://desktop.arcgis.com/en/desktop/latest/tools/modelbuilder-toolbox/parse-path.htm"&gt;Parse Path—Help | ArcGIS for Desktop&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris Donohue, GISP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Nov 2015 18:21:21 GMT</pubDate>
    <dc:creator>ChrisDonohue__GISP</dc:creator>
    <dc:date>2015-11-17T18:21:21Z</dc:date>
    <item>
      <title>In-line Variables in ModelBuilder</title>
      <link>https://community.esri.com/t5/data-management-questions/in-line-variables-in-modelbuilder/m-p/678650#M38467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm playing with a ModelBuilder tool that I want to use in-line variables to specify the location, e.g. %Location%_sm_10k is my desired output file name. However as this is a grid, it cannot be more than 13 characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I run the tool, I'm getting the error that the file name is more than 13 characters. However when I enter 'drum' as the variable, that would make 11 characters. Even if I enter 'd' as the location, I get the same error (#000161), so I can only assume it is picking up %Location% as part of the file name? I'm a bit lost!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2015 17:29:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/in-line-variables-in-modelbuilder/m-p/678650#M38467</guid>
      <dc:creator>DarrochKaye</dc:creator>
      <dc:date>2015-11-17T17:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: In-line Variables in ModelBuilder</title>
      <link>https://community.esri.com/t5/data-management-questions/in-line-variables-in-modelbuilder/m-p/678651#M38468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;some of the examples might help you refine and remove the path &lt;A href="http://desktop.arcgis.com/en/desktop/latest/analyze/modelbuilder/examples-of-inline-system-variable-substitution.htm" title="http://desktop.arcgis.com/en/desktop/latest/analyze/modelbuilder/examples-of-inline-system-variable-substitution.htm"&gt;http://desktop.arcgis.com/en/desktop/latest/analyze/modelbuilder/examples-of-inline-system-variable-substitution.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/desktop/latest/analyze/modelbuilder/examples-of-inline-model-variable-substitution.htm" title="http://desktop.arcgis.com/en/desktop/latest/analyze/modelbuilder/examples-of-inline-model-variable-substitution.htm"&gt;Examples of inline model variable substitution—Help | ArcGIS for Desktop&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/desktop/latest/analyze/modelbuilder/examples-of-inline-system-variable-substitution.htm" title="http://desktop.arcgis.com/en/desktop/latest/analyze/modelbuilder/examples-of-inline-system-variable-substitution.htm"&gt;Examples of in-line variable substitution with ModelBuilder system variables—Help | ArcGIS for Desktop&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2015 18:03:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/in-line-variables-in-modelbuilder/m-p/678651#M38468</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-11-17T18:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: In-line Variables in ModelBuilder</title>
      <link>https://community.esri.com/t5/data-management-questions/in-line-variables-in-modelbuilder/m-p/678652#M38469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try saving as a .tif, which doesn't have the same naming restrictions. That way, you may be able to determine whether it's a problem with your file name (doesn't look like it), in-line variable substitution (maybe?), or something else entirely (probably?).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2015 18:17:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/in-line-variables-in-modelbuilder/m-p/678652#M38469</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2015-11-17T18:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: In-line Variables in ModelBuilder</title>
      <link>https://community.esri.com/t5/data-management-questions/in-line-variables-in-modelbuilder/m-p/678653#M38470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think &lt;A href="https://community.esri.com/migrated-users/3116"&gt;Dan Patterson&lt;/A&gt; is on to the reason - the in-line variable substitution is including the path besides the filename, so thus too many characters.&amp;nbsp; As suggested in the links Dan posted, the &lt;EM&gt;Parse Path&lt;/EM&gt; tool in &lt;EM&gt;Modelbuilder&lt;/EM&gt;&amp;nbsp; can be used to separate out the name from the path.&lt;/P&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/desktop/latest/tools/modelbuilder-toolbox/parse-path.htm" title="http://desktop.arcgis.com/en/desktop/latest/tools/modelbuilder-toolbox/parse-path.htm"&gt;Parse Path—Help | ArcGIS for Desktop&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris Donohue, GISP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2015 18:21:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/in-line-variables-in-modelbuilder/m-p/678653#M38470</guid>
      <dc:creator>ChrisDonohue__GISP</dc:creator>
      <dc:date>2015-11-17T18:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: In-line Variables in ModelBuilder</title>
      <link>https://community.esri.com/t5/data-management-questions/in-line-variables-in-modelbuilder/m-p/678654#M38471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think that's the answer to my particular problem. My variable is a user-defined string which I want to insert to the beginning of the grid file name. I've attached a diagram to try to illustrate better (the only input which is not shown is the input polygon shapefile). When I run this I get a generic Error 9999 model failure. Since my original post I have changed Location to LOC and this has sorted out the number of characters issue, so I must be missing something as the model was treating the entire %LOCATION%_sm_10k string as the file name, which is obviously over 13 characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="144869" alt="Inline_Variables.png" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/144869_Inline_Variables.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;I'd rather not change to a TIF as this needs to be in grid format, and now that it runs the number of characters isn't an issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all your help thus far.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 11:42:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/in-line-variables-in-modelbuilder/m-p/678654#M38471</guid>
      <dc:creator>DarrochKaye</dc:creator>
      <dc:date>2015-11-18T11:42:38Z</dc:date>
    </item>
  </channel>
</rss>

