ERROR

ERROR

Error details:
Error occurred while executing on click script.
         Unable to update data on the form variable
                    Unique constraint Failed in the form field null.t_161415000000850309_PIDX.null


 

I'm using a stateless form to fix a large number errors in my data. In order to stay below the 500 insert limit, I have a counting variable in the code.

The error above is generated...can we say obtuse?

myCount = 0;
for each r in MYDATA
{
    if ((r.Cat  ==  "Y")  &&  (myCount <=  497))
    {
        r.Dog = "Y";
        myCount = (myCount  +  1);
    }
}
info myCount;