question

Claire Krupp avatar image
0 Likes"
Claire Krupp asked Claire Krupp commented

Table.query with parameters passed via $1 causes crashes in 19.2.4

I am upgrading a model from 19.1.1 to 19.2.4 which has numerous table.query calls to both Global Tables and Global Lists.

Commands with the $1 construct work fine in 19.1.1 but cause the software to completely crash on 19.2.4.

For example, here are a couple lines I put into the Script editor and ran in both versions:

string dockid = "Dock2";
int numrows = Table.query("SELECT * FROM [Dock Assignment] WHERE [DockID] = $1",dockid).numRows;

The table "Dock Assignment" looks like this:

I took out the breakpoints based on the answers to similar questions posted here, and that solves the problem, but it is going to make it very hard to test the dozens of Table.query commands in the model.

The full model is very large and proprietory so I will try to create a scaled down version to upload.

Hoping it is fixed in version 20.0.0? @phil.bobo

FlexSim 19.2.4
debuggertable queries
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

anthony.johnson avatar image
0 Likes"
anthony.johnson answered Claire Krupp commented

This problem has been fixed in 20.0. It had to do with the FlexScript debugger.

· 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.

Claire Krupp avatar image Claire Krupp commented ·

Thank you! I will upgrade and check it out!

0 Likes 0 ·