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.

Matthew Gillespie avatar image Matthew Gillespie ♦♦ commented ·

@Ryusuke T

This issue is fixed in 23.0.9 and 23.1.3 released today.

0 Likes 0 ·

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

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.

Ryusuke T avatar image Ryusuke T commented ·

@Jacob W2 ,

Thank you for your relply.

Currently, if you do not replace it, an error will occur, so I would like to expect it to be improved in the future.

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦ commented ·

This an error in the template - line 11 should be moved to line 20, after the table declaration.

I'll submit it to the developers.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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