0

sa loggin を使用してローカルで実行されている Kentico によって作成されたファイルから、ホスティング スペース ログインを使用してホストされたサイトで実行されている Kentico のインスタンスへのインポートに問題があります。

エクスポート ファイルをインポートしようとすると、次のエラーが発生します。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 のインストールによって作成されたものではないと考えています。これは、ログインを使用してログインしたためです)。

回避策の 1 つは、エクスポート機能の使用を停止し、データベースのみを復元することですが、エクスポート機能は便利です。可能であれば、それを機能させたいと考えています

4

3 に答える 3

2

Site Manager -> Settings -> System で DB オブジェクト スキーマとして設定されている値は何ですか? この設定は DB スキーマと一致する必要があり、すべてのオブジェクトが同じである必要があります。テーブルとビューのスキーマを統一して、同じ名前にすることをお勧めします。

于 2013-05-08T14:27:12.993 に答える
0

両方のマシンに同じインストールをしていますか? この問題は、オリジン マシンのようにすべてのモジュールをインストールしていない場合に発生します (それらを使用していない場合でも)。インポートを構成するときに、システム テーブルのすべての ecommerce オブジェクトを除外するようにしてください。

于 2013-05-13T06:21:03.003 に答える