Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


Exporting Lotus Notes Databases for Archive Purposes

Posted on 2013-05-24
Medium Priority
Last Modified: 2013-12-18
Currently I am responsible for 55 Lotus Notes databases.  These databases have not been active for some years now.  Because the databases contain valid project data.  The databases data must be retained for an extended period of time.

At the beginning of last year my company decided to stop using Lotus Notes and switch over to Google.  The current initiative is getting the Lotus Notes / Domino servers out of business.  

So I been assigned the task of finding a way to retain the database data, without it being within Lotus Notes.  They want to export the databases to a platform like Excel or PDF.  That way they can just import the Excel/PDF file in to their data retention application.

The main requirement is that he exported file must pertain all the essential data from databases.

About The Databases:
The databases are built basically from the same design template.  
The field names should be the same on each of them.

The base form contains:
1. Text Fields
2. Dialog List
3. Radio Buttons
4. Rich Text Fields - used for Attachments
5. Table
6. 2 subforms

My idea of what I need a lotus script to do.
1. From Actions -> Start Export
2. Create a excel object to write to - Ask for desired name "something.xls"
3. Create a folder baseFolder = C:\Export
4. Create a folder attachFolder = C:\Export\Attachments
5. Open the first document
6. Parse through all the fields, checking field types
if (field type != rich text) {
        excel column name = field name
	excel cell value = field value
    else {
        excel column name = field name
	excel cell value = get AttachmentNames as text
	create a copy of physical attachment(s)
	export the copy of attachment(s) to the attachFolder

Open in new window

7. Go to the next document and build again
8. Or you could only get the Attachment names during the field type check loop.
    Then parse the document again just looking for Rich Text and export the attachments   then

When Agent Finishes:
You would have a .xls file in the export dir.  The columns for the Rich Text fields, would only contain the text names for the attachments. No physical attachments.
All the actual attachments from the the database would be in the export\attachments folder under the export folder.

Attempts Made:
1.  Created a agent that would export all the values from a view to excel
      a.  You can not display all the types of field values in a view.  So much of the document data was still missing from the Excel Sheet.
      b.  Was not taking in consideration of values and the physical attachments in the Rich Text Fields.

2.  An agent that exports attachments from the documents
     a.  Removes the attachments from the database.  May still need to leave the nsf file intact.  Don't want to change anything in database.
     b.  No Excel export.  

3.  An agent that would export to Word - Never got that one working too many script errors.

4.  Downloaded Export View To Excel by Ken Pespisa.
     Still only views and still no Rich Text

I am not 100% sure that Exporting to Excel is the right way to approach this issue.  But I am not seeing to many other options.  We can not have any instance of Notes / Domino in house.  That is the reason I can not just simply create a VM with domino and copy all the nsf files there.

I am open for any ideas you may have.  I need to get these databases migrated soon.
Question by:jkteater
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
LVL 14

Expert Comment

ID: 39195571
We can not have any instance of Notes / Domino in house. That is the reason I can not just simply create a VM with domino and copy all the nsf files there.

Why not? That is the best solution, it's free, and it does not violate the licensing for N/D.
LVL 14

Accepted Solution

ThomasMcA2 earned 2000 total points
ID: 39195852
Here's an option. The attached database has an agent and script libraries that extract Notes documents and their attachments into a local C:\NotesExtraction folder. The agent "prints" the document content to an RTF file, and the attachments are extracted. The agent and script libraries will have to be customized to loop through your 55 databases. The extraction database was downloaded from http://www.nsftools.com. I couldn't find a recent version of the database on that site, so it may no longer be supported.

NOTE: this website has a silly rule that only allows specific file types (extensions) within zip files, and that does not include .nsf files. So I had to rename the file within the zip to .doc. You'll have to extract the file to your computer, then rename the .doc file back to .nsf.

Author Comment

ID: 39211064
Sorry about the Delay - Had to write a couple of enhancements for a different project.

I like this approach.  I think it will work for me.  

My question is formatting the RTF file.  Any chance that you may know how to cut down on space between elements.

Form Layout
This is the RTF format

RTF Layout
Looks like I need to adjust the space between  "Requester:"  and "ECRRequester"
Or just the spacing for all items.  

Any Idea that that variable would need set in the script to make that adjustment?

Author Comment

ID: 39211409
It is diffidently adding the values in a table format.  I can go in to word and a borders around the values.


Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For beginners of Lotus Notes user this is important to know about the types of files and their location supported by IBM Notes. Mostly users are unaware about how many file types are created and what their usages are. This Article is fully dedicated…
Lack of Storage capacity is a common problem that exists in every field of life. Here we are taking the case of Lotus Notes Emails, as we all know that we are totally depend on e-communication i.e. Emails. This article is fully dedicated to resolvin…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question