« Secretary Rice get your facts straight | Main| Building composite applications for Lotus Notes Domino R8 »

Upgrade to BlogSphere v3

QuickImage Tags: Lotus

Last night I decided to give the latest release of the v3 BlogSphere template from openntf.org a try.

I followed the recommended steps for an upgrade as found in the BlogSphere documentation wiki by first running the Admin/Healht agent, followed by the design updated and copying of the skins and template documents from the design template.
Opening the database triggered the conversion code as mentioned in the documentation, however after processing only a small number of blogentries it popped up an error message:

Notes Error: Note item not found (EntryRich)

This left me with a site which was missing most of it's contents.


The error was triggered in the following part of code found in the database's postopen even:

Select Case thisDoc.Form(0)
                Case "Story"
                        <---cut--->                        
                        If  thisDoc.StoryPostStyle(0) = "Rich Text" Then
                                thisDoc.EntryType = "Rich"
                                Set item = thisDoc.GetFirstItem("StoryRichText")
                                If item.Type = 1 Then
                                        Set RTItem = thisDoc.GetFirstItem("StoryRichText")
                                        Call RTItem.CopyItemToDocument( thisDoc, "EntryRich" )         ' <------- Triggers Note entry not found (EntryRich)




Of course I forgot to create a backup of the original site using the 2.5.7 design, so for now there are a few entries missing and it doesn't quite look the way I want it.

Most of the content I recovered by creating an agent that used the conversion code hidden in the database-postopen event, after adding some error handling that would move on to the next document when an error occurred.


Still overall I do like the new incarnation.