<?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 Inline Variable Sub to output Feature Class Name in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/inline-variable-sub-to-output-feature-class-name/m-p/1326330#M72817</link>
    <description>&lt;P&gt;Calculating the date in YYYYMMDD format as the first step in my model for all of my output Feature Classes to have that at the end of their name. I use the Calculate Value tool to get the Variant YYYYMMDD and I am trying to pass it to multiple output FCs throughout the model.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;This shows how I calculate the %DATE% variable-&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AngelaStrongarm_0-1694090283882.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/80075iED2B6C2FF31F243C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AngelaStrongarm_0-1694090283882.png" alt="AngelaStrongarm_0-1694090283882.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I set the Calculate Value took as the Precondition for the next step, which is here- I try to add the variable sub to an output FC name (Parcels_%DATE%), it tells me that it Contains Invalid Characters-&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AngelaStrongarm_1-1694090413828.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/80076i2A92BA44D2A4FC39/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AngelaStrongarm_1-1694090413828.png" alt="AngelaStrongarm_1-1694090413828.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;I feel like I have got to be missing something pretty obvious, either that or completely misunderstanding the use of the inline variable subs. Any help/ideas are appreciated!&lt;BR /&gt;&lt;BR /&gt;***I do understand that I can skip the Calculate Value and just use the built-in variable sub %t%, but I prefer the date format I've chosen using the Calculate Value tool.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 07 Sep 2023 12:42:13 GMT</pubDate>
    <dc:creator>AngelaStrongarm</dc:creator>
    <dc:date>2023-09-07T12:42:13Z</dc:date>
    <item>
      <title>Inline Variable Sub to output Feature Class Name</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/inline-variable-sub-to-output-feature-class-name/m-p/1326330#M72817</link>
      <description>&lt;P&gt;Calculating the date in YYYYMMDD format as the first step in my model for all of my output Feature Classes to have that at the end of their name. I use the Calculate Value tool to get the Variant YYYYMMDD and I am trying to pass it to multiple output FCs throughout the model.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;This shows how I calculate the %DATE% variable-&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AngelaStrongarm_0-1694090283882.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/80075iED2B6C2FF31F243C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AngelaStrongarm_0-1694090283882.png" alt="AngelaStrongarm_0-1694090283882.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I set the Calculate Value took as the Precondition for the next step, which is here- I try to add the variable sub to an output FC name (Parcels_%DATE%), it tells me that it Contains Invalid Characters-&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AngelaStrongarm_1-1694090413828.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/80076i2A92BA44D2A4FC39/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AngelaStrongarm_1-1694090413828.png" alt="AngelaStrongarm_1-1694090413828.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;I feel like I have got to be missing something pretty obvious, either that or completely misunderstanding the use of the inline variable subs. Any help/ideas are appreciated!&lt;BR /&gt;&lt;BR /&gt;***I do understand that I can skip the Calculate Value and just use the built-in variable sub %t%, but I prefer the date format I've chosen using the Calculate Value tool.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2023 12:42:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/inline-variable-sub-to-output-feature-class-name/m-p/1326330#M72817</guid>
      <dc:creator>AngelaStrongarm</dc:creator>
      <dc:date>2023-09-07T12:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: Inline Variable Sub to output Feature Class Name</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/inline-variable-sub-to-output-feature-class-name/m-p/1326361#M72820</link>
      <description>&lt;P&gt;Your script logic looks sound but its how you are reference the inline variable that is the issue.&lt;/P&gt;&lt;P&gt;Your calculate value tool - don't name its output with 1) a database reserved word and 2) with %% around it. Call it something like &lt;STRONG&gt;myDate.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If you had renamed the output to %bob% then you would need to reference it as %%bob%%.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2023 13:36:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/inline-variable-sub-to-output-feature-class-name/m-p/1326361#M72820</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2023-09-07T13:36:03Z</dc:date>
    </item>
  </channel>
</rss>

