Table( function problems

I have been using the table( function +1 with keydata = 9999 to generate an incremental index in a database. It now seems to always return a zero regardless of the values already in the index. I then duplicated the example in the Pan 6 reference and again got a zero result regardless of the value entered for the keydata.

Is there a know problem with this function?