JobAutomacaoEncerramentoCotacaoGeapService.ProcessarAutomacao

// Id: #9128600
using Inpart.Integracao.GerenciadorJobs.Services.AutomacaoEncerramentoCotacaoGeap;

var jobAutomacaoEncerramentoCotacaoGeapService = Activate<JobAutomacaoEncerramentoCotacaoGeapService>();
await jobAutomacaoEncerramentoCotacaoGeapService.ProcessarAutomacao();

Parameters

CurrentCulture
""
RecurringJobId
"automacao-encerramento-cotacao-geap"
Time
1785270607

State

07/28/2026 22:21:47 (+3.597s) Failed

An exception occurred during performance of the job.

Microsoft.Data.SqlClient.SqlException (desktop-qarb8l0.staging:2804)

Conversion failed when converting date and/or time from character string.

Microsoft.Data.SqlClient.SqlException (0x80131904): Conversion failed when converting date and/or time from character string.
   at Microsoft.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at Microsoft.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at Microsoft.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, SqlCommand command, Boolean callerHasConnectionLock, Boolean asyncClose)
   at Microsoft.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
   at Microsoft.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted)
   at Microsoft.Data.SqlClient.SqlCommand.CompleteAsyncExecuteReader(Boolean isInternal, Boolean forDescribeParameterEncryption)
   at Microsoft.Data.SqlClient.SqlCommand.InternalEndExecuteNonQuery(IAsyncResult asyncResult, Boolean isInternal, String endMethod)
   at Microsoft.Data.SqlClient.SqlCommand.EndExecuteNonQueryInternal(IAsyncResult asyncResult)
   at Microsoft.Data.SqlClient.SqlCommand.EndExecuteNonQueryAsync(IAsyncResult asyncResult)
   at Microsoft.Data.SqlClient.SqlCommand.<>c.<InternalExecuteNonQueryAsync>b__193_1(IAsyncResult asyncResult)
   at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
--- End of stack trace from previous location ---
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQueryAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQueryAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQueryAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.<>c__DisplayClass30_0`2.<<ExecuteAsync>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.ExecuteImplementationAsync[TState,TResult](Func`4 operation, Func`4 verifySucceeded, TState state, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.ExecuteImplementationAsync[TState,TResult](Func`4 operation, Func`4 verifySucceeded, TState state, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken)
   at Inpart.Integracao.GerenciadorJobs.Services.AutomacaoEncerramentoCotacaoGeap.JobAutomacaoEncerramentoCotacaoGeapService.MarcarNecessarioAnalise(CotacaoCandidataAutomacao cotacao, List`1 resultadosItens, List`1 histsPendentes) in C:\Users\Ber\Documents\Inpart\Inpart.Integracao.GerenciadorJobs\Inpart.Integracao.GerenciadorJobs\Services\AutomacaoEncerramentoCotacaoGeap\JobAutomacaoEncerramentoCotacaoGeapService.cs:line 577
   at Inpart.Integracao.GerenciadorJobs.Services.AutomacaoEncerramentoCotacaoGeap.JobAutomacaoEncerramentoCotacaoGeapService.ProcessarCotacao(CotacaoCandidataAutomacao cotacao, Dictionary`2 regrasPorDistribuidor, Dictionary`2 mediasGeap, List`1 logsPendentes, List`1 histsPendentes) in C:\Users\Ber\Documents\Inpart\Inpart.Integracao.GerenciadorJobs\Inpart.Integracao.GerenciadorJobs\Services\AutomacaoEncerramentoCotacaoGeap\JobAutomacaoEncerramentoCotacaoGeapService.cs:line 356
   at Inpart.Integracao.GerenciadorJobs.Services.AutomacaoEncerramentoCotacaoGeap.JobAutomacaoEncerramentoCotacaoGeapService.ProcessarAutomacao() in C:\Users\Ber\Documents\Inpart\Inpart.Integracao.GerenciadorJobs\Inpart.Integracao.GerenciadorJobs\Services\AutomacaoEncerramentoCotacaoGeap\JobAutomacaoEncerramentoCotacaoGeapService.cs:line 107
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

+63ms Processing

Server:
desktop-qarb8l0.staging:2804
Worker:
9727dcb8

+1h 35m Enqueued

Triggered via Dashboard UI

+1.060s Succeeded

Latency:
15m 49.309s
Duration:
1.023s

+37ms Processing

Server:
6947a5f79fa0.staging:1
Worker:
d248e7d3

+15m 48.843s Enqueued

Triggered via Dashboard UI

+330ms Succeeded

Latency:
94ms
Duration:
289ms

+67ms Processing

Server:
b8da05f11bad.development:1
Worker:
76e207cf

+6ms Enqueued

Triggered by recurring job scheduler

07/28/2026 20:30:07 Created