Manage Learn to apply best practices and optimize your operations.

Debug Lotus Notes documents using extracted data

When dealing with corrupt Lotus Notes documents, use this LotusScript agent to extract data into a text file to debug error messages.


Related resources from
Extracting attachments from a Lotus Notes rich-text field

Top 10 LotusScript tips

LotusScript Reference Center
two Lotus Notes documents don't work similarly, you might receive error messages. By using the LotusScript agent below, you can extract the following information from the documents and import it into a text file.

  • The DocumentUniqueID(UnID) and the NotesID, which is used with the Admin Client to search
  • Fieldname
  • Document size in bytes
  • Fieldtype
  • Fieldvalues such as Multivalue and Commaseparated

After extracting this information into a file, you can compare all items in the potentially corrupted Lotus Notes documents to accurately report errors.

Note: The file docitems.txt was created in C:TEMP.

LotusScript to extract attachments and debug
(Click on code for enlarged view and script download.)

Do you have comments on this tip? Let us know.

This tip was submitted to the tip library by member Thomas Balatka. Please let others know how useful it is via the rating scale below. Do you have a useful Lotus Notes, Domino, Workplace or WebSphere tip or code snippet to share? Submit it to our monthly tip contest and you could win a prize.

Dig Deeper on LotusScript

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.




  • iSeries tutorials's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...