Forum Discussion

allyfLinek's avatar
allyfLinek
Regular Visitor
1 year ago

Error Failing saving model to the catalog

Nos últimos dois meses, alguns problemas têm ocorrido em nosso PBIRS, que estava em sua versão de maio de 2024. O primeiro é que a atualização programada só funciona umas 12 horas depois do horário real (já verificamos o fuso do servidor e está ok -3 GMT) outro problema é que, por exemplo, ao executar a atualização programada manualmente, ela não funciona ou fica em “Data Refresh” sem parar. outro problema é que quando vamos no agente sql e executamos manualmente o job referente ao agendamento, ele mostra que foi executado, mas não executa de fato, mesmo sendo um relatório que mostra apenas a data de execução. E o maior problema: Ao executar relatórios mais pesados ​​onde os dados são importados e não no modo analysis services (que também usamos) dá erro de timeout ao salvar no catálogo do servidor de relatórios nativo do powerbi que é criado ao instalar o PBIRS. aqui está um dos erros no RSPOWREBI:

 
2025-02-26 23:27:57.0745|ERRO|30|Erro ao processar atualização do modelo de dados: SessionId: a37515cd-c0ed-40e8-96ec-5e8597071ff4, Status: Erro ao salvar o modelo no catálogo, Exceção System.AggregateException: Ocorreram um ou mais erros. ---> Microsoft.Data.SqlClient.SqlException: Tempo limite de execução expirado. O período de tempo limite expirou antes da conclusão da operação ou o servidor não está respondendo. ---> System.ComponentModel.Win32Exception: A operação de espera atingiu o tempo limite
--- Fim do rastreamento de pilha de exceção interna ---
em Microsoft.Data.SqlClient.SqlCommand.EndExecuteNonQueryAsync(IAsyncResult asyncResult)
em System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
--- Fim do rastreamento de pilha do local anterior onde a exceção foi gerada ---
em System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
em System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
em Dapper.SqlMapper.<ExecuteImplAsync>d__39.MoveNext() em C:\projects\dapper\Dapper\SqlMapper.Async.cs:line 678
--- Fim do rastreamento de pilha do local anterior onde a exceção foi lançada ---
em System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
em System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
em Microsoft.BIServer.HostingEnvironment.Storage.MeteredSqlConnection.<ExecuteAsync>d__10.MoveNext()
--- Fim do rastreamento de pilha do local anterior onde a exceção foi lançada ---
em System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
em System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
em Microsoft.BIServer.HostingEnvironment.Storage.ScopedSqlTransaction.<ExecuteAsync>d__7.MoveNext()
--- Fim do rastreamento de pilha de exceção interna ---
em System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
em System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
em Microsoft.ReportingServices.CatalogAccess.Streams.ExtendedContentWritableStream.Write(Byte[] buffer, Int32 offset, Int32 count)
em Microsoft.AnalysisServices.XmlaClient.ImageSave(String databaseId, Stream targetDbStream)
em Microsoft.AnalysisServices.Core.Server.ImageSave(ImageSaveInfo imageSaveInfo)
em Microsoft.PowerBI.ReportServer.AsServer.AnalysisServicesServer.SaveDatabaseToStream(String databaseName, Stream targetDbStream)
em Microsoft.PowerBI.ReportServer.WebHost.EventHandler.AnalysisServicesDataRefresh.SaveDatabaseToCatalog(String databaseName, Guid catalogItemId)
em Microsoft.PowerBI.ReportServer.WebHost.EventHandler.DataRefreshScope.<>c__DisplayClass38_0`2.<ExecuteStepWithExecLog>b__0()
em Microsoft.PowerBI.ReportServer.WebHost.EventHandler.DataRefreshScope.<>c__DisplayClass34_0.<ExecuteActionWithLogging>b__0()
em Microsoft.PowerBI.ReportServer.WebHost.EventHandler.DataRefreshScope.<ExecuteFuncWithLogging>d__33`1.MoveNext()
---> (Exceção interna nº 0) Microsoft.Data.SqlClient.SqlException (0x80131904): Tempo limite de execução expirado. O período de tempo limite expirou antes da conclusão da operação ou o servidor não está respondendo. ---> System.ComponentModel.Win32Exception (0x80004005): A operação de espera atingiu o tempo limite
em Microsoft.Data.SqlClient.SqlCommand.EndExecuteNonQueryAsync(IAsyncResult asyncResult)
em System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
--- Fim do rastreamento de pilha do local anterior onde a exceção foi gerada ---
em System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
em System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
em Dapper.SqlMapper.<ExecuteImplAsync>d__39.MoveNext() em C:\projects\dapper\Dapper\SqlMapper.Async.cs:line 678
--- Fim do rastreamento de pilha do local anterior onde a exceção foi lançada ---
em System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
em System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
em Microsoft.BIServer.HostingEnvironment.Storage.MeteredSqlConnection.<ExecuteAsync>d__10.MoveNext()
--- Fim do rastreamento de pilha do local anterior onde a exceção foi lançada ---
em System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
em System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
em Microsoft.BIServer.HostingEnvironment.Storage.ScopedSqlTransaction.<ExecuteAsync>d__7.MoveNext()
ClientConnectionId:7dbaac1b-4df1-433c-a7de-1b0abc7af318
Número do erro:-2,Estado:0,Classe:11<---

3 Replies

  • R1k91's avatar
    R1k91
    Super User

    do even a simple report schedule like "select 1" run 12 hours late?

    is PBIRS a dedicated server or it shares resources with other services SQL, SSAS whatever?

    has it been up for a very long time? when did you restart it last time?

    I would patch and restart.

    • allyfLinek's avatar
      allyfLinek
      Regular Visitor

      Exactly, I created a report that connected to a view in a dw sql server database, this view only took the getdate, just to test it. This server runs many services, including SQL, SSAS, another point that may be relevant is that we have a replica server that during the day replicates what is on the main server. it is a very robust server. It has almost 2 TB of ram memory.

      Last week we updated PBIRS to the January 2025 version, trying to mitigate this, but even so the errors persist. As a result, the server was restarted the same week.

      Another detail that I didn't make clear is that when this problem occurs, when I try to insert it into the catalog, it completely fills up the disk where the PBIRS database is located and goes into roolback. The catalog table is currently at 10gb, but the disk has a limit of 250 gb free and it can handle all that.

  • allyfLinek's avatar
    allyfLinek
    Regular Visitor

    Exactly, I created a report that connected to a view in a dw sql server database, this view only took the getdate, just to test it. This server runs many services, including SQL, SSAS, another point that may be relevant is that we have a replica server that during the day replicates what is on the main server. it is a very robust server. It has almost 2 TB of ram memory.

    Last week we updated PBIRS to the January 2025 version, trying to mitigate this, but even so the errors persist. As a result, the server was restarted the same week.

    Another detail that I didn't make clear is that when this problem occurs, when I try to insert it into the catalog, it completely fills up the disk where the PBIRS database is located and goes into roolback. The catalog table is currently at 10gb, but the disk has a limit of 250 gb free and it can handle all that.