<?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: FlexScript exception: label ArrivalGroups doesn't exist on token id: 142 ! in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/flexscript-exception-label-arrivalgroups-doesn-t-exist-on-token/m-p/13526295#M36065</link>
    <description>&lt;P&gt;Thank you @&lt;A rel="nofollow" href="https://answers.flexsim.com/users/87/matthew.g.html"&gt;Matthew Gillespie&lt;/A&gt; for your help.&lt;/P&gt;
&lt;P&gt;When I set "current.ArrivalsGroup" I don't get the error message, but all tokens go to group1 and wait the delays of group1, even the tokens that belong to group2.&lt;/P&gt;
&lt;P&gt;Would you please help me to fix this.&lt;/P&gt;
&lt;P&gt;&lt;A id="25255" href="https://answers.flexsim.com/storage/temp/25255-hospital1.fsm"&gt;hospital1.fsm&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jan 2020 09:56:25 GMT</pubDate>
    <dc:creator>sara_s2</dc:creator>
    <dc:date>2020-01-28T09:56:25Z</dc:date>
    <item>
      <title>FlexScript exception: label ArrivalGroups doesn't exist on token id: 142 !</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/flexscript-exception-label-arrivalgroups-doesn-t-exist-on-token/m-p/13526292#M36062</link>
      <description>&lt;P&gt;Hello, &lt;/P&gt;
&lt;P&gt;I am modeling a hospital process in the attached model, where the first patients arrival (named group 1 and contains 3 patients) in the process flow 2 have two delays (delay1 and delay2) according to their locations (location 1 and location 2). The next patients arrival (named group 2 and contains 3 patients) have different delays (delay3 and delay4) from the two mentioned ones (delay1 and delay2). In order to model this, I assigned a label to the created tokens of process flow 2 (Fig1), then I fixed the mentioned four delays according to decision "decide" about this label value (Fig2). But, I get the following error (ERROR): &lt;/P&gt;
&lt;P&gt;FlexScript exception: label ArrivalGroups doesn't exist on token id: 142 at MODEL:/Tools/ProcessFlow/Person Flow2/Patient of group1? &amp;gt;variables/decision&lt;/P&gt;
&lt;P&gt;I really don't understand why the label doesn’t exist while it is well defined. Please help me to fix this.&lt;/P&gt;
&lt;P&gt;&lt;A id="25220" href="https://answers.flexsim.com/storage/attachments/25220-fig1.png"&gt;fig1.png&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A id="25221" href="https://answers.flexsim.com/storage/attachments/25221-fig2.png"&gt;fig2.png&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A id="25222" href="https://answers.flexsim.com/storage/attachments/25222-error.png"&gt;error.png&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Regards. &lt;/P&gt;</description>
      <pubDate>Sun, 26 Jan 2020 14:01:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/flexscript-exception-label-arrivalgroups-doesn-t-exist-on-token/m-p/13526292#M36062</guid>
      <dc:creator>sara_s2</dc:creator>
      <dc:date>2020-01-26T14:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: FlexScript exception: label ArrivalGroups doesn't exist on token id: 142 !</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/flexscript-exception-label-arrivalgroups-doesn-t-exist-on-token/m-p/13526293#M36063</link>
      <description>&lt;P&gt;Here is the model :&lt;/P&gt;
&lt;P&gt;&lt;A id="25223" href="https://answers.flexsim.com/storage/temp/25223-hospital1.fsm"&gt;hospital1.fsm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Jan 2020 14:03:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/flexscript-exception-label-arrivalgroups-doesn-t-exist-on-token/m-p/13526293#M36063</guid>
      <dc:creator>sara_s2</dc:creator>
      <dc:date>2020-01-26T14:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: FlexScript exception: label ArrivalGroups doesn't exist on token id: 142 !</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/flexscript-exception-label-arrivalgroups-doesn-t-exist-on-token/m-p/13526294#M36064</link>
      <description>&lt;P&gt;You assign the label to a token in the Arrivals flow and then that token goes to the Create Person activity. When that activity creates a person it copies all the token labels onto the person, so now the ArrivalsGroup label is on the person. &lt;BR /&gt;&lt;/P&gt;&lt;P&gt;So in the decide activity you should change the code from token.ArrivalsGroup to &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;current.ArrivalsGroup&lt;/PRE&gt;since current refers to the person in a person flow.</description>
      <pubDate>Mon, 27 Jan 2020 15:28:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/flexscript-exception-label-arrivalgroups-doesn-t-exist-on-token/m-p/13526294#M36064</guid>
      <dc:creator>Matthew_Gillespie</dc:creator>
      <dc:date>2020-01-27T15:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: FlexScript exception: label ArrivalGroups doesn't exist on token id: 142 !</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/flexscript-exception-label-arrivalgroups-doesn-t-exist-on-token/m-p/13526295#M36065</link>
      <description>&lt;P&gt;Thank you @&lt;A rel="nofollow" href="https://answers.flexsim.com/users/87/matthew.g.html"&gt;Matthew Gillespie&lt;/A&gt; for your help.&lt;/P&gt;
&lt;P&gt;When I set "current.ArrivalsGroup" I don't get the error message, but all tokens go to group1 and wait the delays of group1, even the tokens that belong to group2.&lt;/P&gt;
&lt;P&gt;Would you please help me to fix this.&lt;/P&gt;
&lt;P&gt;&lt;A id="25255" href="https://answers.flexsim.com/storage/temp/25255-hospital1.fsm"&gt;hospital1.fsm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2020 09:56:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/flexscript-exception-label-arrivalgroups-doesn-t-exist-on-token/m-p/13526295#M36065</guid>
      <dc:creator>sara_s2</dc:creator>
      <dc:date>2020-01-28T09:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: FlexScript exception: label ArrivalGroups doesn't exist on token id: 142 !</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/flexscript-exception-label-arrivalgroups-doesn-t-exist-on-token/m-p/13526296#M36066</link>
      <description>&lt;P&gt;You had a mistake in the code where you set the ArrivalsGroup label:&lt;/P&gt;&lt;PRE&gt;if(rowNumber=1)
&lt;/PRE&gt;&lt;P&gt;this sets rowNumber equal to 1 and then returns true for the if statement. You meant to say:&lt;/P&gt;&lt;PRE&gt;if(rowNumber == 1)&lt;/PRE&gt;&lt;P&gt;which actually compares the value.&lt;/P&gt;&lt;P&gt;I simplified it by just using the rowNumber variable itself.&lt;/P&gt;&lt;P&gt;&lt;A id="25293" href="https://answers.flexsim.com/storage/temp/25293-hospitalfixed.fsm"&gt;hospitalfixed.fsm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2020 00:41:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/flexscript-exception-label-arrivalgroups-doesn-t-exist-on-token/m-p/13526296#M36066</guid>
      <dc:creator>Matthew_Gillespie</dc:creator>
      <dc:date>2020-01-30T00:41:18Z</dc:date>
    </item>
  </channel>
</rss>

