I've created and registered an SPJobDefinition and what it does is that it runs through some list items on all sites and does some cleanup. On these lists there is a field called Last Run and I update these field with a timestamp... or at least I thought
I did :-) When I step through the debugger it works, but when I don't the field never gets updated...
The proceedure is this:
- Checkout the file in the document library
- Overwriting the file with a newer version
- Update the file's item field Last Run using this code:
file.Item["Last Run"] = DateTime.Now.ToString("ddddd, MMMM dd, yyyy hh:mm:ss tt");
4. Checkin the file
5. Run file.Update()
Any idea why this works when I step through the code, but doesn't otherwise?
View Complete Post