Compile Error Key Number Does Not Exist
There are times when you may encounter the following error message, “Fld Error: Key Number Does Not Exist”. This can appear when attempting to compile a 4GL program in Lawson, it is possible that the key needs to be added to kndef.
Note that this error message will likely present itself in the XXXX.scr.err file.
To resolve this error, simply follow the steps outlined below:
- Login to LID
- Run command kndef to define the missing key
- cd LAWDIR/(productline)/sdlib
- rm *
- srgen (productline) (source)
- qcompile (productline) (source) (program)
- recompile any other invoked programs
Your error message should now disappear and the program should run normal.
Leave a Reply
Want to join the discussion?Feel free to contribute!