Was the db that failed open in creator when the script ran?
I ask because mgOpenDb will fail if Creator has it open already.
Thanks Chris. Not positive, I don't think so, but I'll double check.
Nope. I just copied a temp file from the original file, then closed creator, then ran the script and it still died.
I have two scripts that are very similar to each other. One removes switches from a database, and one removes everything except switches from a database.
I'm using a shell copy to make a duplicate of the db.flt.
My prune_non_switch script works fine on the copy, but the prune script fails on the source db file and I'm not sure why.
The script has been run without incident on several hundred other files. I don't see why this one is special and could use some help figuring that out.