Hi
I had an issue reading the data from Excel into a gdx file, and would
like to know if anyone can help pinpoint it down so we will know what
to do in the future if it comes up again.
The line of code executed is:
$call gdxxrw %coalfile% log=coaldata_gdx.log trace=3
output=emma_coal_gdx.gdx @emma_coal_gdx.txt
and in the gdx log file I get the following error message:
Excel GDX interface GDX XRW 0003 2004-10-20
Input file : C:\Test_Input_File_04132009_v2.xls
Output file: C:\emma_coal_gdx.gdx
Type Symbol Dim Sheet Data RowHeader
ColHeader
Set FuelCoal 2 nd CoalQuality --:-- C7:D48
–:–
Par CoalQualityWithType 3 CoalQuality E7:L48
C7:D48 E6:L6
Par CoalRefiningData 4 CoalRefining F7:H33
C7:E33 F6:H6
Exception not caught: Not enough storage is available to complete this
operation
Total time = 9172 Ms
The excel spreadsheet was fairly large, 20Megs, but we have run on
much much larger spreadsheets before with no issues.
The Excel spreadsheet did contain “Excel Bloat”, but note that the
named ranges defined over the data were good, ie they did not contain
any empty/unnecessary cells.
So what I did was take a brand new Excel workbook and rebuilt it from
scratch using the data from the 20Meg version. I defined the ranges
exactly as they were in the bloated version. This new spreadsheet had
exactly the same data as the original bloated version, and data ranges
exactly the same as the bloated version, but it only took up 4Megs [ie
it eliminated the Excel Bloat].
Running this through solves just fine, the gdx read is successful.
So I am currently assuming that the issue was somehow related to Excel
Bloat, but I would like to know more as I dont quite understand how it
affects the gdx read given the named ranges were identical. Or was
the issue related to something else? As mentioned above I dont think
it is related to the size of the workbook as we regularly run much
much larger datasets with no problems.
Let me know if I can give you any more info.
Thanks in advance
Andy C
–~–~---------~–~----~------------~-------~–~----~
To post to this group, send email to gamsworld@googlegroups.com
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en
-~----------~----~----~----~------~----~------~–~—
\