<?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 Calculate Value Tool ERROR 000354: The name contains invalid characters in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-calculate-value-tool-error-000354/m-p/868144#M1167</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the # was the placeholder for a blank expression for the second parameter of Calculate Value.&amp;nbsp; Arc uses them all the time for optional parameters left blank in geoprocessing operations.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Jul 2017 20:40:47 GMT</pubDate>
    <dc:creator>IanMurray</dc:creator>
    <dc:date>2017-07-05T20:40:47Z</dc:date>
    <item>
      <title>Model Builder Calculate Value Tool ERROR 000354: The name contains invalid characters</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-calculate-value-tool-error-000354/m-p/868141#M1164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ArcMap Desktop 10.1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to build a simple Calculate Value Tool entry in a model to concatenate some variables together into an output shapefile name. &amp;nbsp;Cannot get it to work even though the expression evaluates correctly. &amp;nbsp;I have simplified and simplified it trying to find source of error. &amp;nbsp;I now have the simplest of entries. &amp;nbsp;I put a simple text string into the expression and it still will not get past the tool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Executing (Calculate Value): CalculateValue "calcname1" # String&lt;BR /&gt;Start Time: Wed Jul 05 12:35:54 2017&lt;BR /&gt;Value = calcname1&lt;BR /&gt;ERROR 000354: The name contains invalid characters&lt;BR /&gt;Failed to execute (Calculate Value).&lt;BR /&gt;Failed at Wed Jul 05 12:35:54 2017 (Elapsed Time: 0.00 seconds)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried arcpy.ValidateTableName() - no difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What 'name' has invalid characters? &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I chopped everything out of the model to where there is just the Calculate Value tool trying to evaluate the one input text string. &amp;nbsp;It will not successfully finish.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2017 18:42:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/model-builder-calculate-value-tool-error-000354/m-p/868141#M1164</guid>
      <dc:creator>TimBarker</dc:creator>
      <dc:date>2017-07-05T18:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder Calculate Value Tool ERROR 000354: The name contains invalid characters</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-calculate-value-tool-error-000354/m-p/868142#M1165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you attach the screenshot of the model/expression?&lt;/P&gt;&lt;P&gt;Ensure that the result of the expression (name) doesn't have any special characters (except underscore) and it doesn't start with a numeric value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2017 19:36:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/model-builder-calculate-value-tool-error-000354/m-p/868142#M1165</guid>
      <dc:creator>JayantaPoddar</dc:creator>
      <dc:date>2017-07-05T19:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder Calculate Value Tool ERROR 000354: The name contains invalid characters</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-calculate-value-tool-error-000354/m-p/868143#M1166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;was&amp;nbsp; the ... # string... portion in the original?&amp;nbsp; I know it is ok as a comment for python, but not otherwise&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2017 19:38:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/model-builder-calculate-value-tool-error-000354/m-p/868143#M1166</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-07-05T19:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder Calculate Value Tool ERROR 000354: The name contains invalid characters</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-calculate-value-tool-error-000354/m-p/868144#M1167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the # was the placeholder for a blank expression for the second parameter of Calculate Value.&amp;nbsp; Arc uses them all the time for optional parameters left blank in geoprocessing operations.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2017 20:40:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/model-builder-calculate-value-tool-error-000354/m-p/868144#M1167</guid>
      <dc:creator>IanMurray</dc:creator>
      <dc:date>2017-07-05T20:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder Calculate Value Tool ERROR 000354: The name contains invalid characters</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-calculate-value-tool-error-000354/m-p/868145#M1168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ahh, I didn't know it gave the data type as well, I knew about the # bit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2017 20:46:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/model-builder-calculate-value-tool-error-000354/m-p/868145#M1168</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-07-05T20:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder Calculate Value Tool ERROR 000354: The name contains invalid characters</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-calculate-value-tool-error-000354/m-p/868146#M1169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is strange, this works for me:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="360111" alt="Calculate Value screenshot" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/360111_cv1.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;Executing (Calculate Value): CalculateValue "calcvalue1" # String
Start Time: Wed Jul 05 15:16:57 2017
Value = calcvalue1
Succeeded at Wed Jul 05 15:16:57 2017 (Elapsed Time: 0.06 seconds)‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to get back to your need:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;I'm trying to build a simple Calculate Value Tool entry in a model to concatenate some variables together into an output shapefile name.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;You don't need to use Calculate Value, you can just enter them your output path:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;C:\output_folder\%element1%%element2%%element3%&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:48:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/model-builder-calculate-value-tool-error-000354/m-p/868146#M1169</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2021-12-12T10:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder Calculate Value Tool ERROR 000354: The name contains invalid characters</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-calculate-value-tool-error-000354/m-p/868147#M1170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan, this is a very helpful parameter! &amp;nbsp;The Data Type parameter of Calculate Value allows you to use code to construct a string representation of an object (say for extent), if you set the data type it allows model builder to recognize that data type to allow you to connect the Calculate Value output to a tool that requires&amp;nbsp;that particular data type (like Extent, Cell Size, Coordinate System, etc).&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Jul 2017 03:15:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/model-builder-calculate-value-tool-error-000354/m-p/868147#M1170</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2017-07-09T03:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder Calculate Value Tool ERROR 000354: The name contains invalid characters</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-calculate-value-tool-error-000354/m-p/868148#M1171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Similar problem -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Start Time: Mon Sep 30 10:56:14 2019&lt;BR /&gt;Succeeded at Mon Sep 30 10:56:14 2019 (Elapsed Time: 0.35 seconds)&lt;BR /&gt;Executing (Calculate Value): CalculateValue validate(r"coz.DBO.utl_stormwater_impervious") "def validate(string):\n return (string).replace(".", "_")" "Any value"&lt;BR /&gt;Start Time: Mon Sep 30 10:56:14 2019&lt;BR /&gt;Value = coz_DBO_utl_stormwater_impervious&lt;BR /&gt;&lt;STRONG&gt;ERROR 000354: The name contains invalid characters&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Failed to execute (Calculate Value).&lt;/STRONG&gt;&lt;BR /&gt;Failed at Mon Sep 30 10:56:14 2019 (Elapsed Time: 0.00 seconds)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The tool runs, gives me the needed value, but then errors out...why? I have seen this referenced here as well -&amp;nbsp;&lt;A href="https://community.esri.com/thread/101995"&gt;Model builder: iterative Excel-file import and Shapefile output&lt;/A&gt;. I also tried with ValidateTableName with the same error. I just need a valid table name from an SDE database, without the dots.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Sep 2019 15:15:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/model-builder-calculate-value-tool-error-000354/m-p/868148#M1171</guid>
      <dc:creator>MalcolmMeyer2</dc:creator>
      <dc:date>2019-09-30T15:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder Calculate Value Tool ERROR 000354: The name contains invalid characters</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-calculate-value-tool-error-000354/m-p/868149#M1172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A computer restart fixed this and is now working as expected...that is weird.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Sep 2019 16:53:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/model-builder-calculate-value-tool-error-000354/m-p/868149#M1172</guid>
      <dc:creator>MalcolmMeyer2</dc:creator>
      <dc:date>2019-09-30T16:53:03Z</dc:date>
    </item>
  </channel>
</rss>

