Those pesky 'Preserving/Deleting template record with size…' messages are fixed! |
I've seen a lot of blogs and community forums talking about the 'Preserving template record with size...' and 'Deleting template record with size' messages that are recorded in the SharePoint ULS logs.
They look a little like this:
04/30/2009 12:00:00.00 OWSTIMER.EXE (0x01C4) 0x0B61 Windows SharePoint Services General 0 Medium Preserving template record with size 6351, use count 9, key ct-1033-0x012002
I myself have seen this numerous times at customers and in my own dev VMs and have been waiting a while to blog about this fix. Often these messages fill the ULS logs and cause disk space issues as well as performance issues. A lot of people believe that these are caused by low memory issues and are errors that need troubleshooting.
Well it is in fact true that these messages are logged sometimes due to low memory conditions. However, these messages are just informational and are written to the logs as part of a cleanup routine. The issue of these messages filling the logs is really as simple as the default logging level for these messages being too high.
The good news is that this is fixed in the April Cumulative update for WSS 3.0. Basically these messages are no longer logged when the General category is set to its defaults of ERROR for the Event log and MEDIUM for the trace log.
Once the KB's are live for the April CU's, you will be able to get the WSS 3.0 update from here: http://support.microsoft.com/hotfix/KBHotfix.aspx?kbnum=968850&kbln=en-us and further information from here http://support.microsoft.com/kb/968850.
Note: This is the post SP2 update that so happened to ship at around the same time as SP2 - this fix is not part of SP2. It is recommended that you install SP2 first. Joerg Sinemus has discussed this here: http://blogs.msdn.com/joerg_sinemus/archive/2009/05/01/should-i-install-sp2-and-or-april-cu.aspx.
The fix for this issue is described as follows in one of the KB articles linked from the description page:
When you set the least critical event to report in the Event log to ERROR, and you set the least critical event to report to the trace log to MEDIUM, the following messages are logged in the Unified Logging Service (ULS) logs:
Preserving template record with size… Deleting template record with size…However, you only expect these ULS messages to appear if the logging level for General is set to Verbose.
Do you get the error: "The expected version of the product was not found on the system" when installing a SharePoint Update?
Issue Details
Consider this scenario: You try to install a cumulative update [CU] for SharePoint 2007 or WSS 3.0. During the beginning of the installation of the update, you may get this error:
"The expected version of the product was not found on the system"
For example:
You installed MOSS 2007 SP1 with Italian Language Pack with Language Pack SP1. You install SP2 for MOSS; but you forget to install the SP2 for the Italian Language Pack. Then if you try to install April 2009 CU, then you will get the above given error message.
What is the cause?
This issue normally occurs:
- if you have language pack(s) installed for WSS / MOSS AND
- The language pack(s) do not have correct Service pack applied to themHow to resolve this error?
Option 1: Install the correct Service Pack for the language pack; then install the CU.
Option 2: Install the CU; then install the Service Pack for WSS/MOSS; after that install Service Pack for the Language Pack.
For example:
In the case of April 2009 CU, install the CU to the farm [Assumption here is the SharePoint farm is already installed with SP1+Language Pack SP1+some cumulative updates] first.
Then install Service Pack 2 for WSS/MOSS; after that install Service Pack 2 for the Language Pack(s).
References
Here are the links to download the language pack [Note: You should select the correct language and then click "Change" button in the relevant Download pages of the Language Packs Service Packs to get the preferred Language Pack]:
WSS 3.0 Language Pack SP1 - x32
WSS 3.0 Language Pack SP1 - x64
WSS 3.0 Language Pack SP2 - x32
WSS 3.0 Language Pack SP2 - x64
The 2007 Microsoft Office Servers Language Pack SP1 - x32
The 2007 Microsoft Office Servers Language Pack SP1 - x64
The 2007 Microsoft Office Servers Language Pack SP1 - x32
The 2007 Microsoft Office Servers Language Pack SP1 - x64