Current Issue
We are manually renaming the uploaded file within the Row_Inserting event, which seems to break the internal file upload mechanism of ASP.NET Maker. Specifically, the FixUploadFileNames() method fails because:
- The value of
newFiles[i] (e.g., PROVA CANGURU 2024.pdf) no longer matches the actual file name on disk.
- The
FileExists(tempPath + file) check returns false because the file has already been renamed.
- As a result, the
MoveFile(tempPath + file, workPath + file) line throws a FileNotFoundException.
Even though the insertion continues, this exception is being logged and affects the process.
Request for Guidance
Could you please confirm the best practice for safely renaming uploaded files in ASP.NET Maker?
Our current goal is to generate unique and user-friendly file names before saving, but we want to ensure compatibility with the internal upload workflow.
Should we move this logic to the File_Upload event instead of Row_Inserting?
Or is there another recommended approach for renaming files while maintaining compatibility with FixUploadFileNames()?
Thank you in advance for your assistance.
/// <summary>
/// Remove acentos e caracteres especiais da string, ideal para nomes de arquivos
/// </summary>
public static string ReplaceCharacters(string str)
{
string[] acentos = new string[]
{
"ç", "Ç", "á", "é", "í", "ó", "ú", "ý", "Á", "É", "Í", "Ó", "Ú", "Ý",
"à", "è", "ì", "ò", "ù", "À", "È", "Ì", "Ò", "Ù", "ã", "õ", "ñ", "ä",
"ë", "ï", "ö", "ü", "ÿ", "Ä", "Ë", "Ï", "Ö", "Ü", "Ã", "Õ", "Ñ", "â",
"ê", "î", "ô", "û", "Â", "Ê", "Î", "Ô", "Û"
};
string[] semAcento = new string[]
{
"c", "C", "a", "e", "i", "o", "u", "y", "A", "E", "I", "O", "U", "Y",
"a", "e", "i", "o", "u", "A", "E", "I", "O", "U", "a", "o", "n", "a",
"e", "i", "o", "u", "y", "A", "E", "I", "O", "U", "A", "O", "N", "a",
"e", "i", "o", "u", "A", "E", "I", "O", "U"
};
for (int i = 0; i < acentos.Length; i++)
{
str = str.Replace(acentos[i], semAcento[i]);
}
string[] caracteresEspeciais = {
"¹", "²", "³", "£", "¢", "¬", "º", "¨", "'", ",", ":", "(", ")", "ª",
"|", "°", "@", "#", "!", "$", "%", "&", "*", ";", "/", "<", ">", "?",
"[", "]", "{", "}", "=", "+", "§", "´", "`", "^", "~"
};
foreach (var ch in caracteresEspeciais)
{
str = str.Replace(ch, "");
}
// Remove quaisquer outros caracteres especiais
str = Regex.Replace(str, @"[^\s\w\.@-]", "", RegexOptions.None, TimeSpan.FromSeconds(1.5));
return str.Trim();
}
/// <summary>
/// Normaliza o nome do arquivo, removendo espaços e símbolos redundantes
/// </summary>
public static string FormatarNomeArquivo(string valor)
{
if (string.IsNullOrWhiteSpace(valor))
return "";
valor = ReplaceCharacters(valor); // Remove acentos e caracteres especiais
// Substitui múltiplos espaços por um único
valor = Regex.Replace(valor, @"\s+", " ", RegexOptions.None, TimeSpan.FromSeconds(1.5));
// Substitui espaços por underline
valor = valor.Replace(" - ", "-").Replace(" ", "_");
return valor.Trim();
}
/// <summary>
/// Gera um nome de arquivo único com base no nome original e timestamp com milissegundos
/// </summary>
public static string GerarNomeArquivoUnico(string nomeOriginal)
{
if (string.IsNullOrWhiteSpace(nomeOriginal))
return "";
string nomeFormatado = FormatarNomeArquivo(nomeOriginal);
string extensao = Path.GetExtension(nomeOriginal);
string nomeSemExtensao = Path.GetFileNameWithoutExtension(nomeFormatado);
// Timestamp curto com milissegundos
string timestamp = DateTime.Now.ToString("yyyyMMddHHmmssfff");
string nomeFinal = $"{nomeSemExtensao}_{timestamp}{extensao}".ToLowerInvariant();
return nomeFinal;
}
2025-05-05T13:55:23.1979485-03:00 4000002d-0003-fe00-b63f-84710c7967bb [DBG] Iniciando Row_Inserting. (4e47afec)
2025-05-05T13:55:23.1980305-03:00 4000002d-0003-fe00-b63f-84710c7967bb [DBG] IDGrupo do usuário: 0 (77c0e462)
2025-05-05T13:55:23.1980987-03:00 4000002d-0003-fe00-b63f-84710c7967bb [DBG] Grupo diferente de 2 - validando Status e Situacao. (bb2fa2db)
2025-05-05T13:55:23.1981133-03:00 4000002d-0003-fe00-b63f-84710c7967bb [DBG] Finalizando Row_Inserting com sucesso. (7d52d769)
2025-05-05T13:55:23.2596965-03:00 4000002d-0003-fe00-b63f-84710c7967bb [DBG] INSERT INTO [dbo].[GED_TAArquivos] ([IDDocumento], [IDPolo], [Emissao], [Arquivo], [Aditivo], [Observacao], [Tipo], [Validade], [Indeterminado], [Restricao], [ObsRestricao], [Status], [Justificativa], [Situacao], [Previa], [Ativo], [RegistradoPor], [DataRegistro], [AtualizadoPor], [DataAtualizacao]) VALUES (16483, 1897, NULL, 'prova_canguru_2024_20250505135523198.pdf', NULL, NULL, 1, NULL, 1, 0, NULL, 0, 'teste', 0, 0, true, -1, '2025-05-05', -1, '2025-05-05 13:55:00');SELECT scope_identity() AS [Id] (665590c7)
2025-05-05T13:55:23.2754105-03:00 4000002d-0003-fe00-b63f-84710c7967bb [DBG] INSERT INTO [dbo].[SIS_TAAuditoria] ([Data], [Script], [Usuario], [Acao], [Tabela], [Campo], [ValorChave], [ValorAntigo], [ValorNovo]) VALUES ('2025-05-05 13:55:23', '/gedtaarquivosadd', '-1', 'A', 'GED_TAArquivos', 'IDDocumento', '', '', 16483);SELECT scope_identity() AS [Id] (81c89d8e)
2025-05-05T13:55:23.2906201-03:00 4000002d-0003-fe00-b63f-84710c7967bb [DBG] INSERT INTO [dbo].[SIS_TAAuditoria] ([Data], [Script], [Usuario], [Acao], [Tabela], [Campo], [ValorChave], [ValorAntigo], [ValorNovo]) VALUES ('2025-05-05 13:55:23', '/gedtaarquivosadd', '-1', 'A', 'GED_TAArquivos', 'IDPolo', '', '', 1897);SELECT scope_identity() AS [Id] (626fcadd)
2025-05-05T13:55:23.3036746-03:00 4000002d-0003-fe00-b63f-84710c7967bb [DBG] INSERT INTO [dbo].[SIS_TAAuditoria] ([Data], [Script], [Usuario], [Acao], [Tabela], [Campo], [ValorChave], [ValorAntigo], [ValorNovo]) VALUES ('2025-05-05 13:55:23', '/gedtaarquivosadd', '-1', 'A', 'GED_TAArquivos', 'Emissao', '', '', '');SELECT scope_identity() AS [Id] (ede3816c)
2025-05-05T13:55:23.3168923-03:00 4000002d-0003-fe00-b63f-84710c7967bb [DBG] INSERT INTO [dbo].[SIS_TAAuditoria] ([Data], [Script], [Usuario], [Acao], [Tabela], [Campo], [ValorChave], [ValorAntigo], [ValorNovo]) VALUES ('2025-05-05 13:55:23', '/gedtaarquivosadd', '-1', 'A', 'GED_TAArquivos', 'Arquivo', '', '', 'prova_canguru_2024_20250505135523198.pdf');SELECT scope_identity() AS [Id] (b2f12261)
2025-05-05T13:55:23.3301328-03:00 4000002d-0003-fe00-b63f-84710c7967bb [DBG] INSERT INTO [dbo].[SIS_TAAuditoria] ([Data], [Script], [Usuario], [Acao], [Tabela], [Campo], [ValorChave], [ValorAntigo], [ValorNovo]) VALUES ('2025-05-05 13:55:23', '/gedtaarquivosadd', '-1', 'A', 'GED_TAArquivos', 'Aditivo', '', '', '');SELECT scope_identity() AS [Id] (69680b7f)
2025-05-05T13:55:23.3436280-03:00 4000002d-0003-fe00-b63f-84710c7967bb [DBG] INSERT INTO [dbo].[SIS_TAAuditoria] ([Data], [Script], [Usuario], [Acao], [Tabela], [Campo], [ValorChave], [ValorAntigo], [ValorNovo]) VALUES ('2025-05-05 13:55:23', '/gedtaarquivosadd', '-1', 'A', 'GED_TAArquivos', 'Observacao', '', '', '');SELECT scope_identity() AS [Id] (596dfa54)
2025-05-05T13:55:23.3571321-03:00 4000002d-0003-fe00-b63f-84710c7967bb [DBG] INSERT INTO [dbo].[SIS_TAAuditoria] ([Data], [Script], [Usuario], [Acao], [Tabela], [Campo], [ValorChave], [ValorAntigo], [ValorNovo]) VALUES ('2025-05-05 13:55:23', '/gedtaarquivosadd', '-1', 'A', 'GED_TAArquivos', 'Tipo', '', '', 1);SELECT scope_identity() AS [Id] (4c7396c0)
2025-05-05T13:55:23.3700811-03:00 4000002d-0003-fe00-b63f-84710c7967bb [DBG] INSERT INTO [dbo].[SIS_TAAuditoria] ([Data], [Script], [Usuario], [Acao], [Tabela], [Campo], [ValorChave], [ValorAntigo], [ValorNovo]) VALUES ('2025-05-05 13:55:23', '/gedtaarquivosadd', '-1', 'A', 'GED_TAArquivos', 'Validade', '', '', '');SELECT scope_identity() AS [Id] (bde3a16a)
2025-05-05T13:55:23.3852415-03:00 4000002d-0003-fe00-b63f-84710c7967bb [DBG] INSERT INTO [dbo].[SIS_TAAuditoria] ([Data], [Script], [Usuario], [Acao], [Tabela], [Campo], [ValorChave], [ValorAntigo], [ValorNovo]) VALUES ('2025-05-05 13:55:23', '/gedtaarquivosadd', '-1', 'A', 'GED_TAArquivos', 'Indeterminado', '', '', 1);SELECT scope_identity() AS [Id] (26418a4d)
2025-05-05T13:55:23.3991229-03:00 4000002d-0003-fe00-b63f-84710c7967bb [DBG] INSERT INTO [dbo].[SIS_TAAuditoria] ([Data], [Script], [Usuario], [Acao], [Tabela], [Campo], [ValorChave], [ValorAntigo], [ValorNovo]) VALUES ('2025-05-05 13:55:23', '/gedtaarquivosadd', '-1', 'A', 'GED_TAArquivos', 'Restricao', '', '', 0);SELECT scope_identity() AS [Id] (1f7cace4)
2025-05-05T13:55:23.4126903-03:00 4000002d-0003-fe00-b63f-84710c7967bb [DBG] INSERT INTO [dbo].[SIS_TAAuditoria] ([Data], [Script], [Usuario], [Acao], [Tabela], [Campo], [ValorChave], [ValorAntigo], [ValorNovo]) VALUES ('2025-05-05 13:55:23', '/gedtaarquivosadd', '-1', 'A', 'GED_TAArquivos', 'ObsRestricao', '', '', '');SELECT scope_identity() AS [Id] (0bacdaeb)
2025-05-05T13:55:23.4285991-03:00 4000002d-0003-fe00-b63f-84710c7967bb [DBG] INSERT INTO [dbo].[SIS_TAAuditoria] ([Data], [Script], [Usuario], [Acao], [Tabela], [Campo], [ValorChave], [ValorAntigo], [ValorNovo]) VALUES ('2025-05-05 13:55:23', '/gedtaarquivosadd', '-1', 'A', 'GED_TAArquivos', 'Status', '', '', 0);SELECT scope_identity() AS [Id] (d7b0f627)
2025-05-05T13:55:23.4427212-03:00 4000002d-0003-fe00-b63f-84710c7967bb [DBG] INSERT INTO [dbo].[SIS_TAAuditoria] ([Data], [Script], [Usuario], [Acao], [Tabela], [Campo], [ValorChave], [ValorAntigo], [ValorNovo]) VALUES ('2025-05-05 13:55:23', '/gedtaarquivosadd', '-1', 'A', 'GED_TAArquivos', 'Justificativa', '', '', 'teste');SELECT scope_identity() AS [Id] (bc429797)
2025-05-05T13:55:23.4561432-03:00 4000002d-0003-fe00-b63f-84710c7967bb [DBG] INSERT INTO [dbo].[SIS_TAAuditoria] ([Data], [Script], [Usuario], [Acao], [Tabela], [Campo], [ValorChave], [ValorAntigo], [ValorNovo]) VALUES ('2025-05-05 13:55:23', '/gedtaarquivosadd', '-1', 'A', 'GED_TAArquivos', 'Situacao', '', '', 0);SELECT scope_identity() AS [Id] (d8539bcc)
2025-05-05T13:55:23.4566216-03:00 4000003c-000b-ff00-b63f-84710c7967bb [ERR] An unhandled exception has occurred while executing the request. (48a46595)
System.IO.FileNotFoundException: Could not find file 'C:\Sistemas\Plataforma\.net\QA\anima\bin\Debug\net6.0\publish\wwwroot\uploads\temp__d7ff62b1-33fc-bd6f-e856-2169d35446b8\GED_TAArquivos\x_Arquivo\PROVA CANGURU 2024.pdf'.
File name: 'C:\Sistemas\Plataforma\.net\QA\anima\bin\Debug\net6.0\publish\wwwroot\uploads\temp__d7ff62b1-33fc-bd6f-e856-2169d35446b8\GED_TAArquivos\x_Arquivo\PROVA CANGURU 2024.pdf'
at System.IO.File.Move(String sourceFileName, String destFileName, Boolean overwrite)
at System.IO.File.Move(String sourceFileName, String destFileName)
at ASPNETMaker2023.Models.anima.MoveFile(String oldFile, String newFile) in C:\Sistemas\Plataforma\.net\QA\anima\Models\aspnetfn.cs:line 4603
at ASPNETMaker2023.Models.anima.FixUploadFileNames(DbField field) in C:\Sistemas\Plataforma\.net\QA\anima\Models\aspnetfn.cs:line 4140
at ASPNETMaker2023.Models.anima.GedTaArquivosAddBase.AddRow(Dictionary`2 rsold) in C:\Sistemas\Plataforma\.net\QA\anima\Models\GedTaArquivosAdd.cs:line 1913
at ASPNETMaker2023.Models.anima.GedTaArquivosAddBase.Run() in C:\Sistemas\Plataforma\.net\QA\anima\Models\GedTaArquivosAdd.cs:line 644
at ASPNETMaker2023.Controllers.HomeController.GedTaArquivosAdd() in C:\Sistemas\Plataforma\.net\QA\anima\Controllers\GedTaArquivosController.cs:line 28
at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeFilterPipelineAsync>g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
at Microsoft.AspNetCore.Authorization.Policy.AuthorizationMiddlewareResultHandler.HandleAsync(RequestDelegate next, HttpContext context, AuthorizationPolicy policy, PolicyAuthorizationResult authorizeResult)
at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)
at Marvin.Cache.Headers.HttpCacheHeadersMiddleware.HandleResponse(HttpContext httpContext)
at Marvin.Cache.Headers.HttpCacheHeadersMiddleware.Invoke(HttpContext httpContext, IValidatorValueInvalidator validatorValueInvalidator)
at Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)
2025-05-05T13:55:23.4690292-03:00 4000002d-0003-fe00-b63f-84710c7967bb [DBG] INSERT INTO [dbo].[SIS_TAAuditoria] ([Data], [Script], [Usuario], [Acao], [Tabela], [Campo], [ValorChave], [ValorAntigo], [ValorNovo]) VALUES ('2025-05-05 13:55:23', '/gedtaarquivosadd', '-1', 'A', 'GED_TAArquivos', 'Previa', '', '', 0);SELECT scope_identity() AS [Id] (79286811)
2025-05-05T13:55:23.4828435-03:00 4000002d-0003-fe00-b63f-84710c7967bb [DBG] INSERT INTO [dbo].[SIS_TAAuditoria] ([Data], [Script], [Usuario], [Acao], [Tabela], [Campo], [ValorChave], [ValorAntigo], [ValorNovo]) VALUES ('2025-05-05 13:55:23', '/gedtaarquivosadd', '-1', 'A', 'GED_TAArquivos', 'Ativo', '', '', true);SELECT scope_identity() AS [Id] (676d873a)
2025-05-05T13:55:23.4968352-03:00 4000003d-000b-ff00-b63f-84710c7967bb [INF] Checking for conditional GET/HEAD. (7e2efcb6)
2025-05-05T13:55:23.4969379-03:00 4000003d-000b-ff00-b63f-84710c7967bb [INF] Not valid - no If-None-Match or If-Modified-Since headers. (00e43d04)
2025-05-05T13:55:23.4969893-03:00 4000003d-000b-ff00-b63f-84710c7967bb [INF] Don't generate 304 - Not Modified. Continue. (b6a7d473)
2025-05-05T13:55:23.4970486-03:00 4000003d-000b-ff00-b63f-84710c7967bb [INF] Checking for conditional PUT/PATCH. (bf3cf9be)
2025-05-05T13:55:23.4970797-03:00 4000003d-000b-ff00-b63f-84710c7967bb [INF] Not valid - method isn't PUT or PATCH. (671cb4f2)
2025-05-05T13:55:23.4970938-03:00 4000003d-000b-ff00-b63f-84710c7967bb [INF] Don't generate 412 - Precondition Failed. Continue. (08bc4a18)
2025-05-05T13:55:23.4979200-03:00 40000011-0009-fd00-b63f-84710c7967bb [INF] Checking for conditional GET/HEAD. (7e2efcb6)
2025-05-05T13:55:23.4980233-03:00 40000011-0009-fd00-b63f-84710c7967bb [INF] Not valid - no If-None-Match or If-Modified-Since headers. (00e43d04)
2025-05-05T13:55:23.4980571-03:00 40000011-0009-fd00-b63f-84710c7967bb [INF] Don't generate 304 - Not Modified. Continue. (b6a7d473)
2025-05-05T13:55:23.4980800-03:00 40000011-0009-fd00-b63f-84710c7967bb [INF] Checking for conditional PUT/PATCH. (bf3cf9be)
2025-05-05T13:55:23.4981015-03:00 40000011-0009-fd00-b63f-84710c7967bb [INF] Not valid - method isn't PUT or PATCH. (671cb4f2)
2025-05-05T13:55:23.4981220-03:00 40000011-0009-fd00-b63f-84710c7967bb [INF] Don't generate 412 - Precondition Failed. Continue. (08bc4a18)
2025-05-05T13:55:23.4983071-03:00 4000002d-0003-fe00-b63f-84710c7967bb [DBG] INSERT INTO [dbo].[SIS_TAAuditoria] ([Data], [Script], [Usuario], [Acao], [Tabela], [Campo], [ValorChave], [ValorAntigo], [ValorNovo]) VALUES ('2025-05-05 13:55:23', '/gedtaarquivosadd', '-1', 'A', 'GED_TAArquivos', 'RegistradoPor', '', '', -1);SELECT scope_identity() AS [Id] (9a4f08cb)
2025-05-05T13:55:23.5174314-03:00 4000002d-0003-fe00-b63f-84710c7967bb [DBG] INSERT INTO [dbo].[SIS_TAAuditoria] ([Data], [Script], [Usuario], [Acao], [Tabela], [Campo], [ValorChave], [ValorAntigo], [ValorNovo]) VALUES ('2025-05-05 13:55:23', '/gedtaarquivosadd', '-1', 'A', 'GED_TAArquivos', 'DataRegistro', '', '', '2025-05-05');SELECT scope_identity() AS [Id] (58df5173)
2025-05-05T13:55:23.5361940-03:00 4000002d-0003-fe00-b63f-84710c7967bb [DBG] INSERT INTO [dbo].[SIS_TAAuditoria] ([Data], [Script], [Usuario], [Acao], [Tabela], [Campo], [ValorChave], [ValorAntigo], [ValorNovo]) VALUES ('2025-05-05 13:55:23', '/gedtaarquivosadd', '-1', 'A', 'GED_TAArquivos', 'AtualizadoPor', '', '', -1);SELECT scope_identity() AS [Id] (3f017ff3)
2025-05-05T13:55:23.5530565-03:00 4000002d-0003-fe00-b63f-84710c7967bb [DBG] INSERT INTO [dbo].[SIS_TAAuditoria] ([Data], [Script], [Usuario], [Acao], [Tabela], [Campo], [ValorChave], [ValorAntigo], [ValorNovo]) VALUES ('2025-05-05 13:55:23', '/gedtaarquivosadd', '-1', 'A', 'GED_TAArquivos', 'DataAtualizacao', '', '', '2025-05-05 13:55:00');SELECT scope_identity() AS [Id] (1d04a6d6)
2025-05-05T13:55:23.5689710-03:00 4000002d-0003-fe00-b63f-84710c7967bb [DBG] [Row_Inserted] Início do evento Row_Inserted (9da820f7)
2025-05-05T13:55:23.6004729-03:00 40000011-0009-fd00-b63f-84710c7967bb [INF] Generating expiration headers. (97875003)
2025-05-05T13:55:23.6005291-03:00 40000011-0009-fd00-b63f-84710c7967bb [INF] Expiration headers generated. Expires: Mon, 05 May 2025 16:55:23 GMT. Cache-Control: private,max-age=0,no-store,no-cache,must-revalidate. (b4fcb816)
2025-05-05T13:55:23.6005407-03:00 40000011-0009-fd00-b63f-84710c7967bb [INF] Generating Validation headers. (20c08f55)
2025-05-05T13:55:23.6006125-03:00 40000011-0009-fd00-b63f-84710c7967bb [INF] Validation headers generated. ETag: Strong, "B3C2B08B247797BCD66D0878637D0247". Last-Modified: Mon, 05 May 2025 16:55:23 GMT (9c8597d9)
2025-05-05T13:55:23.6006183-03:00 40000011-0009-fd00-b63f-84710c7967bb [INF] Generating Vary header. (c1174e38)
2025-05-05T13:55:23.6006227-03:00 40000011-0009-fd00-b63f-84710c7967bb [INF] Vary header generated: Accept, Accept-Language, Accept-Encoding. (e081213a)
2025-05-05T13:55:23.6039449-03:00 4000005e-0007-ff00-b63f-84710c7967bb [INF] Checking for conditional GET/HEAD. (7e2efcb6)
2025-05-05T13:55:23.6040061-03:00 4000005e-0007-ff00-b63f-84710c7967bb [INF] Not valid - no If-None-Match or If-Modified-Since headers. (00e43d04)
2025-05-05T13:55:23.6040267-03:00 4000005e-0007-ff00-b63f-84710c7967bb [INF] Don't generate 304 - Not Modified. Continue. (b6a7d473)
2025-05-05T13:55:23.6040402-03:00 4000005e-0007-ff00-b63f-84710c7967bb [INF] Checking for conditional PUT/PATCH. (bf3cf9be)
2025-05-05T13:55:23.6040501-03:00 4000005e-0007-ff00-b63f-84710c7967bb [INF] Not valid - method isn't PUT or PATCH. (671cb4f2)
2025-05-05T13:55:23.6040583-03:00 4000005e-0007-ff00-b63f-84710c7967bb [INF] Don't generate 412 - Precondition Failed. Continue. (08bc4a18)
2025-05-05T13:55:23.6293650-03:00 4000002d-0003-fe00-b63f-84710c7967bb [DBG]
SELECT IDStatus
FROM CAD_TPPolos
WHERE IDPolo = 1897
(354c5003)
2025-05-05T13:55:23.6406146-03:00 4000002d-0003-fe00-b63f-84710c7967bb [DBG] [Row_Inserted] Perfil Analista (b96b7d5f)
2025-05-05T13:55:23.6406848-03:00 4000002d-0003-fe00-b63f-84710c7967bb [DBG] [Row_Inserted] GarantirUnicidadeArquivoPrincipal (b35eef67)
2025-05-05T13:55:23.6407481-03:00 4000002d-0003-fe00-b63f-84710c7967bb [DBG] [Row_Inserted] sql: {sql} (d2655600)
2025-05-05T13:55:23.6408523-03:00 4000002d-0003-fe00-b63f-84710c7967bb [DBG] UPDATE GED_TAArquivos SET Tipo = 0 WHERE IDDocumento = 16483 AND IDPolo = 1897 AND IDArquivo <> 10916 (0f0caf01)
2025-05-05T13:55:23.6567129-03:00 4000002d-0003-fe00-b63f-84710c7967bb [DBG] [Row_Inserted] AtualizarDocumentoPrincipal (5c9ed35d)
2025-05-05T13:55:23.6568656-03:00 4000002d-0003-fe00-b63f-84710c7967bb [DBG]
UPDATE GED_TADocumentos
SET Restricao = 0
, Analise = 1
, Status = 0
, Carregado = 1
, Situacao = 0
, Validade = NULL, Indeterminado = 1
WHERE IDDocumento = 16483 (b0a4d658)
2025-05-05T13:55:23.6753113-03:00 4000002d-0003-fe00-b63f-84710c7967bb [DBG]
SELECT IDGlobal
FROM CAD_TPPolos
WHERE IDPolo = 1897
(06514ac0)
2025-05-05T13:55:23.6834768-03:00 4000003d-000b-ff00-b63f-84710c7967bb [INF] Generating expiration headers. (97875003)
2025-05-05T13:55:23.6835388-03:00 4000003d-000b-ff00-b63f-84710c7967bb [INF] Expiration headers generated. Expires: Mon, 05 May 2025 16:55:23 GMT. Cache-Control: private,max-age=0,no-store,no-cache,must-revalidate. (b4fcb816)
2025-05-05T13:55:23.6835564-03:00 4000003d-000b-ff00-b63f-84710c7967bb [INF] Generating Validation headers. (20c08f55)
2025-05-05T13:55:23.6836869-03:00 4000003d-000b-ff00-b63f-84710c7967bb [INF] Validation headers generated. ETag: Strong, "C91A0A5A8FC5FC5C9EF2372D09CCD864". Last-Modified: Mon, 05 May 2025 16:55:23 GMT (a387aefe)
2025-05-05T13:55:23.6837166-03:00 4000003d-000b-ff00-b63f-84710c7967bb [INF] Generating Vary header. (c1174e38)
2025-05-05T13:55:23.6837437-03:00 4000003d-000b-ff00-b63f-84710c7967bb [INF] Vary header generated: Accept, Accept-Language, Accept-Encoding. (e081213a)
2025-05-05T13:55:23.6875669-03:00 4000002d-0003-fe00-b63f-84710c7967bb [DBG]
SELECT COUNT(*)
FROM CAD_TPPolos
WHERE IDGlobal = '10102'
AND IDPolo <> 1897
AND MarcaPrincipal = 0
AND IDStatus <> 2 -- Apenas polos ativos
(6959cbdd)
2025-05-05T13:55:23.6986831-03:00 4000002d-0003-fe00-b63f-84710c7967bb [DBG] [Row_Inserted] Não há necessidade de sincronizar arquivos. (006b603a)
2025-05-05T13:55:23.6989337-03:00 4000002d-0003-fe00-b63f-84710c7967bb [DBG] EXEC spupd_ChangeState (916f871d)
2025-05-05T13:55:23.7267301-03:00 4000005e-0007-ff00-b63f-84710c7967bb [INF] Generating expiration headers. (97875003)
2025-05-05T13:55:23.7268332-03:00 4000005e-0007-ff00-b63f-84710c7967bb [INF] Expiration headers generated. Expires: Mon, 05 May 2025 16:55:23 GMT. Cache-Control: private,max-age=0,no-store,no-cache,must-revalidate. (b4fcb816)
2025-05-05T13:55:23.7268634-03:00 4000005e-0007-ff00-b63f-84710c7967bb [INF] Generating Validation headers. (20c08f55)
2025-05-05T13:55:23.7269798-03:00 4000005e-0007-ff00-b63f-84710c7967bb [INF] Validation headers generated. ETag: Strong, "3358285AA8D6FBD3C3FBEA087A850241". Last-Modified: Mon, 05 May 2025 16:55:23 GMT (be516993)
2025-05-05T13:55:23.7270036-03:00 4000005e-0007-ff00-b63f-84710c7967bb [INF] Generating Vary header. (c1174e38)
2025-05-05T13:55:23.7270173-03:00 4000005e-0007-ff00-b63f-84710c7967bb [INF] Vary header generated: Accept, Accept-Language, Accept-Encoding. (e081213a)
2025-05-05T13:55:24.0765043-03:00 4000002d-0003-fe00-b63f-84710c7967bb [DBG] [Row_Inserted] Finalização do evento Row_Inserted (a4c3e902)