<?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: Is it possible in Model Builder to use a String Variable and Get Field Value Variable to reference an input file for a tool? in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/is-it-possible-in-model-builder-to-use-a-string/m-p/832238#M2921</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does the rasterLocation variable need to be of type String?&amp;nbsp; I would also try using it as a Workspace type variable, then you might need to add an additional forward slash in the dataset path.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 May 2016 12:21:57 GMT</pubDate>
    <dc:creator>FC_Basson</dc:creator>
    <dc:date>2016-05-31T12:21:57Z</dc:date>
    <item>
      <title>Is it possible in Model Builder to use a String Variable and Get Field Value Variable to reference an input file for a tool?</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/is-it-possible-in-model-builder-to-use-a-string/m-p/832231#M2914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="ModelImage.png" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/206331_ModelImage.png" style="width: 620px; height: 301px;" /&gt;&lt;/P&gt;&lt;P style="margin-bottom: 1em; color: #242729; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;I have a model which is set up to first iterate (using &lt;EM&gt;Feature Selection&lt;/EM&gt;) through all points in a feature class using a unique value from field X (string).&lt;/P&gt;&lt;P style="margin-bottom: 1em; color: #242729; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;The model then takes this feature and runs it through the &lt;EM&gt;Get Field Value&lt;/EM&gt; tool in order to identify the attribute for any given feature from field Y (string).&lt;/P&gt;&lt;P style="margin-bottom: 1em; color: #242729; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;This point is then fed into the &lt;EM&gt;Batch Watershed Delineation&lt;/EM&gt; tool from the ArcHydro Toolset. Each of the input files for this tool are located in the same raster folder. Input files all begin with the same text. E.g. for &lt;EM&gt;Input Flow Direction Grid&lt;/EM&gt; I have several files in my folder that start with "fdr" and end with the attributes gathered from the &lt;EM&gt;Get Field Value&lt;/EM&gt;.&lt;/P&gt;&lt;P style="margin-bottom: 1em; color: #242729; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;I created a string variable which points to the folder containing the raster files. I named this variable&lt;EM&gt;rasterLocation&lt;/EM&gt;. I have tried to reference each of the relevant input files in the &lt;EM&gt;Batch Watershed Delineation&lt;/EM&gt; Tool, e.g. %rasterLocation%fdr%Y%&lt;/P&gt;&lt;P style="margin-bottom: 1em; color: #242729; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;However, I get the error message - "Input dataset does not exist or is not supported."&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2016 11:28:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/is-it-possible-in-model-builder-to-use-a-string/m-p/832231#M2914</guid>
      <dc:creator>RichardG</dc:creator>
      <dc:date>2016-05-31T11:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible in Model Builder to use a String Variable and Get Field Value Variable to reference an input file for a tool?</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/is-it-possible-in-model-builder-to-use-a-string/m-p/832232#M2915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like you are missing a slash after the folder path.&amp;nbsp; Try &lt;SPAN style="color: #242729; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;%rasterLocation%/fdr%Y%&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2016 11:33:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/is-it-possible-in-model-builder-to-use-a-string/m-p/832232#M2915</guid>
      <dc:creator>FC_Basson</dc:creator>
      <dc:date>2016-05-31T11:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible in Model Builder to use a String Variable and Get Field Value Variable to reference an input file for a tool?</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/is-it-possible-in-model-builder-to-use-a-string/m-p/832233#M2916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have this included in the string variable (rasterLocation). The string variable appears with my personal computer information then \CatchmentDelineation\Layers\&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2016 11:39:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/is-it-possible-in-model-builder-to-use-a-string/m-p/832233#M2916</guid>
      <dc:creator>RichardG</dc:creator>
      <dc:date>2016-05-31T11:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible in Model Builder to use a String Variable and Get Field Value Variable to reference an input file for a tool?</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/is-it-possible-in-model-builder-to-use-a-string/m-p/832234#M2917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do the tool messages give you an indication of the dataset path?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2016 11:49:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/is-it-possible-in-model-builder-to-use-a-string/m-p/832234#M2917</guid>
      <dc:creator>FC_Basson</dc:creator>
      <dc:date>2016-05-31T11:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible in Model Builder to use a String Variable and Get Field Value Variable to reference an input file for a tool?</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/is-it-possible-in-model-builder-to-use-a-string/m-p/832235#M2918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Batch Watershed Delineation tool messages says the following;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR 000732 - Dataset %rasterLocation%fdr%HA% does not exist or is not supported.&lt;/P&gt;&lt;P&gt;This is repeated for each input file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The messages for the individual input files are "The value does not exist"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2016 11:56:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/is-it-possible-in-model-builder-to-use-a-string/m-p/832235#M2918</guid>
      <dc:creator>RichardG</dc:creator>
      <dc:date>2016-05-31T11:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible in Model Builder to use a String Variable and Get Field Value Variable to reference an input file for a tool?</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/is-it-possible-in-model-builder-to-use-a-string/m-p/832236#M2919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried replacing the rasterLocation variable in your inputs with the actual path to test if it exists and works?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2016 12:00:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/is-it-possible-in-model-builder-to-use-a-string/m-p/832236#M2919</guid>
      <dc:creator>FC_Basson</dc:creator>
      <dc:date>2016-05-31T12:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible in Model Builder to use a String Variable and Get Field Value Variable to reference an input file for a tool?</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/is-it-possible-in-model-builder-to-use-a-string/m-p/832237#M2920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your responses. Yes when I have specified particular files,&amp;nbsp; the model runs fine and I get the desired output.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2016 12:08:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/is-it-possible-in-model-builder-to-use-a-string/m-p/832237#M2920</guid>
      <dc:creator>RichardG</dc:creator>
      <dc:date>2016-05-31T12:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible in Model Builder to use a String Variable and Get Field Value Variable to reference an input file for a tool?</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/is-it-possible-in-model-builder-to-use-a-string/m-p/832238#M2921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does the rasterLocation variable need to be of type String?&amp;nbsp; I would also try using it as a Workspace type variable, then you might need to add an additional forward slash in the dataset path.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2016 12:21:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/is-it-possible-in-model-builder-to-use-a-string/m-p/832238#M2921</guid>
      <dc:creator>FC_Basson</dc:creator>
      <dc:date>2016-05-31T12:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible in Model Builder to use a String Variable and Get Field Value Variable to reference an input file for a tool?</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/is-it-possible-in-model-builder-to-use-a-string/m-p/832239#M2922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I removed the rasterLocation string variable and added it as a Workspace type variable as you suggested. I named it rasterLocation again and added the forward slash.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error messages remain.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2016 13:15:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/is-it-possible-in-model-builder-to-use-a-string/m-p/832239#M2922</guid>
      <dc:creator>RichardG</dc:creator>
      <dc:date>2016-05-31T13:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible in Model Builder to use a String Variable and Get Field Value Variable to reference an input file for a tool?</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/is-it-possible-in-model-builder-to-use-a-string/m-p/832240#M2923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've solved the problem. The Get Value string variable refers to attributes which begin with '0'. I put some text before these attributes and edited the input file names and the model works perfectly now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 08:48:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/is-it-possible-in-model-builder-to-use-a-string/m-p/832240#M2923</guid>
      <dc:creator>RichardG</dc:creator>
      <dc:date>2016-06-01T08:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible in Model Builder to use a String Variable and Get Field Value Variable to reference an input file for a tool?</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/is-it-possible-in-model-builder-to-use-a-string/m-p/832241#M2924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You got it. Data set names, even temporary ones, should never begin with a number.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migration-blogpost/55759"&gt;How To Name Things In ArcGIS&lt;/A&gt;​&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2016 05:35:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/is-it-possible-in-model-builder-to-use-a-string/m-p/832241#M2924</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2016-06-09T05:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible in Model Builder to use a String Variable and Get Field Value Variable to reference an input file for a tool?</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/is-it-possible-in-model-builder-to-use-a-string/m-p/832242#M2925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is actually not the solution. The error messages beside the input file names only went momentarily. Once I clicked 'Validate entire model' the same error messages appeared.&lt;/P&gt;&lt;P&gt;The issue seems to be solely to do with the 'Get Field Value' reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The process works fine if I use the following path name for any given file %rasterLocation%fdrha03.&lt;/P&gt;&lt;P&gt;However, if I try to use the Get Field string variable (e.g. ha03, ha04, ha05 etc) then I get an error message. The path is set as follows %rasterLocation%fdr%HA%&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2016 10:25:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/is-it-possible-in-model-builder-to-use-a-string/m-p/832242#M2925</guid>
      <dc:creator>RichardG</dc:creator>
      <dc:date>2016-07-04T10:25:55Z</dc:date>
    </item>
  </channel>
</rss>

