<?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: Reserved keywords, token labels and Find Slot in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/reserved-keywords-token-labels-and-find-slot/m-p/14124968#M101028</link>
    <description>&lt;P&gt;Thanks, I think I will also take the defensive approach of explicitly casting things in the query e.g. $1.as(Token)._type.as(string).&lt;/P&gt;</description>
    <pubDate>Mon, 11 May 2026 14:15:53 GMT</pubDate>
    <dc:creator>sean_tully</dc:creator>
    <dc:date>2026-05-11T14:15:53Z</dc:date>
    <item>
      <title>Reserved keywords, token labels and Find Slot</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/reserved-keywords-token-labels-and-find-slot/m-p/14124674#M101017</link>
      <description>&lt;P&gt;I was recently having trouble getting an SQL query to work and there seems to be some undocumented behaviour when certain keywords are used in the query.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My query looked like this:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;WHERE 
  slot.rackGroup == $1.rackGroup
  AND slot.hasSpace($1.pallet)
  AND (slot.slotSKU == $1.storageCode OR slot.slotSKU == "&amp;lt;none&amp;gt;")
  AND (slot.preferredType == $1.type OR slot.preferredType == "&amp;lt;none&amp;gt;")
ORDER BY
  (slot.slotSKU == $1.storageCode) DESC,
  (slot.preferredType == $1.type) DESC,
  slot.storageObject.name ASC,  
  slot.bayID ASC,
  slot.levelID ASC,
  slot.slotID ASC&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The parameter &lt;STRONG&gt;$1&lt;/STRONG&gt; is a pointer to &lt;STRONG&gt;token&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found that if I re-labelled &lt;STRONG&gt;token.type&lt;/STRONG&gt; to &lt;STRONG&gt;token._type&lt;/STRONG&gt; and used &lt;STRONG&gt;$1._type&lt;/STRONG&gt; in the query above, it worked.&lt;/P&gt;&lt;P&gt;It seems as if the SQL query treats .type differently, as if it is some sort of reserved keyword.&lt;/P&gt;&lt;P&gt;Interestingly, the documentation for Find Slot actually uses &lt;STRONG&gt;$1.Type&lt;/STRONG&gt; as an example, so it is just &lt;STRONG&gt;$1.type&lt;/STRONG&gt; that gives trouble.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any documentation that covers this?&lt;/P&gt;&lt;P&gt;Is there a list or guidance on what keywords should not be used as token labels?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2026 11:10:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/reserved-keywords-token-labels-and-find-slot/m-p/14124674#M101017</guid>
      <dc:creator>sean_tully</dc:creator>
      <dc:date>2026-05-11T11:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: Reserved keywords, token labels and Find Slot</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/reserved-keywords-token-labels-and-find-slot/m-p/14124768#M101024</link>
      <description>&lt;P&gt;"type" is a property of the Variant class, which is what the $1 would be seen as.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.flexsim.com/en/26.0/Reference/CodingInFlexSim/FlexScriptAPIReference/Data/Variant.html#Property-type" target="_blank"&gt;https://docs.flexsim.com/en/26.0/Reference/CodingInFlexSim/FlexScriptAPIReference/Data/Variant.html#Property-type&lt;/A&gt;&lt;/P&gt;&lt;P&gt;To avoid running into this issue I generally always capitalize my label names, so they can't overlap with existing properties. For example, naming a label on an object "location" would also likely lead to issues, whereas "Location" is fine. The default names in Process Flow activities sadly set a bad example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2026 12:02:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/reserved-keywords-token-labels-and-find-slot/m-p/14124768#M101024</guid>
      <dc:creator>FelixMoehlmann</dc:creator>
      <dc:date>2026-05-11T12:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: Reserved keywords, token labels and Find Slot</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/reserved-keywords-token-labels-and-find-slot/m-p/14124968#M101028</link>
      <description>&lt;P&gt;Thanks, I think I will also take the defensive approach of explicitly casting things in the query e.g. $1.as(Token)._type.as(string).&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2026 14:15:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/reserved-keywords-token-labels-and-find-slot/m-p/14124968#M101028</guid>
      <dc:creator>sean_tully</dc:creator>
      <dc:date>2026-05-11T14:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: Reserved keywords, token labels and Find Slot</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/reserved-keywords-token-labels-and-find-slot/m-p/14125237#M101032</link>
      <description>&lt;P&gt;an under score Line is not a good advice either, because it is prestate to drag objects into a model and establish their automatic installed code. .&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 11 May 2026 16:52:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/reserved-keywords-token-labels-and-find-slot/m-p/14125237#M101032</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2026-05-11T16:52:11Z</dc:date>
    </item>
  </channel>
</rss>

