Hi All,

I've got a problem that I hope someone can help with.  A table has all the
collections that we want to keep updated. I have a template that runs each
evening.  It loops through the collection names in the table and deletes, then
recreates, then indexes each collection in turn. It was working fine until
something happened to one of the collections.  It was apparently deleted.  When
the CF template tried to delete it, an error was thrown and the template bombed.
Thus, the collection was not recreated.

I need to use conditional logic to determine if the collection exists before
trying to delete it, then if it doesn't exist, I can just recreate it and go on
about my business.  The problem is that I can't find any way to identify if a
collection exists.  Does anyone know of a way to determine if a collection
exists?  Something like <cfif isDefined("verity.collections.tools")> ?

I tried several approaches, and it doesn't even appear that running a programmed
verity search and checking the record count would do it because it still returns
an error when the collection is not found.

Any help would be greatly appreciated.

Loyd Campbell

Website Manager
Bank One International Group
1700 Pacific Ave., 21st Floor
Mail Code TX1-2805
Dallas, TX 75201
[EMAIL PROTECTED]
214-290-2811 (office)
972-567-9082 (cell)



-------------------------------------------------------------------------
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info: www.mailshield.com

-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org

Reply via email to