Mail profile document problem

Suddenly I’m getting this very strange message whe attempting to open a mail document:Notes error: File does not exist (Calendar Profile). A return gets

Variant does not contain an object. It then opens. This is on the server replica of the mail file.

I attempted to delete the mail profile document and it does not appear it is doine anything.

  1. Is there a way to view the profile document (from a view) or a way to ensure it’s been deleted?

  2. Any idea what could be causing this?

Subject: Mail profile document problem

To see profiledocuments you could use NotesPeek. Or get them yourself with this code:

Dim targetdb As New NotesDatabase(“”, “”)

Dim nc As NotesNoteCollection

Dim nid As String

Dim doc As NotesDocument

Dim profilename As String

Set targetdb = [your db]

If targetdb Is Nothing Then

msg = "Cannot open db"

Msgbox msg

Else

Set nc = targetdb.CreateNoteCollection(False)

nc.SelectProfiles = True

nc.BuildCollection

nid = nc.GetFirstNoteId

While nid <> ""

	Set doc = targetdb.GetDocumentByID(nid)

	If Not doc Is Nothing Then

		profilename = doc.GetItemValue("$Name")(0)

’ here you could show all other properties of the document

	End If

	nid = nc.GetNextNoteId(nid)

Wend

End If