Javier
As far as I know this is not a Sql2gms problem, it's from the
odbc/database. Every time the search engines from a database (such as
sql, oracle, etc) don't find anything that matches your query, it
returns an error. Maybe you can initialize the specifc field in the
table with a default value to get the at least a valid line, then,
inside gams, you can ignore it.
Regards
Edsoncv
Javier escreveu: