question

Przemyslaw Pasich avatar image
0 Likes"
Przemyslaw Pasich asked Jeanette F answered

Buggy bundle + importtable() interaction

The issue happens when importing a .csv using importtable() into a table that is defined to be a bundle: if the first row contains an empty string, the whole column gets disregarded completely and the import ends prematurely.

The expected result:

expected-result.png

The achieved result:

actual-result.png

The issue does not occur if the table is NOT a bundle type.

I am attaching a dummy model that recreates this issue + a sample CSV:

missing_col_when_importing_CSV_to_bundle.fsm

sample_csv.txt

Right now the workaround is to modify the .csv as a text file using fileopen() and replacing all the empty values in the first row with a dummy string value (e.g. " "), but can you please fix the issue in some future release of FlexSim so that importing to a bundle table and a non-bundle one behaves consistently?

FlexSim 24.2.0
csvimporttable
· 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.

1 Answer

Jeanette F avatar image
0 Likes"
Jeanette F answered

This has been submitted to the development team for further investigation

5 |100000

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