分散Sitecore 環境を構成する際にSwitchMasterToWeb.configファイルを有効にすると、いくつかの問題が発生する可能性があります。
Exception: System.InvalidOperationException Message: Could not find configuration node: contentSearch/indexConfigurations/indexUpdateStrategies/syncMaster Source: Sitecore.Kernel at Sitecore.Diagnostics.Assert.IsTrue(Boolean condition, String message) at Sitecore.Configuration.Factory.GetConfigNode(String xpath, Boolean assert) ... at Sitecore.ContentSearch.ContentSearchManager.get_SearchConfiguration() at Sitecore.ContentSearch.ContentSearchManager.GetIndex(String name) at Sitecore.ListManagement.ContentSearch.Pipelines.GetAllLists.GetAllContactLists..ctor()
ERROR [Experience Analytics]: System.InvalidCastException: Invalid cast from 'System.String' to 'Sitecore.Analytics.Reporting.Filters.IDataSourceFilterFactory'. at System.Convert.DefaultToType(IConvertible value, Type targetType, IFormatProvider provider) at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider) ... at Sitecore.Configuration.Factory.CreateObject[T](XmlNode configNode) at Sitecore.ExperienceAnalytics.Api.ReportingService.RunQuery(ReportQuery reportQuery) at Sitecore.ExperienceAnalytics.Api.Http.AnalyticsDataController.Get(ReportQuery reportQuery)
Exception: System.InvalidOperationException Message: Post condition failed Source: Sitecore.Kernel at Sitecore.Diagnostics.Assert.ResultNotNull[T](T result, String message) at Sitecore.Web.UI.HtmlControls.Data.DataViewFactory.GetDataViewByName(String name) at Sitecore.Web.UI.HtmlControls.Data.DataViewFactory.GetDataView(String name, String parameters) ... at Sitecore.Shell.Applications.ContentManager.ContentEditorForm.OnLoad(EventArgs e)
この問題は、SwitchMasterToWeb.configの後に、/App_Config/Includeフォルダに格納されている一部のファイルを適用することで発生し、SwitchMasterToWeb.configファイルで実施した設定変更が元に戻る可能性があります。
Sitecoreがインクルード設定ファイルをどのように使用するかに関する情報については、以下のドキュメントを参照してください:
Include File Patching Facilities - SDN (sitecore.com)(インクルード ファイルのパッチング機能)
設定変更リストにてSwitchMasterToWeb.configファイルが最新版として適用されているかを確認します。
例えば、以下の手順に従って実施してください: