Notes View Navigator error after upgrade to 8.5

LotusScript Agent stopped working after server upgrade from 7.0.3 to 8.5 (via 8.0)Error reported: Object variable not set

Script was re-saved with 8.0.1 Designer to include some additional prints to locate the offensive code. I found that I have to change Notes View Navigator from GetNextDocument to GetNext

’ Set ssasnve2 = ssasnvn.GetNextDocument(ssasnve1) ’ was working in 7.0.x

Set ssasnve2 = ssasnvn.GetNext(ssasnve1) ’ works in 8.5

Set ssasdoc = ssasnve2.Document

where ssasnve1 is a category, and ssasnve2 is a document

Hope it will help someone to troubleshoot scripts.

Regards,

Vladimir

Subject: Notes 8.5 problem

Hi

It’s a known “problem”. Actually the navigator class was re-written in Notes 8.5 so you can’t have a mix document and category navigator as far as I know.

When the navigator finds a document (or category, can’t remember) the next result will be null.

So the solution is to create a second navigator and separate the documents and categories. There is another solution which requires to first get the next document and then call the navigator. Something like that.

Sorry but I am no developer.

Hope it helps.