RevisionID: 4230 for revision set 1460 fails when upgrading from 3.0 to 4.0

When upgrading from Blackbaud CRM version 3.0 to version 4.0, the following error may occur: 
Running revision ... RevisionID: 4230 for revision set 1460
Loading xml catalog item: 4230.CMS_SessionVariableBackup.Table.xml
The "RunServiceRevisions" task failed unexpectedly.
Blackbaud.AppFx.Platform.BuildTasks.RunServiceRevisionsHelpers.RevisionExecutionException: An error occurred while executing a service revision. Procedure Return Code: 0
Revision text: LoadSpec: 4230.CMS_SessionVariableBackup.Table.xml Blackbaud.AppFx.Galileo.ServiceRevisions.Specs1460.zip ---> Blackbaud.AppFx.Platform.BuildTasks.RunServiceRevisionsHelpers.LoadSpecException: Procedure Return Code: 0 ---> System.Exception: The ALTER TABLE statement conflicted with the CHECK constraint "CK_CMS_SESSIONVARIABLEBACKUP_TYPECODE". The conflict occurred in database "<databasename>", table "dbo.CMS_SESSIONVARIABLEBACKUP", column 'TYPECODE'. ---> System.Data.SqlClient.SqlException: A .NET Framework error occurred during execution of user defined routine or aggregate 'USP_LOADSPEC_AS_STRING': 
System.Data.SqlClient.SqlException: The ALTER TABLE statement conflicted with the CHECK constraint "CK_CMS_SESSIONVARIABLEBACKUP_TYPECODE". The conflict occurred in database "41565_EC_40", table "dbo.CMS_SESSIONVARIABLEBACKUP", column 'TYPECODE'.
Download and install the latest patch which contains all fixes from previous patches. If you are running an older version, download and install the latest version and then the patch. 

Environment

 Blackbaud CRM
 4.0
 4.0
 Service Pack 9

Was this article helpful?