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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone 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

You’ve got a lotus Domino web server, and you have been told that “leverage browser caching” is a must do. This means that we have to tell the browser everywhere in the web to use cache. In other words, we set (and send) an expiration date in the HT…
  In today’s Arena we can’t imagine our lives without Internet as we are highly used to of it. If we consider our life style just for only 2 min we found that face to face communication is swapped by e-communication.  Every Where from Works place to…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Suggested Courses

752 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