Excel Corruption Issue (EViews 13, windows)

For notifying us of what you believe are bugs or errors in EViews.
Please ensure your copy of EViews is up-to-date before posting.

Moderators: EViews Gareth, EViews Moderator

madm
Posts: 19
Joined: Mon Oct 23, 2017 1:13 pm

Excel Corruption Issue (EViews 13, windows)

Postby madm » Tue Apr 30, 2024 2:39 pm

Hi,

We are having an issue when running programs in EViews 13 that read multiple sheets from an Excel workbook. I think this only happens when we also have the file open in Excel. First, we are seeing that multiple tmp files get produced (see screenshot), which appear to be backup copies of the original excel file. But very occasionally this seems to cause an EViews crash, which results in deletion of the xlsx file. We have no such issue with EViews 12. If this isn't a known issue and you need more info, let me know.

Thanks!

Capture.PNG
Capture.PNG (59.38 KiB) Viewed 369 times

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13330
Joined: Tue Sep 16, 2008 5:38 pm

Re: Excel Corruption Issue (EViews 13, windows)

Postby EViews Gareth » Tue Apr 30, 2024 2:43 pm

Could you describe what you mean by "This seems to cause an EViews crash"?

Also, what's the build date of your copy of EViews 13 (Help->About EViews).
Follow us on Twitter @IHSEViews

madm
Posts: 19
Joined: Mon Oct 23, 2017 1:13 pm

Re: Excel Corruption Issue (EViews 13, windows)

Postby madm » Tue Apr 30, 2024 2:52 pm

Re "seems it causes a crash", typo. The crash coincides with file deletion.
Enterprise Edition -- Oct 11 2023 build

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13330
Joined: Tue Sep 16, 2008 5:38 pm

Re: Excel Corruption Issue (EViews 13, windows)

Postby EViews Gareth » Tue Apr 30, 2024 3:04 pm

Yes, deleting the files when EViews is running could cause a crash.

EViews should delete the files itself after 30 days (Options->General Options->File Locations).

If you want to manually delete them, doing so when EViews is not open should be fine.
Follow us on Twitter @IHSEViews

madm
Posts: 19
Joined: Mon Oct 23, 2017 1:13 pm

Re: Excel Corruption Issue (EViews 13, windows)

Postby madm » Tue Apr 30, 2024 3:10 pm

EViews Gareth wrote:Yes, deleting the files when EViews is running could cause a crash.

EViews should delete the files itself after 30 days (Options->General Options->File Locations).

If you want to manually delete them, doing so when EViews is not open should be fine.


Sorry I wasn't clear. We're not manually deleting anything, just trying to read the files from Excel. EViews and/or Excel seem to be triggering the deletion of the Excel workbook and that coincides with the crash in EViews. To reiterate, in EViews 12 we did not have this problem.
Last edited by madm on Tue Apr 30, 2024 3:16 pm, edited 1 time in total.

madm
Posts: 19
Joined: Mon Oct 23, 2017 1:13 pm

Re: Excel Corruption Issue (EViews 13, windows)

Postby madm » Tue Apr 30, 2024 3:12 pm

As an additional hint, when we use:

Code: Select all

   
   %NAMES= @tablenames(%EXCEL_FILE)


We will sometimes get back a list with a first entry that is not an excel sheet like below:

Code: Select all

   _XLNM._FILTERDATABASE CONFIG CONTROL DATA MAIN


Then when we do:

Code: Select all

   for %N {%NAMES}
      importtbl(name=%N) %EXCEL_FILE range=%N
   next


The first entry "_XLNM._FILTERDATABASE" will immediately crash EViews although sometimes there are other sheet names returned that are similarly problematic (I don't have a list of names handy). We put in a workaround for that particular sheet name and I think because of that we haven't had a crash in a while but we're still seeing the excel workbook TMP files being produced, which isn't ideal and wasn't happening in EViews 12.

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13330
Joined: Tue Sep 16, 2008 5:38 pm

Re: Excel Corruption Issue (EViews 13, windows)

Postby EViews Gareth » Tue Apr 30, 2024 3:38 pm

Does all this occur with a specific file, or are you having issues reading all Excel files?
Follow us on Twitter @IHSEViews

madm
Posts: 19
Joined: Mon Oct 23, 2017 1:13 pm

Re: Excel Corruption Issue (EViews 13, windows)

Postby madm » Tue Apr 30, 2024 3:44 pm

It is occurring with many different files where we are reading from multiple tabs. I suspect but not 100% sure that it only (or at least more frequently) happens if we simultaneously have the file open in Excel. For context, these are input sheets that we are using to create a large-scale forecast model.

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13330
Joined: Tue Sep 16, 2008 5:38 pm

Re: Excel Corruption Issue (EViews 13, windows)

Postby EViews Gareth » Tue Apr 30, 2024 4:36 pm

It is probably related to Excel being open, yes. If Excel is open, we ask Excel to handle the file read. If Excel is closed, EViews does it. (Roughly).

We'll poke around, but in the meantime recommend having Excel closed.
Follow us on Twitter @IHSEViews

madm
Posts: 19
Joined: Mon Oct 23, 2017 1:13 pm

Re: Excel Corruption Issue (EViews 13, windows)

Postby madm » Wed May 01, 2024 8:16 am

Will do for those of us on 13 but my team find it convenient to have the file open in Excel to be able to adjust the model specs and other settings between runs so they tend to leave the file open. This has been blocking us from moving on from EViews 12 to 13. I'll see if I can find another way around this.


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 3 guests