Quick tip: NotesDocumentCollection.StampAll fails silently!
Category Technical
Bookmark :
First off, I am still in Bermuda, so I am posting from a browser (dead computer and all that). The weather has been a bit dicey, but overall nice.
I wanted to post a quick "lesson learned" that I didn't really realize until last week (with the help of Newbs, aka Henry Newberry). I use NotesDocumentCollection.StampAll all the time - it is a GREAT way to update a collection of documents super-fast. For those of you not "in the know", StampAll takes the name of an item as the first parameter and the value you want in the item in the second parameter, and when called it places that item with that value in all the documents in your collection - at once, automatically, without the need to save each doc individually. It writes the update straight to disk. Very very kewl.
Well, the other day I was having a problem with a scheduled agent. Documents weren't getting updated from my StampAll call, but it was intermittent. To make a long story short, turns out that when those documents being updated were created, the Authors items on them weren't updated properly - so my agent didn't have access to them. But StampAll doesn't throw an error in this case - it just continues on, so you can't catch that the docs weren't updated because of an error thrown.
This is a good thing to keep in mind when working with StampAll. Just thought I'd share...
Hope to see you all in Vegas next week!
Rock
The weather is here. Wish you were beautiful. --Jimmy Buffet







Blog Roll








