針對Power BI 報表伺服器中的排程重新整理進行疑難排解
本文討論資源,以針對排程重新整理Power BI 報表伺服器中的問題進行疑難排解。
當問題出現時,本文將會更新資訊來協助您。
常見問題
以下是您嘗試排程報表重新整理時所遇到較常見的問題。
驅動程式相關問題
連線至不同的資料來源可能需要安裝協力廠商驅動程式,才能成功連線。 您不僅需要在您使用 Power BI Desktop 的機器上安裝它們,還需要確定驅動程式已安裝在報表伺服器上。
驅動程式也可能同時位於 32 位和 64 位。 請務必安裝 64 位驅動程式,因為 Power BI 報表伺服器 為 64 位。
如需如何安裝和設定協力廠商驅動程式的詳細資訊,請參閱製造商。
記憶體壓力
當報表需要更多記憶體來處理和轉譯時,可能會發生記憶體壓力。 排程報表的重新整理可能需要大量電腦上的記憶體。 特別是針對較大的報表。 記憶體壓力可能會導致報表失敗,以及報表伺服器本身的潛在損毀。
如果您一致遇到記憶體壓力,則可能值得查看報表伺服器的相應放大部署,以分散資源的負載。 您也可以使用 rsreportserver.config 內的設定,定義指定的報表伺服器用於資料重新 IsDataModelRefreshService
整理。使用此設定時,您可以定義一或多部伺服器做為前端伺服器來處理隨選報表,並讓另一組伺服器只用于排程重新整理。
如需如何監視 Analysis Services 實例的資訊,請參閱 監視 Analysis Services 實例 。
如需 Analysis Services 內記憶體設定的相關資訊,請參閱 記憶體屬性 。
Kerberos 設定
使用 Windows 認證將連線至資料來源可能需要設定 Kerberos 限制委派,才能成功連線。 如需如何設定 Kerberos 限制委派的詳細資訊,請參閱 設定 Kerberos 以使用 Power BI 報表 。
已知問題
當已知問題可供使用時,將會在這裡列出有關已知問題的資訊。
組態設定
下列設定可用來影響排程的重新整理。 在 SQL Server Management Studio (SSMS) 內設定設定套用至向外延展部署內的所有報表伺服器。 在 rsreportserver.config 內設定設定是針對其設定的特定伺服器。
SSMS 內的設定:
設定 | 描述 |
---|---|
MaxFileSizeMb | 上傳報表的檔案大小上限。 預設值為 1000 MB(1 GB)。 最大值為 2000 MB(2 GB)。 |
ModelCleanupCycleMinutes | 定義檢查模型以將模型從記憶體收回的頻率。 預設值為 15 分鐘。 |
ModelExpirationMinutes | 定義模型根據上次使用和收回的時間到期的時間長度。 預設值為 60 分鐘。 |
ScheduleRefreshTimeoutMinutes | 定義資料重新整理可以花多久的時間進行模式。 預設值是 120 分鐘。 沒有上限。 |
rsreportserver.config 內的設定:
<Configuration>
<Service>
<PollingInterval>10</PollingInterval>
<IsDataModelRefreshService>false</IsDataModelRefreshService>
<MaxQueueThreads>0</MaxQueueThreads>
</Service>
</Configuration>
疑難排解的工具
與排程重新整理 Power BI 報表相關的記錄
保留排程重新整理資訊的記錄檔是RSPowerBI_記錄。 它們位於報表伺服器安裝位置的 LogFiles 資料夾中。
C:\Program Files\Microsoft Power BI Report Server\PBIRS\LogFiles\RSPowerBI_*.log
錯誤條件
2017-10-20 02:00:09.5188|ERROR|744|Error Processing Data Model Refresh: SessionId: e960c25e-ddd4-4763-aa78-0e5dceb53472, Status: Error Model can not be refreshed because not all the data sources are embedded, Exception Microsoft.PowerBI.ReportServer.AsServer.InvalidDataSourceException: Model can not be refreshed because not all the data sources are embedde
at Microsoft.PowerBI.ReportServer.WebHost.EventHandler.AnalysisServicesDataRefresh.CanModelRefresh(IEnumerable`1 dataSources)
at Microsoft.PowerBI.ReportServer.WebHost.EventHandler.DataRefreshScope.<>c__DisplayClass7.<ExecuteActionWithLogging>b__5()
at Microsoft.PowerBI.ReportServer.WebHost.EventHandler.DataRefreshScope.<ExecuteFuncWithLogging>d__1`1.MoveNext()
成功重新整理
2017-10-25 15:23:41.9370|INFO|6|Handling event with data: TimeEntered: 10/25/2017 8:23:41 PM, Type: Event, SessionId: 46d398db-0b1f-49d8-b7bd-c5461c07ec7a, EventType: DataModelRefresh
2017-10-25 15:23:41.9370|INFO|6|Processing Data Model Refresh: SessionId: 46d398db-0b1f-49d8-b7bd-c5461c07ec7a, Status: Starting Data Refresh.
2017-10-25 15:23:41.9370|INFO|6|Processing Data Model Refresh: SessionId: 46d398db-0b1f-49d8-b7bd-c5461c07ec7a, Status: Starting Retrieving PBIX AsDatabaseInfo.
2017-10-25 15:23:42.7134|INFO|6|Processing Data Model Refresh: SessionId: 46d398db-0b1f-49d8-b7bd-c5461c07ec7a, Status: Starting Verifying all the data sources are embedded.
2017-10-25 15:23:42.7134|INFO|6|Processing Data Model Refresh: SessionId: 46d398db-0b1f-49d8-b7bd-c5461c07ec7a, Status: Starting Verifying connection strings are valid.
2017-10-25 15:23:42.7134|INFO|6|Processing Data Model Refresh: SessionId: 46d398db-0b1f-49d8-b7bd-c5461c07ec7a, Status: Starting Streaming model to Analysis Server.
2017-10-25 15:23:42.7603|INFO|6|Processing Data Model Refresh: SessionId: 46d398db-0b1f-49d8-b7bd-c5461c07ec7a, Status: Starting Refreshing the model.
2017-10-25 15:23:51.5258|INFO|6|Processing Data Model Refresh: SessionId: 46d398db-0b1f-49d8-b7bd-c5461c07ec7a, Status: Starting Removing credentials from the model.
2017-10-25 15:23:51.6508|INFO|6|Processing Data Model Refresh: SessionId: 46d398db-0b1f-49d8-b7bd-c5461c07ec7a, Status: Starting Saving model to the catalog.
不正確的認證
2017-10-20 08:22:01.5595|INFO|302|Processing Data Model Refresh: SessionId: 22cd9ec3-b21a-4eb1-81ae-15fac8d379ea, Status: Starting Refreshing the model.
2017-10-20 08:22:02.3758|ERROR|302|Error Processing Data Model Refresh: SessionId: 22cd9ec3-b21a-4eb1-81ae-15fac8d379ea, Status: Error Failed to refresh the model, Exception Microsoft.AnalysisServices.OperationException: Failed to save modifications to the server. Error returned: 'The credentials provided for the SQL source are invalid. (Source at rosecatalog;reportserver.). The exception was raised by the IDbCommand interface.
'.
at Microsoft.AnalysisServices.Tabular.Model.SaveChanges(SaveOptions saveOptions)
at Microsoft.PowerBI.ReportServer.AsServer.TOMWrapper.RefreshModel(Database database)
at Microsoft.PowerBI.ReportServer.AsServer.AnalysisServicesServer.RefreshDatabase(String databaseName, IEnumerable`1 dataSources)
at Microsoft.PowerBI.ReportServer.WebHost.EventHandler.AnalysisServicesDataRefresh.RefreshDatabase(AsDatabaseInfo asDatabaseInfo)
at Microsoft.PowerBI.ReportServer.WebHost.EventHandler.DataRefreshScope.<>c__DisplayClass7.<ExecuteActionWithLogging>b__5()
at Microsoft.PowerBI.ReportServer.WebHost.EventHandler.DataRefreshScope.<ExecuteFuncWithLogging>d__1`1.MoveNext()
2017-10-20 08:22:02.4588|ERROR|302|Error Processing Data Model Refresh: SessionId: 22cd9ec3-b21a-4eb1-81ae-15fac8d379ea, Status: Error Failed Data Refresh, Exception Microsoft.AnalysisServices.OperationException: Failed to save modifications to the server. Error returned: 'The credentials provided for the SQL source are invalid. (Source at rosecatalog;reportserver.). The exception was raised by the IDbCommand interface.
'.
at Microsoft.PowerBI.ReportServer.WebHost.EventHandler.DataRefreshScope.ExecuteActionWithLogging(Action methodToExecute, String description, String localizedDescription, String messageInFailure, RefreshInfo refreshInfo, DataAccessors dataAccessors, ReportEventType operation, Int64 size, Boolean isDataRetrieval, Boolean showInExecutionLog)
at Microsoft.PowerBI.ReportServer.WebHost.EventHandler.AnalysisServicesDataRefresh.RefreshData(RefreshInfo refreshInfo)
at Microsoft.PowerBI.ReportServer.WebHost.EventHandler.DataRefreshScope.<>c__DisplayClass7.<ExecuteActionWithLogging>b__5()
at Microsoft.PowerBI.ReportServer.WebHost.EventHandler.DataRefreshScope.<ExecuteFuncWithLogging>d__1`1.MoveNext()
啟用詳細資訊記錄
在 Power BI 報表伺服器 中啟用詳細資訊記錄,與 SQL Server Reporting Services 相同。
- 開啟 [
<install directory>\PBIRS\ReportServer\bin\ReportingServicesService.exe.config
]。 - 在 下
<system.diagnostics>
,將 DefaultTraceSwitch 變更 為 4 。 - 在 下
<RStrace>
,將 [元件 ] 變更 為 all:4 。
ExecutionLog
每當轉譯 Power BI 報表或執行排程重新整理計畫時,新的專案就會新增至資料庫中的執行記錄檔。 這些專案可在報表伺服器目錄資料庫中的 ExecutionLog3 檢視中使用。
Power BI 報表的執行記錄專案與其他報表類型的專案不同。
- TimeRendering 資料行一律為 0。 Power BI 報表的轉譯發生在瀏覽器中,而不是在伺服器中。
- 有 2 個要求類型和後續專案動作:
- 互動式 :每當檢視報表時。
- ASModelStream :當資料模型從目錄串流至 Analysis Services 時。
- ConceptualSchema :當使用者按一下檢視報表時。
- QueryData :每當從用戶端要求資料時。
- 重新整理快取 :每當執行排程重新整理計畫時。
- ASModelStream :每當資料模型從目錄串流至 Analysis Services 時。
- DataRefresh :每當從一或多個資料來源重新整理資料時。
- SaveToCatalog :每當資料模型儲存回目錄時。
- 互動式 :每當檢視報表時。
Analysis Services (英文)
有時候您可能會想要修改 Analysis Services 來診斷問題,或調整記憶體限制。
重要
當您升級報表伺服器時,這些設定將會重設。 請務必保留變更的複本,並視需要重新套用這些變更。
安裝位置
Power BI 報表伺服器的預設位置,Analysis Services 如下。
C:\Program Files\Microsoft Power BI Report Server\PBIRS\ASEngine
設定 Analysis Services 設定 (msmdsrv.ini)
在 <install directory>\PBIRS\ASEngine
目錄中,您會發現 msmdsrv.ini 檔案,您可以使用該檔案來控制 Analysis Services 的不同設定。 當您開啟此檔案時,會立即發現此檔案沒有 msmdsrv.ini 檔案中預期的所有設定。
這是因為 Power BI 報表伺服器 執行的實際 Analysis Services 進程是在 中 <install directory>\PBIRS\ASEngine\workspaces
啟動。 在該資料夾中,您會看到您用來的完整 msmdsrv.ini 檔案。 請務必不要修改 workspaces 資料夾中的檔案,因為每當 Analysis Services 進程啟動時會重寫檔案。 如果您想要控制設定,請在目錄中修改 msmdsrv.ini <install directory>\PBIRS\ASEngine
來執行此動作。
啟動 Analysis Services 程式時,會重設下列設定。 您將忽略您對這些所做的任何變更。
- Configuration設定\PrivateProcess
- Configuration設定\DataDir
- Configuration設定\LogDir
- Configuration設定\TempDir
- Configuration設定\BackupDir
- Configuration設定\AllowedBrowsingFolders
- Configuration設定\CrashReportsFolder
- Configuration設定\ExtensionDir
- Configuration設定\Port
- Configuration設定\DeploymentMode
- Configuration設定\ServerLocation
- Configuration設定\TMCompatabilitySKU
- Configuration設定\FlightRecorder\TraceDefinitionFile
分析本機 Analysis Services 程式
SQL Profiler 追蹤可以在本機 Analysis Services 程式上執行,以供診斷之用。 若要連線到本機 Analysis Services 實例,請執行下列動作。
SQL Server Management Studio (SSMS) 下載 隨附 SQL Server Profiler 追蹤。
- 以系統管理員身分啟動 SQL Server Profiler 。
- 選取 [ 新增追蹤] 按鈕。
- 在 [ 連線至伺服器 ] 對話方塊中,選取 [Analysis Services ],然後輸入 localhost:5132 做為伺服器名稱。
- 在 [ 追蹤屬性] 對話方塊中,選取您想要擷取的事件,然後選取 [ 執行 ]。
鎖定記憶體 Windows 許可權中的頁面
如果您發現無法轉譯 Power BI 報表,請將鎖定記憶體中的 頁面許可權指派 給執行 Power BI 報表伺服器的服務帳戶可能會有説明。 如需如何設定 記憶體 中鎖定頁面的詳細資訊,請參閱 指派給 Analysis Services 服務帳戶 的 Windows 許可權。
更多問題嗎? 嘗試詢問Power BI 社群