Prerequisite:Make Entity has more than 2 pages.
Repro1:
1.Go to MDS explorer and choose entity.
2.Go to Page 2.
3. Click Add member button.
Repro2:
1. Go to MDS explorer and choose entity.
2. Click Add member button.
3. Go to Page 2.
Actual Result:
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.ThrowHelper.ThrowArgumentOutOfRangeException()
at System.Collections.Generic.List`1.get_Item(Int32 index)
at System.Collections.ObjectModel.Collection`1.get_Item(Int32 index)
at Microsoft.MasterDataServices.Client.ViewModel.Common.SortablePagedCollectionView`1.GetEnumerator()
at System.Windows.Controls.DataForm.get_ItemsCount()
at System.Windows.Controls.DataForm.SetCanMoveToLastItem()
at System.Windows.Controls.DataForm.SetAllCanProperties()
at System.Windows.Controls.DataForm.<SetUpCollectionView>b__a(DataForm instance, Object source, 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 System.EventHandler`1.Invoke(Object sender, TEventArgs e)
at Microsoft.MasterDataServices.Client.ViewModel.ServiceProxy.ServiceClient.OnEntityMembersGetCompleted(Object state)