# Process flow from machine to conveyor

**URL:** <https://forum.visualcomponents.com/t/process-flow-from-machine-to-conveyor/7158>\
**Category:** Process Modeling\
**Created:** [September 18, 2024, 3:12pm UTC](https://forum.visualcomponents.com/t/process-flow-from-machine-to-conveyor/7158 "2024-09-18T15:12:09Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raj](https://forum.visualcomponents.com/letter_avatar_proxy/v4/letter/r/c0e974/32.png) [@Raj](https://forum.visualcomponents.com/u/Raj)\
**Post date:** [September 18, 2024, 3:12pm UTC](https://forum.visualcomponents.com/t/process-flow-from-machine-to-conveyor/7158/1 "2024-09-18T15:12:09Z")

</div>

Hey all,  
I am trying to simulate a process flow from a machine to conveyor where the inflowing product changes it type in the machine and flows. The problem is only the first product from the machine flow to the next process. The second product fails to flow to next step and the third product is fed on top of the second one.

Kindly find the error statement:  
“ShuttleNode::ShuttleProcessExecutor::Process #1::Transport Out error: Product’s CS Ni Studs state within its flow sequence is lost.”

If this is the case how does only the first product flows correctly… 🤔 🤔 🤔

Picture of 3D layout and process statement is attached.

 ![image](https://forum.visualcomponents.com/uploads/default/original/2X/e/ecf97c7e25b485d96c379cad6a82d115dd284972.jpeg)  
 ![image](https://forum.visualcomponents.com/uploads/default/original/2X/b/b34265a21ce6dbe9dbca85e0d67ed910e068266a.png)

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Tilma](https://forum.visualcomponents.com/user_avatar/forum.visualcomponents.com/tilma/32/4636_2.png) [@Tilma](https://forum.visualcomponents.com/u/Tilma)\
**Post date:** [September 18, 2024, 3:23pm UTC](https://forum.visualcomponents.com/t/process-flow-from-machine-to-conveyor/7158/2 "2024-09-18T15:23:58Z")

</div>

The problem seems to be in your Flow Editor.  
This machine has 2 processes, did you connect both processes to the FromComponent and ToComponent processes?

 ![grafik](https://forum.visualcomponents.com/uploads/default/original/2X/e/e8275c914f2d9761594658a58e72c8c68015bbf0.jpeg)

And if you changed the name of the processes, and they are now different, did you add them both in the ProcessFlowEditor?

---

<div class="post-metadata">

**Author:** ![Raj](https://forum.visualcomponents.com/letter_avatar_proxy/v4/letter/r/c0e974/32.png) [@Raj](https://forum.visualcomponents.com/u/Raj)\
**Post date:** [September 18, 2024, 3:32pm UTC](https://forum.visualcomponents.com/t/process-flow-from-machine-to-conveyor/7158/3 "2024-09-18T15:32:52Z")

</div>

There is only one process in the machine and it is updated on my flow editor.  
I have modified the machine a bit i do not have two shuttle conveyor. I deleted one and moved the other one to the center.

 ![image](https://forum.visualcomponents.com/uploads/default/original/2X/9/9ebd85f7226ec10ef96b252318836da9e9aee52f.jpeg)

---

<div class="post-metadata">

**Author:** ![Tilma](https://forum.visualcomponents.com/user_avatar/forum.visualcomponents.com/tilma/32/4636_2.png) [@Tilma](https://forum.visualcomponents.com/u/Tilma)\
**Post date:** [September 18, 2024, 3:39pm UTC](https://forum.visualcomponents.com/t/process-flow-from-machine-to-conveyor/7158/4 "2024-09-18T15:39:11Z")

</div>

Are the ProductType coming in the machine and the one coming out in the same Flow group?

---

<div class="post-metadata">

**Author:** ![Raj](https://forum.visualcomponents.com/letter_avatar_proxy/v4/letter/r/c0e974/32.png) [@Raj](https://forum.visualcomponents.com/u/Raj)\
**Post date:** [September 18, 2024, 3:46pm UTC](https://forum.visualcomponents.com/t/process-flow-from-machine-to-conveyor/7158/5 "2024-09-18T15:46:18Z")

</div>

Yes… I have defined all under the same flow group.

In that case how does only the first product flow correctly and from the second product “TransportOUT statement is not executed in the machine” but starts “TransportIn” beforehand.

This is the error statement the shows when the 2nd product fails to exit from the machine:

“ShuttleNode::ShuttleProcessExecutor::Process #1::Transport Out error: Product’s CS Ni Studs state within its flow sequence is lost.”

![image](https://forum.visualcomponents.com/uploads/default/original/2X/0/0b048dede1da13b684d76b2709713c677a92874d.png)

---

<div class="post-metadata">

**Author:** ![Jesper](https://forum.visualcomponents.com/letter_avatar_proxy/v4/letter/j/49beb7/32.png) [@Jesper](https://forum.visualcomponents.com/u/Jesper)\
**Post date:** [September 19, 2024, 7:13am UTC](https://forum.visualcomponents.com/t/process-flow-from-machine-to-conveyor/7158/6 "2024-09-19T07:13:33Z")

</div>

Can you share your vc file?

---

<div class="post-metadata">

**Author:** ![Raj](https://forum.visualcomponents.com/letter_avatar_proxy/v4/letter/r/c0e974/32.png) [@Raj](https://forum.visualcomponents.com/u/Raj)\
**Post date:** [September 19, 2024, 8:43am UTC](https://forum.visualcomponents.com/t/process-flow-from-machine-to-conveyor/7158/7 "2024-09-19T08:43:26Z")

</div>

Hiii,

Kindly find the attached file.  
Do let me know what mistake I have made and where it went wrong… For me to learn.

Thanks!  
[Forum.vcmx](https://forum.visualcomponents.com/uploads/short-url/tN765KZHITdlsN0F9bUxChWytS6.vcmx) (3.6 MB)

---

<div class="post-metadata">

**Author:** ![Jesper](https://forum.visualcomponents.com/letter_avatar_proxy/v4/letter/j/49beb7/32.png) [@Jesper](https://forum.visualcomponents.com/u/Jesper)\
**Post date:** [September 19, 2024, 9:42am UTC](https://forum.visualcomponents.com/t/process-flow-from-machine-to-conveyor/7158/8 "2024-09-19T09:42:07Z")

</div>

Hi Raj,

When you are working with transport statements in a while loop, you have to reset the ProductVariableName:

 ![image](https://forum.visualcomponents.com/uploads/default/original/2X/d/de8ee16359515cbd8e3bd84c99d95cb9f68244c2.png)

For convenience I changed your ProductVariableName to ProductIn and with the line ‘Assign ProductIn = NULL’ you reset this variable at the end of the while loop.  
If you do not do this, the following products will give this error ‘flow sequence is lots’.

(I think the reasoning behind this is that the variable will store the first product, and in the next loop it will try to transportin the product which it just transported out.)

Anyhow, this should fix your problem:

[Forum\_fixed.vcmx](https://forum.visualcomponents.com/uploads/short-url/kBnYkBnRZxYInv7OwpbNWSXxnkm.vcmx) (4.0 MB)

---

<div class="post-metadata">

**Author:** ![Jesper](https://forum.visualcomponents.com/letter_avatar_proxy/v4/letter/j/49beb7/32.png) [@Jesper](https://forum.visualcomponents.com/u/Jesper)\
**Post date:** [September 19, 2024, 9:43am UTC](https://forum.visualcomponents.com/t/process-flow-from-machine-to-conveyor/7158/9 "2024-09-19T09:43:36Z")

</div>

Note it does not have to be named ‘ProductIn’, it can have any naming as long as the names are identical trough the process node

---

<div class="post-metadata">

**Author:** ![Raj](https://forum.visualcomponents.com/letter_avatar_proxy/v4/letter/r/c0e974/32.png) [@Raj](https://forum.visualcomponents.com/u/Raj)\
**Post date:** [September 19, 2024, 9:57am UTC](https://forum.visualcomponents.com/t/process-flow-from-machine-to-conveyor/7158/10 "2024-09-19T09:57:19Z")

</div>

Hello Jesper,

Thank you soo much for helping me.  
Now it works fine and now I understood the problem.  
Great explanation given… 👏 👏 👏 🙂
