After you install a hotfix or update for SharePoint, you have to run the SharePoint Configuration Wizard. Sometimes it is aborting with an error. You will get a link to a log file. This is something like “PSCDiagnostics_10_17_2008_16_53_57_799_923424762.log”.
In my case I got a timeout error:
———————————————————-
10/17/2008 16:55:59 1 ERR Fehler beim Initialisieren des Updates der SharePoint-Produkte und -Technologien.
Eine Ausnahme vom Typ ‘System.ServiceProcess.TimeoutException’ wurde ausgelöst. Weitere Ausnahmeinformationen: Der Vorgang wurde nicht abgeschlossen, da der Timeout abgelaufen ist.
System.ServiceProcess.TimeoutException: Der Vorgang wurde nicht abgeschlossen, da der Timeout abgelaufen ist.
bei System.ServiceProcess.ServiceController.WaitForStatus(ServiceControllerStatus desiredStatus, TimeSpan timeout)
bei Microsoft.SharePoint.PostSetupConfiguration.ServiceHelper.Stop(String serviceName)
bei Microsoft.SharePoint.PostSetupConfiguration.InitializeTask.StopServicesListedInRegistry(RegistryHelper registry)
bei Microsoft.SharePoint.PostSetupConfiguration.InitializeTask.StopAllServices()
bei Microsoft.SharePoint.PostSetupConfiguration.InitializeTask.PrepareForUpgrade()
bei Microsoft.SharePoint.PostSetupConfiguration.InitializeTask.Run()
bei Microsoft.SharePoint.PostSetupConfiguration.TaskThread.ExecuteTask()
As you might already know, you can create new fields with SPFieldCollection.AddFieldAsXml(string schema). The schema contains the formula for the calculated field. There are some points to take care of, before you can add the field:
- make sure your referenced fieldnames are the display names and not the internal field names
- the formula has to be in the English format
Changing the fieldnames is an easy task. If you read the schema from a field and want to create a new one with the same formula, you will get something like “=if(fieldA,1,2)”.