2013-05-07 31 views
0

我從使用sa loggin在本地運行的Kentico創建的文件導入到使用託管空間在託管站點上運行的Kentico實例登錄。錯誤:在Kentico中導入'系統表'對象(電子商務 - SKU)時出錯

嘗試導入導出文件時發生以下錯誤。 Kentico版本在出口和導入位置是7.31。

> ERROR: Error importing 'System tables' objects (Ecommerce - SKU) 
Message: [ TableManager.UpdateDocumentViews() ] An error occurred. Original exception: [DataConnection.HandleError]: Query: 
CREATE UNIQUE CLUSTERED INDEX [IX_View_CMS_Tree_Joined_Regular_NodeSiteID_DocumentCulture_NodeID] ON [View_CMS_Tree_Joined_Regular] 
(
[NodeSiteID] ASC, 
[DocumentCulture] ASC, 
[NodeID] ASC 
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF) 

CREATE NONCLUSTERED INDEX [IX_View_CMS_Tree_Joined_Regular_ClassName_NodeSiteID_DocumentForeignKeyValue_DocumentCulture] ON [View_CMS_Tree_Joined_Regular] 
(
[ClassName] ASC, 
[NodeSiteID] ASC, 
[DocumentForeignKeyValue] ASC, 
[DocumentCulture] ASC 
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF) 
: caused exception: Index cannot be created on view 'View_CMS_Tree_Joined_Regular' because the underlying object 'CMS_Class' has a different owner. Stack Trace: at CMS.DataEngine.TableManager.RefreshDocumentViews() 
at CMS.DataEngine.TableManager.RefreshCustomViews(String tableName) 
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, Boolean postProcessing) 
at CMS.CMSImportExport.ImportProvider.ImportObjects(SiteImportSettings settings, DataSet ds, String objectType, Boolean siteObjects, TranslationHelper th, Boolean importChild, ProcessObjectEnum processType, Dictionary`2 importedParentIDs) 

ERROR: Error during import process 
Message: [ TableManager.UpdateDocumentViews() ] An error occurred. Original exception: [DataConnection.HandleError]: Query: 
CREATE UNIQUE CLUSTERED INDEX [IX_View_CMS_Tree_Joined_Regular_NodeSiteID_DocumentCulture_NodeID] ON [View_CMS_Tree_Joined_Regular] 
(
[NodeSiteID] ASC, 
[DocumentCulture] ASC, 
[NodeID] ASC 
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF) 

CREATE NONCLUSTERED INDEX [IX_View_CMS_Tree_Joined_Regular_ClassName_NodeSiteID_DocumentForeignKeyValue_DocumentCulture] ON [View_CMS_Tree_Joined_Regular] 
(
[ClassName] ASC, 
[NodeSiteID] ASC, 
[DocumentForeignKeyValue] ASC, 
[DocumentCulture] ASC 
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF) 
: caused exception: Index cannot be created on view 'View_CMS_Tree_Joined_Regular' because the underlying object 'CMS_Class' has a different owner. Stack Trace: at CMS.CMSImportExport.ImportProvider.ImportObjects(SiteImportSettings settings, DataSet ds, String objectType, Boolean siteObjects, TranslationHelper th, Boolean importChild, ProcessObjectEnum processType, Dictionary`2 importedParentIDs) 
at CMS.CMSImportExport.ImportProvider.ImportObjectType(SiteImportSettings settings, String objectType, Boolean siteObject, TranslationHelper th, ProcessObjectEnum process, Dictionary`2 importedParentIDs) 
at CMS.CMSImportExport.ImportProvider.ImportObjectsData(SiteImportSettings settings) 

我注意到網站上的一些表名有不同的所有者,一些dbo和一些在我的用戶登錄下。我期望這是因爲它是我在Kentico app.config中的用戶登錄。與Management Studio連接時,我使用相同的登錄名。

我認爲DBO的對象必須是由數據庫的恢復(我想他們不能一直由Kentico創建安裝,因爲這將在使用我的登錄信息已被記錄)

我想一個創建工作周圍會停止使用導出功能 - 並且只能恢復數據庫,但導出功能非常方便。我們想讓它工作,如果我們可以

回答

2

我設法改變的默認模式爲用戶名,以DBO解決這個問題,在SQL Server Management Studio中

2

在Site Manager - >設置 - >系統中設置爲DB對象模式的值是多少? 此設置應該與數據庫模式匹配,並且所有對象都應該使其相同。我會建議統一表和視圖模式以使其具有同一個名稱。

0

你有沒有在兩臺機器上相同的安裝?如果您沒有在原始機器上安裝所有模塊(即使您不使用它們),則會發生此問題。嘗試在配置導入時排除系統表的所有電子商務對象。

+0

是 - 相同的安裝。 – 2013-05-13 09:43:53