Debug Lotus Notes documents using extracted data

When
Related resources from SearchDomino.com:
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 SearchDomino.com 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.

This was first published in August 2008

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.