« Happy Memorial Day, and other stuff... | Main| Question for the class: Managing Notes app development... »

Quick tip: NotesDocumentCollection.StampAll fails silently!

QuickImage   
Category
Bookmark : del.icio.us  Technorati  Digg This  Add To Furl  Add To YahooMyWeb  Add To Reddit  Add To NewsVine 

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

Meet Rocky

Rock - February 2010
Rocky Oliver
If you see me at a conference, please stop me and say hi!

Calendar

Search

Categories

Proudly Employed By

Wofkflow Studios

LOTUS GEEK gear

Social Networking


Add to Technorati Favorites

View Rocky Oliver's profile on LinkedIn

Rocky  Oliver

LotusGeek Blog Roll

Why display a blog roll when Planet Lotus does it so much better?

Dilbert

Buy my book!

Blog Buttons

Atheist - Unitarian - Humanist

Poker Players Alliance