Error On Deluge Autonumber Script

Error On Deluge Autonumber Script

the validate script below is giving me the following error:

"Invalid entries found. Please correct and submit again."

this is an autonumber script, copied from the Deluge manual. here's the explanation.


x  =  MaxIDs  [ID != 0];
input.TaskID = (x.TaskID_Max  +  1);
x.TaskID_Max = (x.TaskID_Max  +  1);


why am i getting this error?

i'm using it in the Project Manager Plus app, from Marketplace.


THANKS