updating a field by scheduled job

newbiedeveloper
Giga Contributor

Hi All

I wrote a scheduled job to update a field. It showed that the count is 15400. But it didnot update around 600 records. When i filter the records i frontend, it shows 15400. How come count is showing correct in log but 600 records didnot get updated.

I again re-run the scheduled job and it said it updated 600. But when i saw those records didnot show any updation of that field.

What could be the possible cause?

24 REPLIES 24

I checked and few records have mandatory field left blank. And it gives a data policy violation error.


Ad one client script on Submit one is checking some field must be entered when one of the drop down value is set, which is not the case with those records and it dont allow updation.


Few other records are completely blank even updated on field, and nothing happens to them too.



Any way to tackle them


What script are you using?


scheduled job


Abhinay Erra
Giga Sage

May be the field u_date is already set to "Retire". Try with new set of records


Abhinay Erra
Giga Sage

What is the code in there?