question

Ryusuke T avatar image
0 Likes"
Ryusuke T asked Matthew Gillespie commented

Error in write to a global table

Hi,

Selecting certain selections in Write to global table causes an error.

Select Custom Code > Data > Write to Global Table.

Select the global table and select table[row][column]+1 from the pull-down menu for the value item.

1684333228934.png

I get the following error message:

1684333259410.png

When would you use this option?

FlexSim 23.0.5
write to global table
1684333228934.png (17.3 KiB)
1684333259410.png (23.0 KiB)
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Jacob W2 avatar image
0 Likes"
Jacob W2 answered Jason Lightfoot commented

Hi @Ryusuke T,

The error is being caused by how the value field is written. The Table callout at the beginning needs to be replaced with

  1. Table("TableName")[rowValue][columnValue] + 1

This can be used to increment a value in a specific cell in a table.

· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.