Upgrades Questions on upgrading to version 6.x.
Version 6.x > Upgrades > Error during importing 5.5R2 backup files after upgraded to 6.0 View modes: 
User avatar
Member
Member
vinci - 2/1/2012 3:52:16 AM
   
Error during importing 5.5R2 backup files after upgraded to 6.0
Hi,

After upgraded system from version 5.x to version 6.0, I would like to import all my previous files and folder back into system which i back up early. But it seems like got problem during import process. How to solve this problem ? Please help.

The error messages shown during import process. Greatly appreciate and thanks in advance.


ERROR: Error importing 'Form controls' objects (CheckboxTnC)
Message: [DataConnection.ExecuteQuery]: Query: INSERT INTO CMS_FormUserControl ([UserControlDisplayName], [UserControlCodeName], [UserControlFileName], [UserControlForText], [UserControlForLongText], [UserControlForInteger], [UserControlForDecimal], [UserControlForDateTime], [UserControlForBoolean], [UserControlForFile], [UserControlShowInBizForms], [UserControlDefaultDataType], [UserControlDefaultDataTypeSize], [UserControlShowInDocumentTypes], [UserControlShowInSystemTables], [UserControlShowInWebParts], [UserControlShowInReports], [UserControlGUID], [UserControlLastModified], [UserControlForGuid], [UserControlShowInCustomTables], [UserControlForVisibility], [UserControlParameters], [UserControlForDocAttachments], [UserControlForLongInteger], [UserControlResourceID], [UserControlType] ) VALUES ( @UserControlDisplayName, @UserControlCodeName, @UserControlFileName, @UserControlForText, @UserControlForLongText, @UserControlForInteger, @UserControlForDecimal, @UserControlForDateTime, @UserControlForBoolean, @UserControlForFile, @UserControlShowInBizForms, @UserControlDefaultDataType, @UserControlDefaultDataTypeSize, @UserControlShowInDocumentTypes, @UserControlShowInSystemTables, @UserControlShowInWebParts, @UserControlShowInReports, @UserControlGUID, @UserControlLastModified, @UserControlForGuid, @UserControlShowInCustomTables, @UserControlForVisibility, @UserControlParameters, @UserControlForDocAttachments, @UserControlForLongInteger, @UserControlResourceID, @UserControlType); SELECT SCOPE_IDENTITY() AS [UserControlID]: caused exception: Cannot insert the value NULL into column 'UserControlForGuid', table 'KenticoCMS5.5R2to6.0.dbo.CMS_FormUserControl'; column does not allow nulls. INSERT fails.
The statement has been terminated. Stack Trace: at CMS.DataProviderSQL.DataConnection.ExecuteScalar(String queryText, QueryDataParameters queryParams, QueryTypeEnum queryType, Boolean requiresTransaction)
at CMS.DataEngine.GeneralConnection.ExecuteScalar(QueryParameters query)
at CMS.DataEngine.GeneralConnection.ExecuteScalar(String queryName, QueryDataParameters parameters, String where, String orderBy, Int32 topN, String columns)
at CMS.DataEngine.GeneralConnection.ExecuteScalar(String queryName, QueryDataParameters parameters)
at CMS.DataEngine.SimpleDataClass.Insert(Boolean getId)
at CMS.DataEngine.SimpleDataClass.Insert()
at CMS.DataEngine.AbstractInfo`1.InsertData()
at CMS.Synchronization.SynchronizedInfo`1.InsertData()
at CMS.SiteProvider.FormUserControlInfoProvider.SetFormUserControlInfoInternal(FormUserControlInfo infoObj)
at CMS.SiteProvider.FormUserControlInfo.SetObject()
at CMS.CMSImportExport.ImportProvider.SetObject(SiteImportSettings settings, GeneralizedInfo infoObj, GeneralizedInfo parentInfo, List`1 affectedObjects)
at CMS.CMSImportExport.ImportProvider.UpdateObject(SiteImportSettings settings, GeneralizedInfo infoObj, Boolean siteObject, DataSet ds, TranslationHelper th, Boolean updateChild, Int32 targetSiteId, ProcessObjectEnum process, Dictionary`2 importedParentIDs, List`1 postProcessList, List`1 affectedObjects, BaseInfo parentObject)
at CMS.CMSImportExport.ImportProvider.ImportObjects(SiteImportSettings settings, DataSet ds, String objectType, Boolean siteObjects, TranslationHelper th, Boolean importChild, ProcessObjectEnum processType, Dictionary`2 importedParentIDs) at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning()
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlDataReader.ConsumeMetaData()
at System.Data.SqlClient.SqlDataReader.get_MetaData()
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
at System.Data.SqlClient.SqlCommand.ExecuteScalar()
at CMS.DataProviderSQL.DataConnection.ExecuteScalar(String queryText, QueryDataParameters queryParams, QueryTypeEnum queryType, Boolean requiresTransaction)



User avatar
Kentico Support
Kentico Support
kentico_jurajo - 2/19/2012 1:36:03 AM
   
RE:Error during importing 5.5R2 backup files after upgraded to 6.0
Hi,

This approach is not a recommended way of upgrade. Importing older version package you will also import old objects like web parts, document types, page templates and set them back to the old version state so, you may lose some new features or, introduce old, fixed bugs back again.

Anyway, are you using any custom form controls? Are they registered in the CMS as described in the documentation?

Also, what is the exact version of the CMS you are importing to? Have you applied the latest hotfix? Regrettably, there was a bug in the import. Please try it and let us know so we can exclude already fixed bugs.

Thank you.

Best regards,
Juraj Ondrus