Missing FormDescription on Public Folder Items

G

GA Kvarud

I have an add-in, that at start will read a number of rules stored as items
in a public folder, and later use these rules for handling email.

I have code for checking that the Public Folder is found, and I then go
through the items as follows:

Dim fldRules As Outlook.MAPIFolder
Dim itRule As Outlook.PostItem

'..... Gets the correct folder
For Each itRule In fldRules.Items
WriteLog itRule.FormDescription
If itRule.FormDescription = "GenerellRegel" Then
'....... Treats this kind of rules
ElseIf itRule.FormDescription = "SikkerhetsRegel" Then
'....... Treats this kind of rules
End If
Next

This add-in has now been deployed to several thousand users, and a problem
has occured. Most times it works perfectly, but some times, for some of the
users, the FormDescription returns blank, ie the WriteLog writes the correct
number of lines to the log, but they are all blank. I have tried to re-read
the rules at the time of sending of emails, but the result is the same: It
obviously finds the folder, and goes through the correct number of items,
but the FormDescription is not returned. When this occures, it seems like
restarting Outlook does not necessarily help, and that for a while it is
impossible to get the FormDescription from these items. At later tries it
again will work.

There are also other times that the log shows that the Public Folders cannot
be found. This could indicate a connection problem, but the customer has
never reported that they have had problems reaching their Public Folders
through the Outlook userinterface.

I have not tried to check if there are other fields that can be found in the
cases where FormDescription fails.

Is this a known problem, what can cause it, and how can it be fixed?

Geir-André Kvarud
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top