Restore corrupt document - "Note Item Not Found"

Hello All,

I have a database for a workflow with a few hundret douments in it, and it works fine. But now I have a single document that I can’t open though I have full access to the Database - when I try to open it Notes says “Note Item not found”. I can see all the Items of the document in the View Properties, and they seem to be correct, I just can’t open the docuemnt itself! I tried fixup and compact -c, didn’t help.

How can I restore that doument or at least retrieve the data from it?

TIA,

Peter

Subject: Restore corrupt document - “Note Item Not Found”

maybe your view is corrupt. Tray updall command to rebuild your view en index.Load updall databasepath options

Subject: RE: Restore corrupt document - “Note Item Not Found”

Hello Homan,I tried that, using -R wich should rebuild all views - didn’t help :frowning:

I can see the document in all views of the database, and I can see it’s data using View Properties-Document-[Tab2] - I just can’t open it…

Any further suggestions?

TIA,

Peter

Subject: RE: Restore corrupt document - “Note Item Not Found”

Do you tried also to remove and create a new full-text index?

Subject: RE: Restore corrupt document - “Note Item Not Found”

Hi Homan,

Yes, I did that - but I think Carsten might have a point (see his Posting and my answer in this thread)

Thanks anyway,

Peter

Subject: Restore corrupt document - “Note Item Not Found”

This sound more like you have a script problem in the queryopen or postopen event. Try running the script-debugger and see if it points out the error.

CH

Subject: RE: Restore corrupt document - “Note Item Not Found”

Hello Carsten,

I guess you have a point there, though I haven’t seen something like this before:

If I open any other Document, Postopen is called after Initialize ends. If I try to open this one I get an error Immediately after The end of Initialize, I don’t even see that PostOpen is called.

How can that happen and how do I solve that Problem?

(BTW: by now I have tried to copy the douemnt Item by Item using LotusScript - All Items are copied without any Problem - resulting in another Documnt I Can’t open.)

Peter

Subject: RE: Restore corrupt document - “Note Item Not Found”

OK - Then check out, if the Postopen-event tries to access a NotesItem - if it does so, you can put an If-Clause around it and ask:If doc.HastItem(“ItemName”) Then

stringOut = doc.GetItemValue(“ItemName”)

End If

Subject: RE: Restore corrupt document - “Note Item Not Found”

Hi Carsten,

I guess I didn’t make myself clear: Execution doesn’t reach PostOpen at all!

1.:Execution-Pointer (the yellow Arrow) stands at “End Sub” of Initialize (wich is empty)

2.: [F8] and BANG “Note Item Not Found”

I don’t understand how this can possibly happen. And if it was just this one Document it wouldn’t be such a problem. Sure, my Users wouldn’t like it, but what the hell, they can recreate the document.

BUT: What can happen once can (will?) happen again, and if I neither know where the problem arises nor how to solve it…

Do you have any more suggestions?

Anyway,

thanks a lot,

Peter