Riddle: What script is running when opening a db?

Occasionally, users are getting a “91: Object variable not set” error message when they OPEN a particular database. We can’t recreate this on demand. The database is used from Notes only.

I have turned on Debugger prior to opening the database, and it shows me no script processing.

The database launches a designated navigator which opens a view initially. There is no script used in the view. There is no database script code.

What am I missing?

Subject: Solution - Riddle: What script is running when opening a db?

The people who were getting the error all had their preview pane showing. When opening the database and the ‘About’ document was displayed, the postopen code on the document being previewed was being run. It was a combination of the’About’ document and the preview pane. Hope this can help someone in the future!

Subject: RE: Solution - Riddle: What script is running when opening a db?

hey Tammy,

Where was the script? In the About Document or in the document being previewed?

Shawn

Subject: RE: Solution - Riddle: What script is running when opening a db?

It was in the postopen of the document being previewed.

What is still confusing me is why the ‘About’ document shows up daily for each person instead of ‘first time’ or ‘when modified’.

Subject: Riddle: What script is running when opening a db?

Tammy, are you running debugger on your PC or theirs? Is the DB a local replica or a server based DB?

Shawn

Subject: RE: Riddle: What script is running when opening a db?

Running it on my PC on a server based db.

Subject: Riddle: What script is running when opening a db?

You checked for script in the navigator? Is it also launching the Help-About document? Script in the view being opened?

Subject: RE: Riddle: What script is running when opening a db?

Where would ‘navigator’ script be? There are buttons on the navigator that run formulas or simple actions, but that’s it.

It only shows ‘About’ when first time or modified.

No script in the initial view that opens.

Subject: RE: Riddle: What script is running when opening a db?

Can you consistently recreate the problem? Does it happen to a specific user?

Shawn

Subject: RE: Riddle: What script is running when opening a db?

We can’t recreate this on demand. For example, it has happened once a day this week and each time to a different person. If they leave the database and come back, they open it with no error.

The more I think of this, the weirder it is … because how I know who/when the errors occur is that I get an email from the error routine. I contact the user right away and they say all they’ve done is open the database. BUT the only error routine in the database that sends this email with that subject line is in a button on the view that composes a new document. And the users are getting this error when they are first opening the database, not clicking on that button.