User Tools

Site Tools


interfaces:gdx_error_message_msg_file_version_not_supported

(GDX error message)*** Msg: File version not supported

Version 22.3 of GAMS introduced a new format (version 6) to store gdx files in a compressed form with some significant savings both in file size and writing time. However we were forced to break backwards compatibility. We objected to do this but we couldn't introduce compression without doing so.

Thus prior versions used version 5 and can not read the format of version 6. If this is the case you will get an error:

c:\test\gdx2veda test
*** Could not open GDX: test.gdx
*** Msg: File version not supported
c:\test\>

Solution: Use the utility gdxcopy to convert from the newer file format to an older one. This utility is part of current distributions.

If you are not sure which version of GAMS has been used to create that gdx file, use the tool gdxdump to inspect the contents of your gdx file. The gdxdump option -v gives you the GDX version info for your GDX file: look at the “file format” line.

For example, I can print version info from a GDX file generated by 22.7, convert it, and verify the conversion like this:

C:\models\tmp>C:\gams_64\22.7.2\gdxdump v227.gdx -v
*  GDX dump of v227.gdx
*  Library in use : C:\gams_64\22.7.2
*  Library version: GDX Library      May  1, 2008 22.7.2 WEX 4701.4799 WEI x86_64/MS Windows
*  File version   : GDX Library      May  1, 2008 22.7.2 WEX 4701.4799 WEI x86_64/MS Windows
*  Producer       : GAMS Base Module May  1, 2008 22.7.2 WEX 4648.4799 WEI x86_64/MS Windows
*  File format    :    7
*  Compression    :    0
*  Symbols        :   12
*  Unique Elements:    5

C:\models\tmp>C:\gams_64\22.7.2\gdxcopy -V6U v227.gdx xxx
Writing files to: .\.\xxx
Converting file: .\v227.gdx

C:\models\tmp>C:\gams_64\22.7.2\gdxdump xxx/v227.gdx -v
*  GDX dump of xxx/v227.gdx
*  Library in use : C:\gams_64\22.7.2
*  Library version: GDX Library      May  1, 2008 22.7.2 WEX 4701.4799 WEI x86_64/MS Windows
*  File version   : _GAMS_GDX_237_2007-01-09
*  Producer       : GAMS Base Module May  1, 2008 22.7.2 WEX 4648.4799 WEI x86_64/MS Windows
*  File format    :    6
*  Compression    :    0
*  Symbols        :   12
*  Unique Elements:    5
interfaces/gdx_error_message_msg_file_version_not_supported.txt · Last modified: 2008/06/17 13:55 by support