KB3019110 - 修正:當您在 SharePoint 2013 中將多個篩選條件新增至 Power View 報表時,發生「不允許重複名稱」錯誤

套用到
SQL Server 2012 Developer SQL Server 2012 Enterprise SQL Server 2012 Standard SQL Server 2014 Developer - duplicate (do not use) SQL Server 2014 Enterprise - duplicate (do not use) SQL Server 2014 Standard - duplicate (do not use)

重要

在 Microsoft 365 版 Excel 和 Excel 2021,Power View 于 2021 年 10 月 12 日移除。 或者,您可以使用 Power BI Desktop 提供的互動式視覺體驗,您可以免費下載。 您也可以輕鬆地將 Excel 活頁簿匯入 Power BI Desktop。

症狀

假設您在 Microsoft SharePoint 2013 中使用 Power View,而且SQL Server版本SQL Server 2012 Service Pack 2 (SP2) 或 SQL Server 2014。 當您嘗試將多個篩選條件新增至 Power View 報表時,收到下列錯誤訊息:

注意

System.ArgumentException:已在索引 0 和索引 1 處指定了兩次 '<篩選名稱>' 名稱。 不允許名稱重複。
參數名稱:keys[1]
位於 Microsoft.Data.Common.CommandTrees.ExpressionBuilder.Internal.EnumerableValidator'3.Validate (IEnumerable'1 引數, String argumentName, Int32 expectedElementCount, Boolean allowEmpty, Func'3 map, Func'2 collect, Func'3 deriveName)
位於 Microsoft.Data.Common.CommandTrees.ExpressionBuilder.Internal.EnumerableValidator'3.Validate ()
位於 Microsoft.Data.Common.CommandTrees.ExpressionBuilder.Internal.ArgumentValidation.ValidateGroupBy (DbGroupExpressionBinding 輸入、IEnumerable'1 keys、IEnumerable'1 彙總、DbExpressionList& validKeys、ReadOnlyCollection'1& validAggregates)
位於 Microsoft.Reporting.QueryDesign.ExpressionTrees.ExpressionBuilder.Internal.QueryExpressionBuilder.GroupBy (QueryGroupExpressionBinding 輸入、IEnumerable'1 groupItems、IEnumerable'1 彙總)
位於 Microsoft.Reporting.QueryDesign.QueryDefinitionModel.Internal.QdmExpressionBuilder.QdmGroupBy (IEnumerable'1 運算式)
位於 Microsoft.Reporting.QueryDesign.QueryDefinitionModel.Internal.QdmExpressionBuilder.QdmFilter (IGrouping'2 述詞)
位於 System.Linq.Enumerable.WhereSelectEnumerableIterator'2.MoveNext ()
位於 System.Linq.Buffer'1..ctor (IEnumerable'1 source)
位於 System.Linq.Enumerable.ToArray[TSource] (IEnumerable'1 source)
位於 Microsoft.Reporting.QueryDesign.QueryDefinitionModel.Internal.QdmExpressionBuilder.QdmFilters (IEnumerable'1 filterConditions)
位於 Microsoft.Reporting.QueryDesign.QueryDefinitionModel.Internal.FilterQueryFactory.AddRowCount (QueryBuilder queryBuilder、Group group、EntitySet entity、IEnumerable'1 rowCountFilterContext)
位於 Microsoft.Reporting.QueryDesign.QueryDefinitionModel.Internal.FilterQueryFactory.CreateValueWithCountQuery (QueryBuilder queryBuilder、List'1 columns、IEdmFieldInstance fieldInstance、FilterCondition availableValueFilter、FilterCondition activeValueRetentionFilter、GroupReference& groupRef)
位於 Microsoft.Reporting.QueryDesign.QueryDefinitionModel.Internal.FilterQueryFactory.CreateValueListQuery (EntityDataModel 模型、IEdmFieldInstance fieldInstance、Int32 topCount、FilterCondition availableValueFilter、FilterCondition activeValueRetentionFilter、IEnumerable'1 exclusionPathSegments、ValueListQuerySchema& 結構描述)
位於 Microsoft.Reporting.AdHoc.DataStructureManagement.Filtering.Internal.FilterValueQueryFactory.CreateFilterValuesQuery[TFilterMode] (TFilterMode filterMode, Int32 maxRowCount, FormulaFilterCondition availableValueFilter, FormulaFilterCondition activeValueRetentionFilter, ValueListQuerySchema& 結構描述)
位於 Microsoft.Reporting.AdHoc.DataStructureManagement.Filtering.Internal.ListFilterMode.ListDataLoader。<LoadDataImpl>d__15.MoveNext ()
位於 Microsoft.Reporting.AsyncEnumerator.AsyncEnumeratorBase.MoveNextChecked ()
位於 Microsoft.Reporting.AsyncEnumerator.AsyncEnumeratorBase.ResumeIterator (布林值同步)
位於 Microsoft.Reporting.AsyncEnumerator.AsyncEnumeratorBase.BeginExecuteCore (IEnumerator'1 asyncMethod)
位於 Microsoft.Reporting.AsyncEnumerator.AsyncEnumeratorImpl.BeginExecute (Func'2 asyncMethod)
位於 Microsoft.Reporting.AsyncEnumerator.BeginExecute (Func'2 asyncMethod、AsyncCallback userCallback、Object userState、AsyncEnumeratorSettings 設定)
位於 Microsoft.Reporting.AdHoc.DataStructureManagement.Filtering.Internal.FilterMode.DataLoader'1.BeginLoadData (AsyncCallback userCallback, Object userState)
位於 Microsoft.Reporting.AdHoc.DataStructureManagement.Filtering.Internal.FilterMode.DataLoader'1.LoadDataAsync ()
位於 Microsoft.Reporting.AdHoc.DataStructureManagement.Filtering.Internal.FieldFilter.LoadDataAsyncCore ()
位於 Microsoft.Reporting.AdHoc.DataStructureManagement.Filtering.Internal.FilterManager.OnEditCompleted ()
位於 Microsoft.Reporting.AdHoc.DataStructureManagement.Filtering.Internal.PageFilterManager.OnEditCompleted ()
位於 Microsoft.Reporting.AdHoc.DataStructureManagement.Filtering.Internal.FilterManager.OnEditCompleted (EventArgs 引數)
位於 Microsoft.Practices.Prism.Events.EventSubscription'1.InvokeAction (Action'1 動作,TPayload 引數)
位於 Microsoft.Practices.Prism.Events.EventSubscription'1。<>c__DisplayClass2。<GetExecutionStrategy>b__0 (Object[] 引數)
位於 Microsoft.Practices.Prism.Events.EventBase.InternalPublish (Object[] 引數)
位於 Microsoft.Practices.Prism.Events.CompositePresentationEvent'1.Publish (TPayload 承載)
位於 Microsoft.Reporting.AdHoc.DataStructureManagement.Internal.TransactionManager.EditEventAggregator.Exit ()
位於 Microsoft.Reporting.AdHoc.DataStructureManagement.Internal.TransactionManager.EditEventAggregator.SelectionManager_SelectionResumed (Object sender, EventArgs e)
位於 Microsoft.Reporting.Util.RaiseEvent (EventHandler eventHandler、物件傳送者、EventArgs eventArgs)
位於 Microsoft.Reporting.AdHoc.Shell.Regions.Canvas.Internal.SelectionManager.ResumeSelectionChanges ()
位於 Microsoft.Reporting.AdHoc.Shell.Regions.Canvas.Internal.SelectionManager。<ctor>b__3 (Object s, EventArgs e)
位於 Microsoft.Reporting.Util.RaiseEvent (EventHandler eventHandler、物件傳送者、EventArgs eventArgs)
位於 Microsoft.Reporting.AdHoc.DataManagement.Internal.DataManager.set_HandleRdmChanges (布林值)
位於 Microsoft.Reporting.AdHoc.DataManagement.Internal.DataManager.UndoManager_SuspendRdmHandlingChanged (物件傳送者, StateChangedEventArgs'1 引數)
位於 Microsoft.Reporting.Util.RaiseEvent[TEventArgs] (EventHandler'1 eventHandler, 物件傳送者, TEventArgs eventArgs)
位於 Microsoft.Reporting.AdHoc.Shell.Services.UndoManagement.Internal.UndoManager.<。ctor>b__0 (物件傳送者, StateChangedEventArgs'1 args)
位於 Microsoft.Reporting.Util.RaiseEvent[TEventArgs] (EventHandler'1 eventHandler, 物件傳送者, TEventArgs eventArgs)
位於 Microsoft.Reporting.AdHoc.Shell.Services.UndoManagement.Internal.UndoManagerApiProperties.set_SuspendDataManagerRdmHandling (布林值)
位於 Microsoft.Reporting.AdHoc.Shell.Services.UndoManagement.Internal.UndoManagerHasOpenUndoGroupStateImpl.OnUndoGroupCommitting (UndoGroup undoGroup)
位於 Microsoft.Reporting.AdHoc.Shell.Services.UndoManagement.Internal.UndoManagerHasOpenUndoGroupStateImpl.HandleUndoGroupStateChanged (物件傳送者, EventArgs 引數)
位於 Microsoft.Reporting.Util.RaiseEvent (EventHandler eventHandler、物件傳送者、EventArgs eventArgs)
位於 Microsoft.Reporting.AdHoc.Shell.Services.UndoManagement.Internal.UndoGroup.HandleStateEnteredEvent (物件傳送者、EventArgs 引數)
位於 Microsoft.Reporting.Util.RaiseEvent (EventHandler eventHandler、物件傳送者、EventArgs eventArgs)
位於 Microsoft.Reporting.AdHoc.Shell.Services.UndoManagement.Internal.UndoGroupCommittingStateImpl.EnterState ()
位於 Microsoft.Reporting.AdHoc.Shell.Services.UndoManagement.Internal.UndoGroup.SetState (UndoGroupStateImpl nextState)
位於 Microsoft.Reporting.AdHoc.Shell.Services.UndoManagement.Internal.UndoGroupOpenStateImpl.Commit ()
位於 Microsoft.Reporting.AdHoc.Shell.Services.UndoManagement.Internal.UndoGroup.Commit ()
在 Microsoft.Reporting.AdHoc.DataStructureManagement.Internal.TransactionManager.CompleteTransaction (交易交易,Boolean completedSuccessfully)
位於 Microsoft.Reporting.AdHoc.DataStructureManagement.Internal.TransactionManager.Transaction.Dispose ()
位於 Microsoft.Reporting.AdHoc.DataStructureManagement.Filtering.Internal.ListFilterMode.SelectOnly (ListFilterRow 資料列)
位於 Microsoft.Reporting.AdHoc.Shell.Regions.Canvas.Internal.FilterCheckBoxList.FieldValueSelectorButton_Click (物件傳送者, 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)
在密西西比州。Internal.JoltHelper.FireEvent (IntPtr unmanagedObj、IntPtr unmanagedObjArgs、Int32 argsTypeIndex、Int32 actualArgsTypeIndex、字串 eventName、UInt32 旗標)

解決方式

此問題已先在下列 SQL Server 累積更新中修正。
 

SQL Server 2014 SP1 的累積更新 1 /zh-tw/help/3067839

SQL Server 2014 的累積更新 6 /zh-tw/help/3031047

SQL Server 2012 SP2 的累積更新 4 /zh-tw/help/3007556

關於 SQL Server 的累積更新

SQL Server 的每個新累積更新都包含所有 Hotfix 和先前累積更新的所有安全性修正程式。 查看 SQL Server 的最新累積更新:

狀態

Microsoft 已確認這是「適用對象」一節中列出的 Microsoft 產品中的問題。