"cannot open database" via LotusScript - caching issue?

Once in a while we run a scheduled program that is supposed to open up a template database via LotusScript. We get the error “cannot open database”. If we proceed to manually open the database and then quickly rerun the program the problem goes away. It seems to be a caching issue. How do I solve the problem?

Subject: “cannot open database” via LotusScript - caching issue?

Try opening it by server and file rather than repid (which I’, gusessing you are, as this is known to cause that problem sometimes)