סימפטומים
בחן את התרחיש הבא:
- יש לך שירותי נתונים ראשיים (MDS) עבור Microsoft SQL Server 2012 או SQL Server 2014 מותקנים.
- אתה יוצר ישות שיש לה 100 חברים והאפשרות 'צור ערכי קוד באופן אוטומטי' מסומנת.
- בסייר MDS, לישות יש שני דפים של חברים כאשר מספר החברים בעמוד 2 שווה לגודל דף הרשת (ברירת המחדל היא 50).
תרחיש 1:
לחץ על כפתור הוסף חבר בעמוד 1, הזן את הנתונים הדרושים כדי להוסיף חבר חדש ולאחר מכן לחץ על כפתור הדף הבא . עמוד 3 נוצר ואתה מקבל את השגיאות הבאות:
הערה
System.ArgumentOutOfRangeException: [ArgumentOutOfRange_Index]
ארגומנטים:
איתור באגים במחרוזות משאבים אינו זמין. לעתים קרובות המפתח והארגומנטים מספקים מספיק מידע כדי לאבחן את הבעיה. ראה http://go.microsoft.com/fwlink/?linkid=106663&גירסה=5.1.20913.00&קובץ=mscorlib.dll&מפתח=ArgumentOutOfRange_Index
שם פרמטר: index
ב- System.ThrowHelper.ThrowArgumentOutOfRangeException()
ב- System.Collections.Generic.List'1.get_Item(אינדקס Int32)
ב- System.Collections.ObjectModel.Collection'1.get_Item(Int32 index)
at Microsoft.MasterDataServices.Client.ViewModel.Common.SortablePagedCollectionView'1.GetEnumerator()
ב- System.Windows.Controls.DataForm.get_ItemsCount()
at System.Windows.Controls.DataForm.SetCanMoveToLastItem()
ב- System.Windows.Controls.DataForm.SetAllCanProperties()
at System.Windows.Controls.DataForm.SetIsItemValid()
ב- System.Windows.Controls.DataForm.GenerateUI(בוליאני clearEntityErrors, Boolean swapOldAndNew)
at System.Windows.Controls.DataForm.OnCurrentItemPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
at System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyProperty dp, Object oldValue, Object newValue)
at System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)
at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet, Boolean isBindingInStyleSetter)
at System.Windows.Controls.DataForm.UpdateCurrentItem()
ב- System.Windows.Controls.DataForm.<SetUpCollectionView>b__8(מופע DataForm, מקור אובייקט, EventArgs eventArgs)
at System.Windows.Controls.WeakEventListener'3.OnEvent(TSource source, TEventArgs eventArgs)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at Microsoft.MasterDataServices.Client.ViewModel.Common.SortablePagedCollectionView'1.OnCurrentChanged()
at Microsoft.MasterDataServices.Client.ViewModel.Common.SortablePagedCollectionView'1.MoveCurrentToPosition(Int32 position)
at Microsoft.MasterDataServices.Client.ViewModel.Common.SortablePagedCollectionView'1.MoveCurrentTo(Object item)
ב- Microsoft.MasterDataServices.Client.ViewModel.MasterData.EntityMembersViewModel.set_SelectedItem(ערך חבר)
at Microsoft.MasterDataServices.Client.ViewModel.Common.ItemsBase'2.ReloadItems()
at Microsoft.MasterDataServices.Client.ViewModel.MasterData.EntityMembersViewModel.EntityMembers_RefreshNeeded(Object sender, EventArgs e)
at Microsoft.MasterDataServices.Client.ViewModel.Common.SortablePagedCollectionView'1.Refresh()
at Microsoft.MasterDataServices.Client.ViewModel.Common.SortablePagedCollectionView'1.MoveToPage(Int32 pageIndex)
at Microsoft.MasterDataServices.Client.ViewModel.Common.SortablePagedCollectionView'1.MoveToNextPage()
at System.Windows.Controls.DataPager.PageMoveHandler(Int32 oldPageIndex, Int32 newPageIndex, PageMoveOperationDelegate pageMoveOperation)
at System.Windows.Controls.DataPager.OnNextPageButtonBaseClick(Object sender, RoutedEventArgs e)
ב- System.Windows.Controls.Primitives.ButtonBase.OnClick()
ב- System.Windows.Controls.Button.OnClick()
at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
at System.Windows.Controls.Control.OnMouseLeftButtonUp(control ctrl, EventArgs e)
ב-MS. Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName, UInt32 flags)
תרחיש 2:
לחץ על לחצן 'הוסף חבר ' בעמוד 2 כדי לאלץ את Explorer להוסיף עמוד חדש. לאחר מכן עמוד 3 נוצר ואתה מקבל את השגיאות הבאות:
הערה
System.ArgumentOutOfRangeException: [ArgumentOutOfRange_Index]
ארגומנטים:
איתור באגים במחרוזות משאבים אינו זמין. לעתים קרובות המפתח והארגומנטים מספקים מספיק מידע כדי לאבחן את הבעיה. ראה http://go.microsoft.com/fwlink/?linkid=106663&גירסה=5.1.20913.00&קובץ=mscorlib.dll&מפתח=ArgumentOutOfRange_Index
שם פרמטר: index
ב- System.ThrowHelper.ThrowArgumentOutOfRangeException()
ב- System.Collections.Generic.List'1.get_Item(אינדקס Int32)
ב- System.Collections.ObjectModel.Collection'1.get_Item(Int32 index)
at Microsoft.MasterDataServices.Client.ViewModel.Common.SortablePagedCollectionView'1.GetEnumerator()
ב- System.Windows.Controls.DataForm.get_ItemsCount()
at System.Windows.Controls.DataForm.SetCanMoveToLastItem()
ב- System.Windows.Controls.DataForm.SetAllCanProperties()
ב- System.Windows.Controls.DataForm.<SetUpCollectionView>b__a(מופע DataForm, מקור אובייקט, NotifyCollectionChangedEventArgs eventArgs)
at System.Windows.Controls.WeakEventListener'3.OnEvent(TSource source, TEventArgs eventArgs)
at System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e)
at Microsoft.MasterDataServices.Client.ViewModel.Common.SortablePagedCollectionView'1.CollectionChangedHandler(Object sender, NotifyCollectionChangedEventArgs e)
at System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e)
at System.Collections.ObjectModel.ObservableCollection'1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
at System.Collections.ObjectModel.ObservableCollection'1.InsertItem(Int32 index, T item)
at System.Collections.ObjectModel.Collection'1.Insert(Int32 index, T item)
at Microsoft.MasterDataServices.Client.ViewModel.MasterData.EntityMembersViewModel.AddNewMemberToCollection(Guid requestId, EntityMembersGetResponse response, Exception ex)
at Microsoft.MasterDataServices.Client.ViewModel.ServiceProxy.ServiceClient.<>c__DisplayClass16'2.<ExecuteRequest>b__15(Object sender, RequestCompletedEventArgs'1 e)
at Microsoft.MasterDataServices.Client.ViewModel.ServiceProxy.ServiceClient.OnEntityMembersGetCompleted(Object state)
פתרון
הבעיה תוקנה לראשונה בעדכון המצטבר הבא של SQL Server.
עדכון מצטבר 1 עבור SQL Server 2014 /en-us/help/2931693
עדכון מצטבר 9 עבור SQL Server 2012 SP1 /en-us/help/2931078
אודות עדכונים מצטברים עבור SQL Server
כל עדכון מצטבר חדש עבור SQL SQL Server מכיל את כל התיקונים החמים ואת כל תיקוני האבטחה שנכללו בעדכון המצטבר הקודם. עיין בעדכונים המצטברים האחרונים עבור SQL Server:
מידע נוסף
לאחר השלמת ההתקנה, עליך לפתוח את Master Data Services מנהל התצורה כדי שתוכל לשדרג את מסד הנתונים של MDS.
- לחץ על מסדי נתונים ולאחר מכן לחץ על בחירת מסד נתונים.
- התחבר למסד הנתונים שברצונך לשדרג. כאשר מסד הנתונים נבחר, מתקבלת ההודעה הבאה: מסד נתונים זה דורש שדרוג. לא ניתן לשנות את הגדרות המערכת עד לשדרוג מסד הנתונים.
- לחץ על שדרוג מסד נתונים. אשף שדרוג מסד הנתונים נפתח. בצע את ההוראות באשף כדי לשדרג את מסד הנתונים ולאחר מכן לחץ על סיום.
מצב
Microsoft אישרה שזוהי בעיה במוצרי Microsoft המפורטים בסעיף "חל על".