重要
在 Microsoft 365 版 Excel 和 Excel 2021,Power View 于 2021 年 10 月 12 日移除。 或者,您可以使用 Power BI Desktop 提供的互動式視覺體驗,您可以免費下載。 您也可以輕鬆地將 Excel 活頁簿匯入 Power BI Desktop。
症狀
請考慮以下案例:
- 您在 Microsoft Office Excel 2013 活頁簿中使用 Microsoft SQL Server 2012 Reporting Services (SSRS 2012) 或 SQL Server 2014 Reporting Services (SSRS 2014) Power View for Microsoft SharePoint 2013。
- 活頁簿以某些韓文字元命名。
- 您將活頁簿上傳到 SharePoint 2013。
在此情況下,您無法從 SharePoint 2013 檢視活頁簿,而且可能會收到下列錯誤訊息:
注意
Microsoft.Reporting.QueryDesign.Edm.Internal.EdmException: 無法載入指定的實體資料模型。 ---> System.ArgumentException: [net_WebHeaderInvalidControlChars]
引數:
偵錯資源字串無法使用。 索引鍵和引數通常提供足夠的資訊來診斷問題。 請參閱 http://go.microsoft.com/fwlink/?linkid=106663&version=5.1.20513.00&file=System.Net.dll&key=net_WebHeaderInvalidControlChars
參數名稱:值
位於 System.Net.ValidationHelper.CheckBadWebHeaderChars (字串名稱,布林值 isHeaderValue)
位於System.Net.WebHeaderCollection.set_Item (字串名稱、字串值)
位於 Microsoft.Reporting.AdHoc.DataManagement.Internal.UrlAccessHttpStreamHandler。<LoadImpl>d__6.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.DataManagement.Internal.UrlAccessHttpStreamHandler.BeginLoad (IUrlAccessMethodHandler urlAccessMethodHandler, List'1 requestCollection, AsyncCallback userCallback, Object userState)
位於 Microsoft.Reporting.AdHoc.DataManagement.Internal.ReportServerConnection。<GetModelImpl>d__2d。MoveNext ()
位於 Microsoft.Reporting.AsyncEnumerator.AsyncEnumeratorBase.MoveNextChecked ()
位於 Microsoft.Reporting.AsyncEnumerator.AsyncEnumeratorBase.ResumeIterator (布林值同步)
位於 Microsoft.Reporting.AsyncEnumerator.AsyncEnumeratorBase.BeginExecuteCore (IEnumerator'1 asyncMethod)
位於 Microsoft.Reporting.AsyncEnumerator.AsyncEnumeratorImpl'1.BeginExecute (Func'2 asyncMethod)
位於 Microsoft.Reporting.AsyncEnumerator.BeginExecute[TResult] (Func'2 asyncMethod、AsyncCallback userCallback、Object userState、AsyncEnumeratorSettings 設定)
位於 Microsoft.Reporting.AdHoc.DataManagement.Internal.ReportServerConnection.BeginGetModel (GetModelRequestInfo requestInfo, AsyncCallback userCallback, Object userState)
位於 Microsoft.Reporting.AdHoc.DataManagement.Internal.EntityDataModelDefinitionService。<GetModelDefinitionImpl>d__4.MoveNext ()
位於 Microsoft.Reporting.AsyncEnumerator.AsyncEnumeratorBase.MoveNextChecked ()
位於 Microsoft.Reporting.AsyncEnumerator.AsyncEnumeratorBase.ResumeIterator (布林值同步)
位於 Microsoft.Reporting.AsyncEnumerator.AsyncEnumeratorBase.BeginExecuteCore (IEnumerator'1 asyncMethod)
位於 Microsoft.Reporting.AsyncEnumerator.AsyncEnumeratorImpl'1.BeginExecute (Func'2 asyncMethod)
位於 Microsoft.Reporting.AsyncEnumerator.BeginExecute[TResult] (Func'2 asyncMethod、AsyncCallback userCallback、Object userState、AsyncEnumeratorSettings 設定)
位於 Microsoft.Reporting.AdHoc.DataManagement.Internal.DataManager。<GetModelDefinitionImpl>d__ad。MoveNext ()
位於 Microsoft.Reporting.AsyncEnumerator.AsyncEnumeratorBase.MoveNextChecked ()
位於 Microsoft.Reporting.AsyncEnumerator.AsyncEnumeratorBase.ResumeIterator (布林值同步)
位於 Microsoft.Reporting.AsyncEnumerator.AsyncEnumeratorBase.BeginExecuteCore (IEnumerator'1 asyncMethod)
位於 Microsoft.Reporting.AsyncEnumerator.AsyncEnumeratorImpl'1.BeginExecute (Func'2 asyncMethod)
位於 Microsoft.Reporting.AsyncEnumerator.BeginExecute[TResult] (Func'2 asyncMethod、AsyncCallback userCallback、Object userState、AsyncEnumeratorSettings 設定)
位於 Microsoft.Reporting.AdHoc.DataManagement.Internal.DataManager.BeginGetModelDefinition (ModelIdentifier、modelIdentifier、AsyncCallback userCallback、Object userState)
位於 Microsoft.Reporting.QueryDesign.Services.Internal.ModelManager。<>c__DisplayClass11。<LoadModelImpl>b__e ()
位於 Microsoft.Reporting.QueryDesign.Services.Internal.ModelManager.WrapAnticipatedExceptions[T] (Func'1 作業)
注意:如果檔案名稱包含特定韓文字元,就會發生這個問題。 如果您使用其他韓文字元或英文字元重新命名檔案,則不會發生。 例如:
http://sharepoint/Shared 文件/한글.xlsx (此檔案報告錯誤。)
http://sharepoint/Shared 文件/테스트.xlsx (此檔案可以順利開啟。)
http://sharepoint/Shared 文件/test.xlsx (此檔案可以順利開啟。)
解決方式
此問題已先在下列 SQL Server 累積更新中修正。
SQL Server 2014 累積更新 4 /zh-tw/help/2999197
SQL Server 2012 SP2 的累積更新 2 /zh-tw/help/2983175
SQL Server 2012 SP1 的累積更新 11 /zh-tw/help/2975396
關於 SQL Server 的累積更新
SQL Server 的每個新累積更新都包含所有 Hotfix 和先前累積更新的所有安全性修正程式。 查看 SQL Server 的最新累積更新:
狀態
Microsoft 已確認這是「適用對象」一節中列出的 Microsoft 產品中的問題。