狀況
請考慮下列情況:
-
您有 Microsoft SQL Server 2012年或安裝的 SQL Server 2014年主資料服務 」 (MDS)。
-
您建立具有 100 成員實體的並具有核取 「自動建立程式碼值"] 選項。
-
[MDS 總管] 中,實體會有兩頁有成員數目的成員在第 2 頁等於格線頁面大小 (預設值為 50)。
案例 1:
按一下 [新增成員] 按鈕,在第 1 頁中,輸入所需的資料,以新增新的成員,然後按一下 [下一頁] 按鈕。建立第 3 頁,您收到下列錯誤︰System.ArgumentOutOfRangeException: [ArgumentOutOfRange_Index]http://go.microsoft.com/fwlink/?linkid=106663&Version=5.1.20913.00&File=mscorlib.dll&Key=ArgumentOutOfRange_Index 參數名稱︰ 索引 在 System.ThrowHelper.ThrowArgumentOutOfRangeException() 在 System.Collections.Generic.List'1.get_Item (Int32 索引) 在 System.Collections.ObjectModel.Collection'1.get_Item (Int32 索引) 在 Microsoft.MasterDataServices.Client.ViewModel.Common.SortablePagedCollectionView'1.GetEnumerator() 在 System.Windows.Controls.DataForm.get_ItemsCount() 在 System.Windows.Controls.DataForm.SetCanMoveToLastItem() 在 System.Windows.Controls.DataForm.SetAllCanProperties() 在 System.Windows.Controls.DataForm.SetIsItemValid() 在 System.Windows.Controls.DataForm.GenerateUI (布林 clearEntityErrors,則為 True 的 swapOldAndNew) 在 System.Windows.Controls.DataForm.OnCurrentItemPropertyChanged (DependencyObject d、 DependencyPropertyChangedEventArgs e) 在 System.Windows.DependencyObject.RaisePropertyChangeNotifications (DependencyProperty dp 物件 oldValue、 物件 newValue) 在 System.Windows.DependencyObject.UpdateEffectiveValue (DependencyProperty 屬性,EffectiveValueEntry oldEntry EffectiveValueEntry 和 newEntry,ValueOperation 作業) 在 System.Windows.DependencyObject.SetValueInternal (DependencyProperty dp,物件值,則為 True 的 allowReadOnlySet、 布林 isBindingInStyleSetter) 在 System.Windows.Controls.DataForm.UpdateCurrentItem() 在 System.Windows.Controls.DataForm。 < SetUpCollectionView > b__8 (資料表單執行個體,物件來源,EventArgs eventArgs) 在 System.Windows.Controls.WeakEventListener'3.OnEvent (TSource 的來源,TEventArgs eventArgs) 在 System.EventHandler.Invoke (物件寄件者,EventArgs e) 在 Microsoft.MasterDataServices.Client.ViewModel.Common.SortablePagedCollectionView'1.OnCurrentChanged() 在 Microsoft.MasterDataServices.Client.ViewModel.Common.SortablePagedCollectionView'1.MoveCurrentToPosition (Int32 位置) 在 Microsoft.MasterDataServices.Client.ViewModel.Common.SortablePagedCollectionView'1.MoveCurrentTo (在 [物件項目中) 在 Microsoft.MasterDataServices.Client.ViewModel.MasterData.EntityMembersViewModel.set_SelectedItem (成員值) 在 Microsoft.MasterDataServices.Client.ViewModel.Common.ItemsBase'2.ReloadItems() 在 Microsoft.MasterDataServices.Client.ViewModel.MasterData.EntityMembersViewModel.EntityMembers_RefreshNeeded (物件寄件者,EventArgs e) 在 Microsoft.MasterDataServices.Client.ViewModel.Common.SortablePagedCollectionView'1.Refresh() 在 Microsoft.MasterDataServices.Client.ViewModel.Common.SortablePagedCollectionView'1.MoveToPage (Int32 您) 在 Microsoft.MasterDataServices.Client.ViewModel.Common.SortablePagedCollectionView'1.MoveToNextPage() 在 System.Windows.Controls.DataPager.PageMoveHandler (Int32 oldPageIndex、 Int32 newPageIndex、 PageMoveOperationDelegate pageMoveOperation) 在 System.Windows.Controls.DataPager.OnNextPageButtonBaseClick (物件寄件者,RoutedEventArgs e) 在 System.Windows.Controls.Primitives.ButtonBase.OnClick() 在 System.Windows.Controls.Button.OnClick() 在 System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp (MouseButtonEventArgs e) 在 System.Windows.Controls.Control.OnMouseLeftButtonUp (控制 ctrl 鍵,EventArgs e) MS。Internal.JoltHelper.FireEvent (IntPtr unmanagedObj、 IntPtr unmanagedObjArgs、 Int32 argsTypeIndex、 Int32 actualArgsTypeIndex、 字串 eventName、 UInt32 旗標)
引數︰ 偵錯資源字串都無法使用。通常索引鍵和引數提供足夠的資訊來診斷問題。請參閱案例 2:
按一下第 2 頁,若要強制加入新頁面的檔案總管中的 [新增成員] 按鈕。第 3 頁則會建立並您收到下列錯誤︰System.ArgumentOutOfRangeException: [ArgumentOutOfRange_Index]http://go.microsoft.com/fwlink/?linkid=106663&Version=5.1.20913.00&File=mscorlib.dll&Key=ArgumentOutOfRange_Index 參數名稱︰ 索引 在 System.ThrowHelper.ThrowArgumentOutOfRangeException() 在 System.Collections.Generic.List'1.get_Item (Int32 索引) 在 System.Collections.ObjectModel.Collection'1.get_Item (Int32 索引) 在 Microsoft.MasterDataServices.Client.ViewModel.Common.SortablePagedCollectionView'1.GetEnumerator() 在 System.Windows.Controls.DataForm.get_ItemsCount() 在 System.Windows.Controls.DataForm.SetCanMoveToLastItem() 在 System.Windows.Controls.DataForm.SetAllCanProperties() 在 System.Windows.Controls.DataForm。 < SetUpCollectionView > b__a (資料表單執行個體、 物件來源,NotifyCollectionChangedEventArgs eventArgs) 在 System.Windows.Controls.WeakEventListener'3.OnEvent (TSource 的來源,TEventArgs eventArgs) 在 System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke (物件寄件者,NotifyCollectionChangedEventArgs e) 在 Microsoft.MasterDataServices.Client.ViewModel.Common.SortablePagedCollectionView'1.CollectionChangedHandler (物件寄件者,NotifyCollectionChangedEventArgs e) 在 System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke (物件寄件者,NotifyCollectionChangedEventArgs e) 在 System.Collections.ObjectModel.ObservableCollection'1.OnCollectionChanged (NotifyCollectionChangedEventArgs e) 在 System.Collections.ObjectModel.ObservableCollection'1.InsertItem ([T 項目中的 [Int32 索引) 在 System.Collections.ObjectModel.Collection'1.Insert ([T 項目中的 [Int32 索引) 在 Microsoft.MasterDataServices.Client.ViewModel.MasterData.EntityMembersViewModel.AddNewMemberToCollection (Guid requestId,EntityMembersGetResponse 回應,ex 的例外狀況) 在 Microsoft.MasterDataServices.Client.ViewModel.ServiceProxy.ServiceClient。 <> c__DisplayClass16'2。 < ExecuteRequest > b__15 (物件寄件者,RequestCompletedEventArgs'1 e) 在 Microsoft.MasterDataServices.Client.ViewModel.ServiceProxy.ServiceClient.OnEntityMembersGetCompleted (物件狀態)
引數︰ 偵錯資源字串都無法使用。通常索引鍵和引數提供足夠的資訊來診斷問題。請參閱解決方案
下列的累積更新 SQL Server 的第一次修正問題。
SQL Server 2014年累積更新 1/en-us/help/2931693
SQL Server 2012 sp1 的累積更新 9/en-us/help/2931078
SQL Server 的每個新的累積更新包含的所有修補程序與安全性修正,全都包含在先前的累積更新。检验 SQL Server 的最新的累積更新︰
更多的資訊
安裝完成後,您必須開啟主版資料服務組態管理員,以便您可以升級 MDS 資料庫。
-
按一下 [資料庫],然後按一下 [選取資料庫。
-
連線到您想要升級的資料庫。選取資料庫時,您會收到下列訊息︰此資料庫需要升級。您無法變更系統設定,直到在資料庫升級。
-
按一下 [升級資料庫。升級資料庫精靈 」隨即開啟。遵循升級資料庫,然後按一下 [完成精靈中的指示。
狀態
Microsoft 已確認這是<套用>一節所列出的 Microsoft 產品的問題。