Monday, January 24, 2011

Resolving Lotus Notes Error: Attachment found on more than one document

Now-a-days IBM Lotus Notes is becoming a very vital e-mail application that provides you to perform all the mail operations, such as  e-mailing, calendaring, scheduling, programming etc as also present in other e-mail applications like MS Outlook, Outlook Express etc. Lotus Notes Domino server generally employs POP3 & SMTP protocols. Like PST is for MS Outlook, DBX is for Outlook Express, IBM Lotus Notes consists of NSF file as its data file which enables you to access Lotus Notes database, even in offline mode. Many times while working with IBM Lotus Notes you can encounter various error messages which dont allow you access many features of Lotus Notes database like sending/recieving e-mails, not allowing you to open the database etc.

Corrupt Lotus Notes database is the main reason for the occurrence of such errors. Along with database corruption, internal settings also play a major role in the generation of such error messages. In such situations, Lotus Notes users can use different tools such as  Fixup, Compact, update and NT Check Disk utilities for their removal. However these utilities may create some exceptions which might result in obtaining improper results. Therefore in order to get proper results, Lotus Notes users can make use of a suitable Lotus Notes Recovery software that can Recover Lotus Notes database with great proficiency.

To illustrate the above problem consider the following example: Suppose you are trying to copy a rich-text field that contains more than one attachment from one document to another Lotus Notes document, you encounter a below mentioned erro message:

"Error: Attachment found on more than one document."

The error message clearly indicates that you cant copy a rich-text field due to the presence of attachment on more than one document & hence cannot be copied to another document.

Cause:

This error occurs when a RTItem containing an attachment is copied via copyitem. Moreover corrupt NSF file is also responsible for the occurrence of this error.

Solution:
In order to solve this error message, you can follow below mentioned steps:

Method 1:

(1) First create a new “NotesRichTextItem”.

(2) After doing this, then use AppendRTItem method on “NotesRichTextItem”.

(3) AppendRTItem Method is given as follows:

Dim docA As NotesDocument
Dim docB As NotesDocument
Dim rtitemA As Variant
Dim rtitemB As Variant
'...set values of docA and docB...
Set rtitemA = docA.GetFirstItem( "Body" )
Set rtitemB = docB.GetFirstItem( "Body" )
If ( rtitemA.Type = RICHTEXT And _
rtitemB.Type = RICHTEXT ) Then
Call rtitemA.AppendRTItem( rtitemB )
Call rtitemB.Remove
Call docA.Save( False, True )
Call docB.Save( False, True )
End If


(4) After completing AppendRTItem method, you can easily copy a rich-text field that contains more than one attachment from one document to another Lotus Notes document.

However if the above method doesn't solve your problem, then perform Lotus Notes Repair with the help of a suitable third party Lotus Notes Recovery tool. Many tools are available in the market that are specifically designed to repair & restore corrupt Lotus Notes database. Stellar Phoenix Lotus Notes Recovery v2.0 is one such software.

Stellar Phoenix Lotus Notes Recovery v2.0 tool is a powerful tool to Repair NSF File & hence removes the corruption of Lotus Notes database. This Lotus Notes Recovery software supports IBM Lotus Notes 6.x and 7.x and provides you with an option to restore data in a new NSF file that is saved on any disk and can be detected by a host operating system. In addition to this, it also creates a log report of every recovery operation & saves it as a Text Editor (.txt) file. It also comes with a Live Update feature which helps in installing recent software updates.