For almost a year now, I’ve been using the 8.5 Notes Mail Template, which i thoroughly enjoy. Having said that, something went wrong from upgrading it from the 7 template to 8.5.
Every time I open my mail, i would get a “Type Mismatch on External Name: GETQUOTA”. This same error would occur when I try to delete Calendar Entries (Type Mismatch on External Name: CSEVENTNOTES). While this was frustrating, it was never considered a showstopper, so I learned to live with it.
Having said that, it’s been almost a year, and enough is enough. So, to resolve the issue, i tried the following:
1. Manual Design Replace of the Mail Template (didn’t work)
2. Upgrade Folder Design (didn’t work – According to online searches this is what sometimes caused the error to occur)
3. I deleted every design element in my Mail Database, and then did a design replace. (didn’t work. This is when I started considering database corruption).
4. Copy Style compact of Mail Database (No surprises….didn’t work)
5. Deleted Bookmarks.nsf and Desktop.dsk (didn’t work, and now I had to setup my workspace again)
Sadly, I was getting poor results from Google. THEN, a thought occurred to me. Whenever I develop and deploy applications to my clients, I always make a point of performing 2 operations:
1. Signing the Application I’m deploying.
2. Re-compiling the application design to ensure that all LSS Files and Code Dependencies are rendered properly.
In my head, Step 2 (Re-Compiling the Design) seemed like a worthy try. Low and behold, IT WORKED first time!!!
So, my fellow coders, when you are faced with Errors that just seem out of your control, which suggest possible corruption, always try a Re-Compile before throwing in the Towel.For those who are curious how a Re-Compile works, do the following:
1. Open your Application in the Domino Designer.
2. In the Top Menu, click on ToolsRecompile All LotusScript
This will take about 30 seconds to run. What this does is: loop through every design element in the database, and wherever there is LotusScript referenced, it re-compiles the code to ensure that there are no errors in the code, and that nesting elements are referenced correctly. This is a very powerful tool, and I recommend using it as a standard when deploying new Applications or updates to existing applications.
I hope this helps you in future.