<?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: PF Batch w &amp;quot;Hold Excess Quantity&amp;quot; - next Batch Quantity is not recalculated in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/pf-batch-w-quot-hold-excess-quantity-quot-next-batch-quantity-is/m-p/13550514#M55275</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/11003/clairek.html" nodeid="11003"&gt;@Claire Krupp&lt;/A&gt;, was Felix Möhlmann's answer helpful? If so, please click the "Accept" button at the bottom of the 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;/DIV&gt;</description>
    <pubDate>Thu, 23 Feb 2023 22:12:41 GMT</pubDate>
    <dc:creator>andrew_o2</dc:creator>
    <dc:date>2023-02-23T22:12:41Z</dc:date>
    <item>
      <title>PF Batch w "Hold Excess Quantity" - next Batch Quantity is not recalculated</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/pf-batch-w-quot-hold-excess-quantity-quot-next-batch-quantity-is/m-p/13550506#M55267</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 23.0.1 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;I am using the Process Flow Batch activity to pull in multiple tokens and produce 4 outgoing tokens representing pallets, each one with a different density. I have custom code to figure out what the density should be for each batch. Any excess quantity on the last token of a batch is carried over and it becomes the first token of the new batch:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1676670865768.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1515425iFCC9F18D85A77931/image-size/large?v=v2&amp;amp;px=999" role="button" title="1676670865768.png" alt="1676670865768.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;The Batch Quantity for the first batch is calculated correctly, and the excess 200 units are carried forward to the second batch, but the second batch uses the same density as the first batch. I have breakpoints in the code, and they are never triggered, which means the Batch Quantity calculation is not being re-evaluated.&lt;/P&gt;&lt;P&gt;I could do the calculation earlier and put the density I want on a label of the incoming tokens, but if the quantity is not re-evaluated, then that will not work either.&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;The model is confidential, but I can send it to the Dev team if needed.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 17 Feb 2023 22:06:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/pf-batch-w-quot-hold-excess-quantity-quot-next-batch-quantity-is/m-p/13550506#M55267</guid>
      <dc:creator>clairekruppGhafari</dc:creator>
      <dc:date>2023-02-17T22:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: PF Batch w "Hold Excess Quantity" - next Batch Quantity is not recalculated</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/pf-batch-w-quot-hold-excess-quantity-quot-next-batch-quantity-is/m-p/13550507#M55268</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;Update: If I adjust the batch quantities so that I do not have any overflow, and each batch starts with a new token, then the batch quantities are calculated as expected. It must be a problem with the overflowing token only.&lt;/DIV&gt;</description>
      <pubDate>Fri, 17 Feb 2023 23:31:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/pf-batch-w-quot-hold-excess-quantity-quot-next-batch-quantity-is/m-p/13550507#M55268</guid>
      <dc:creator>clairekruppGhafari</dc:creator>
      <dc:date>2023-02-17T23:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: PF Batch w "Hold Excess Quantity" - next Batch Quantity is not recalculated</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/pf-batch-w-quot-hold-excess-quantity-quot-next-batch-quantity-is/m-p/13550508#M55269</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;As you say, it seems that the batch quantity is not re-evaluated when a token for an excess quantity is created by the Batch activity.&lt;/P&gt;&lt;P&gt;As a workaround, you can write the target quantity to a label on the token (either when calculating it in the respective field, or beforehand). Choose the option to always release the excess amount as well. Then check if the batch quantity is larger than the target quantity. If so, create an "excess-token" manually and adjust the batch quantity label of the released token.&lt;/P&gt;&lt;P&gt;The excess token entering the Batch activity will correctly evaluate the quantity anew.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1676880997638.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1515415i9E7C61FA7610C09F/image-size/large?v=v2&amp;amp;px=999" role="button" title="1676880997638.png" alt="1676880997638.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/64469-workaround-fm.fsm" target="_blank"&gt;workaround_fm.fsm&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 20 Feb 2023 08:17:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/pf-batch-w-quot-hold-excess-quantity-quot-next-batch-quantity-is/m-p/13550508#M55269</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2023-02-20T08:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: PF Batch w "Hold Excess Quantity" - next Batch Quantity is not recalculated</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/pf-batch-w-quot-hold-excess-quantity-quot-next-batch-quantity-is/m-p/13550509#M55270</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;Thanks &lt;A rel="user" href="https://answers.flexsim.com/users/19365/felixmh.html" nodeid="19365"&gt;@Felix Möhlmann&lt;/A&gt; I did already find a simpler workaround by just revising my target quantities to be exact units of the incoming token densities, so that there is never any excess, and a new token starts the new batch. I then adjust the outgoing quantities to what they should be after the batch.&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Has the error been reported to the Dev team?&lt;/P&gt; &lt;/DIV&gt;</description>
      <pubDate>Mon, 20 Feb 2023 17:30:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/pf-batch-w-quot-hold-excess-quantity-quot-next-batch-quantity-is/m-p/13550509#M55270</guid>
      <dc:creator>clairekruppGhafari</dc:creator>
      <dc:date>2023-02-20T17:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: PF Batch w "Hold Excess Quantity" - next Batch Quantity is not recalculated</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/pf-batch-w-quot-hold-excess-quantity-quot-next-batch-quantity-is/m-p/13550510#M55271</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;I've tagged it as a possible bug for discussion.&lt;/DIV&gt;</description>
      <pubDate>Mon, 20 Feb 2023 17:33:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/pf-batch-w-quot-hold-excess-quantity-quot-next-batch-quantity-is/m-p/13550510#M55271</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2023-02-20T17:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: PF Batch w "Hold Excess Quantity" - next Batch Quantity is not recalculated</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/pf-batch-w-quot-hold-excess-quantity-quot-next-batch-quantity-is/m-p/13550511#M55272</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Temporary workaround: I adjusted the outgoing batch quantity to be an exact multiple of the incoming quantities, so that there is never an "excess" token, and the new batch quantity is always calculated because it's a new token coming in.&lt;/P&gt;&lt;P&gt;In my case I have 800 units each token coming in, and I want 5000, 5000, 4000, 2000 going out, so I changed the outbound quantities to 4800, 4800, 4000, 2400, and then corrected them after they had left the batch activity.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 20 Feb 2023 17:35:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/pf-batch-w-quot-hold-excess-quantity-quot-next-batch-quantity-is/m-p/13550511#M55272</guid>
      <dc:creator>clairekruppGhafari</dc:creator>
      <dc:date>2023-02-20T17:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: PF Batch w "Hold Excess Quantity" - next Batch Quantity is not recalculated</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/pf-batch-w-quot-hold-excess-quantity-quot-next-batch-quantity-is/m-p/13550512#M55273</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;Thanks &lt;A rel="user" href="https://answers.flexsim.com/users/226/jason.l.html" nodeid="226"&gt;@Jason Lightfoot&lt;/A&gt; &lt;/DIV&gt;</description>
      <pubDate>Mon, 20 Feb 2023 17:35:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/pf-batch-w-quot-hold-excess-quantity-quot-next-batch-quantity-is/m-p/13550512#M55273</guid>
      <dc:creator>clairekruppGhafari</dc:creator>
      <dc:date>2023-02-20T17:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: PF Batch w "Hold Excess Quantity" - next Batch Quantity is not recalculated</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/pf-batch-w-quot-hold-excess-quantity-quot-next-batch-quantity-is/m-p/13550513#M55274</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;Thank &lt;EM&gt;you&lt;/EM&gt; Claire.  We discussed it in the support group and I sent in the example to dev for consideration.  Glad you found a workaround or two.&lt;/DIV&gt;</description>
      <pubDate>Mon, 20 Feb 2023 20:49:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/pf-batch-w-quot-hold-excess-quantity-quot-next-batch-quantity-is/m-p/13550513#M55274</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2023-02-20T20:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: PF Batch w "Hold Excess Quantity" - next Batch Quantity is not recalculated</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/pf-batch-w-quot-hold-excess-quantity-quot-next-batch-quantity-is/m-p/13550514#M55275</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/11003/clairek.html" nodeid="11003"&gt;@Claire Krupp&lt;/A&gt;, was Felix Möhlmann's answer helpful? If so, please click the "Accept" button at the bottom of the 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;/DIV&gt;</description>
      <pubDate>Thu, 23 Feb 2023 22:12:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/pf-batch-w-quot-hold-excess-quantity-quot-next-batch-quantity-is/m-p/13550514#M55275</guid>
      <dc:creator>andrew_o2</dc:creator>
      <dc:date>2023-02-23T22:12:41Z</dc:date>
    </item>
  </channel>
</rss>

