question

tong avatar image
0 Likes"
tong asked tannerp edited

Language messed up when exporting from Global Table to Excel

I have a question about excel output. When I export from the Global Table of FlexSim17.1.2 to Excel, the language code is messy. Could you tell me how to solve this problem? Thank you!

FlexSim 17.1.2
Choose One
excel exportmessys code
messy-code.png (18.7 KiB)
· 4
5 |100000

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

Joerg Vogel avatar image Joerg Vogel commented ·

I can't reproduce the issue. I tested an export of a small table with german unique characters and different brackets all as strings. But perhaps you have to set the sheet file encoding to UTF-8. A workaround is to export a csv formated text file and import this file with the right encoding.

Maybe you can export the global table as a tree file from the model tree: right mouse button menu>Node > Save Node As... and append the file to your question. Then we are able to import your global table to an empty model and test, which settings are necessary to export the table.

2 Likes 2 ·
Phil BoBo avatar image Phil BoBo ♦♦ commented ·

Please post an example model and the steps you are performing in order for us to replicate the issue you are seeing.

FlexSim has many ways to export data to Excel. We need more details in order to replicate the issue you are seeing.

2 Likes 2 ·
tong avatar image tong Phil BoBo ♦♦ commented ·

After opening the model,click the run button of script to achieve the export of global table.Then open demo1.xlsx in the modeldir(),you will find messys code.

0 Likes 0 ·
tong avatar image tong Phil BoBo ♦♦ commented ·
0 Likes 0 ·
exceloutput.zip (26.2 KiB)

1 Answer

Phil BoBo avatar image
3 Likes"
Phil BoBo answered tong commented

Thanks for the example model. I'm able to replicate the issue you are describing using your sample model.

This appears to be a bug. I'll add a case to the dev list.

For now, you could follow Jörg's suggestion to use exporttable() to export each table to a csv file. Then use Excel's "From Text/CSV" Data import feature, which enables you to specify the text encoding, to load the csv files. When you select UTF-8, it loads this table correctly. See the image below:


exporttable-csv.png (196.3 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.

tong avatar image tong commented ·

The problem is solved, thank you very much!

0 Likes 0 ·