I am not sure how to describe the issue here but when in run the simulation i am getting 2 types of errors. sometimes error 1 pops up and sometimes error 2 pops up. i am not sure why this is occurring. i have attached the images.
Please help me with this issue
You are accidentally trying to have the same agent in 2 flowchart blocks at the same time. This is not allowed.
How to fix this? Hard to say for your specific case.
You need to start building models in a way that you catch these problems directly, i.e.:
this way, you would know instantly which tiny change caused your error and could rectify immediately.
Now, you are stuck with a huge flow chart and you will have to peel back and simplify until it works. Then, you find your root cause.