Hello Wilson,
What was you previous Genero version?
In version 2.20 we have introduced the BIGINT data type and the SERIALREG table should now use BIGINT instead of INTEGER.
I suggest that you have a look as this upgrade note:
www.4js.com/online_documentation/fjs-fgl-manual-html/?path=fjs-fgl-manual#c_fgl_Mig0004_011.htmlSince SQLCA.SQLERRD[2] is defined as an INTEGER, it cannot hold BIGINT values so it's probably the reason why it's always zero.
What is the current definition / schema of your serialreg table?
Maybe it's a good opportunity to get rid of the "regtable" emulation and use identity columns instead?
The office is closed so I cannot make tests, but I wanted to point you to this note.
Seb