<?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: Can you use a looped token to access labels using token.pulled? in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/can-you-use-a-looped-token-to-access-labels-using-token-pulled/m-p/13552532#M56828</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/25867/hannahs.html" nodeid="25867"&gt;@Hannah S&lt;/A&gt;, was Logan Gold's answer helpful? If so, please click the red "Accept" button on their answer. Or if you still have questions, add a comment and we'll continue the conversation.&lt;/P&gt;&lt;P&gt;If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 10 Dec 2020 15:09:43 GMT</pubDate>
    <dc:creator>Ben_WilsonADSK</dc:creator>
    <dc:date>2020-12-10T15:09:43Z</dc:date>
    <item>
      <title>Can you use a looped token to access labels using token.pulled?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/can-you-use-a-looped-token-to-access-labels-using-token-pulled/m-p/13552530#M56826</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 20.2.3 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;In my model I have a process flow that uses looped tokens. I generate 1 token at the start, send it through a process flow, and then once the process flow is completed I send it back to the start of the process flow. At the top of the process flow is a "Pull from List" block followed by an "Assign Labels" block. I use the "Assign Labels" to access labels from the item I pulled from the list using token.pulled.label. This works the first time I send the token through the process flow. The second time I send the token through the process flow I can still pull an item from the list, but when I try to assign a label I get the following error "FlexScript exception: Retrieving - label property on node that does not exist at MODEL:/Tools/ProcessFlow/ProcessFlow/Assign Labels&amp;gt;labels/1/2." In the test model I built to submit here I can't even send the token through once without getting this error. What am I doing wrong? Is there a better way to access labels on a pulled token?&lt;/P&gt;
 &lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/34895-list-error.fsm" target="_blank"&gt;List Error.fsm&lt;/A&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 04 Dec 2020 17:30:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/can-you-use-a-looped-token-to-access-labels-using-token-pulled/m-p/13552530#M56826</guid>
      <dc:creator>hannah_s</dc:creator>
      <dc:date>2020-12-04T17:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: Can you use a looped token to access labels using token.pulled?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/can-you-use-a-looped-token-to-access-labels-using-token-pulled/m-p/13552531#M56827</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;In the test model, as soon as a token is pulled off the Test List, it goes from the "Push to List" activity to the Sink and is destroyed.  This happens before the puller token can finish at the Assign Labels activity that is assigning the Number label.&lt;/P&gt;&lt;P&gt;That means when token.pulled.Number is accessed in the Assign Labels activity, token.pulled is NULL, because token.pulled is trying to reference a token that has been destroyed. &lt;/P&gt;&lt;P&gt;The fix for the sample model is to add a Delay activity after the "Push to List", using 0 for the Delay Time.  This gives the puller token a chance to set the Number label before the pulled token is destroyed.  This will probably work on your main model as well if it is the same error message ("node that does not exists"), but try it and let us know.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 05 Dec 2020 00:08:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/can-you-use-a-looped-token-to-access-labels-using-token-pulled/m-p/13552531#M56827</guid>
      <dc:creator>logan_gold</dc:creator>
      <dc:date>2020-12-05T00:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: Can you use a looped token to access labels using token.pulled?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/can-you-use-a-looped-token-to-access-labels-using-token-pulled/m-p/13552532#M56828</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/25867/hannahs.html" nodeid="25867"&gt;@Hannah S&lt;/A&gt;, was Logan Gold's answer helpful? If so, please click the red "Accept" button on their answer. Or if you still have questions, add a comment and we'll continue the conversation.&lt;/P&gt;&lt;P&gt;If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 10 Dec 2020 15:09:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/can-you-use-a-looped-token-to-access-labels-using-token-pulled/m-p/13552532#M56828</guid>
      <dc:creator>Ben_WilsonADSK</dc:creator>
      <dc:date>2020-12-10T15:09:43Z</dc:date>
    </item>
  </channel>
</rss>

