Problem using Global Table for process time

Problem using Global Table for process time

SebastianCanasV
Collaborator Collaborator
303 Views
2 Replies
Message 1 of 3

Problem using Global Table for process time

SebastianCanasV
Collaborator
Collaborator

[ FlexSim 19.2.0 ]

Flexscrip exception: Invalid row number: 4 in Global Table "Decor master" at MODEL:/Decoración 1>variables/cycletime

I'm trying to set up the process time of a processor for three products using a global table. It shows me this error and I haven't been able to fix it. Apparently there's something wrong with the way I created the table.

Could anyone help me?

Thanks!

0 Likes
Accepted solutions (1)
304 Views
2 Replies
Replies (2)
Message 2 of 3

Matthew_Gillespie
Autodesk
Autodesk
Accepted solution

You're using item.Type as the row number when getting the value from the Decor master table. The item that enters the processor when the error happens has a Type label of 4. So since you're using item.Type and the Type label is 4 the code tries to get the value of the cell in the 4th row. However, your table only has 3 rows and so you get an error.

It looks like you renamed the row headers of the table to be "Row 4", "Row 5", and "Row 6". But, if you look up a table value using a number it doesn't use the row headers at all. My advice, (if you are never going to have item types 1-3) is to change your row value from item.Type to:

item.Type - 3

that way type 4 will look up the value in row 1.



Matthew Gillespie
FlexSim Software Developer

0 Likes
Message 3 of 3

SebastianCanasV
Collaborator
Collaborator

Thank you very much @Matthew Gillespie, I've just changed it and now it's working!

0 Likes