question

Imran avatar image
0 Likes"
Imran asked Phil BoBo answered

Excel Interface raises error "Error closing the excel workbook" after importing data - version 16.1

While using the Excel Interface, after all the worksheets are imported to global tables, the data import is successful but an error message pops up:

Excel Read Error, Error closing the excel workbook.

I only face this issue in version 16.1.0. No issues if the same workbook is imported using previous versions.

Excel is 2013 version.

FlexSim 16.1.0
error messageexcelimportexcel interface
excel-error.jpg (30.0 KiB)
· 6
5 |100000

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

Matt Long avatar image Matt Long commented ·

Can you attach your model and excel file?

0 Likes 0 ·
Imran avatar image Imran Matt Long commented ·

Hi Matt,

Attached is the model and excel file.. there are no objects, just one global table to be populated.

excel-error.zip

0 Likes 0 ·
excel-error.zip (18.6 KiB)
Matt Long avatar image Matt Long Imran commented ·

There are no issues with your model or the excel file. What version of Excel are you using? What version of Windows?

0 Likes 0 ·
Show more comments
Durga Ghosal avatar image Durga Ghosal commented ·

I am also facing the same issue, any fixes.

0 Likes 0 ·
Ben Wilson avatar image Ben Wilson ♦♦ commented ·

@Imran, What about localizations? Are you using US EN copy of Windows and Office? If not, what localizations are you using?

Also architecture. Is Windows 32- or 64-bit? What about Office?

0 Likes 0 ·

1 Answer

Phil BoBo avatar image
3 Likes"
Phil BoBo answered

We were able to duplicate the issue on a Windows 7 VM with Excel 2013. Every other combination of Excel/Windows that we've tried have all worked fine.

We're working on fixing the error; it will probably be fixed for FlexSim 2016 Update 2.

For now, you can ignore the error message. Everything is working correctly, but it throws an exception as it is cleaning up a pointer at the very end of the excelclose() command.

5 |100000

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