The given key was not present in the dictionary.

Creada por Jose Rios, Modificado el Mar., 17 Jun. a las 1:49 P. M. por Jose Rios

Este error se presento con MODELO -NÓMINA -PROD


El usuario reporta el siguiente error:



Validando en el seq, se encontró el siguiente error:



10 Aug 2023 18:43:45.952
 The given key was not present in the dictionary.
AzureWebAppsName
LOCAL
DatabaseInstance
HDPSQLFAC01P\MPFESQLAON
DatabaseName
SCFDI_MODELONominaPROD
Environment
Production
ExceptionStackTraceHash
2517411342
IdentificadorAgente
[HDPCFDI26]-D:\inetpub\wwwroot\SCFD_EMIBASE_WS_NOMINA_V5\bin
MachineName
HDPCFDI26
NombreServicio
ProcesamientoEmision
NombreSistema
MODELONOM
SourceContext
Pegaso.SCFD.Emision.Base.Procesamiento.Builders.Version40.ProcCFD.GenerarCFDv40.Dummy
Version
5.1.3.0308

System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.   at System.ThrowHelper.ThrowKeyNotFoundException()   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)   at Pegaso.SCFD.Emision.Base.Procesamiento.Builders.Version40.ProcCFD.GenerarCFDv40.<>c.<.cctor>b__71_2(Exception ex, TimeSpan _, Int32 retryCount, Context context) in E:\DevOpsServiceGIT\Source\Repos\Emision2\SCFD_EMIBASE_PROCESAMIENTO\Builders\Version40\ProcCFD\GenerarCFDv40.cs:line 63   at Polly.Retry.RetryPolicy.<Implementation>b__5_0[TResult](DelegateResult`1 outcome, TimeSpan timespan, Int32 retryCount, Context ctx) in /_/src/Polly/Retry/RetryPolicy.cs:line 41   at Polly.Retry.RetryEngine.Implementation[TResult](Func`3 action, Context context, CancellationToken cancellationToken, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates`1 shouldRetryResultPredicates, Action`4 onRetry, Int32 permittedRetryCount, IEnumerable`1 sleepDurationsEnumerable, Func`4 sleepDurationProvider) in /_/src/Polly/Retry/RetryEngine.cs:line 76   at Polly.Retry.RetryPolicy.Implementation[TResult](Func`3 action, Context context, CancellationToken cancellationToken) in /_/src/Polly/Retry/RetryPolicy.cs:line 35   at Polly.Policy.Implementation(Action`2 action, Context context, CancellationToken cancellationToken) in /_/src/Polly/Policy.SyncNonGenericImplementation.cs:line 18   at Polly.Policy.Execute(Action`2 action, Context context, CancellationToken cancellationToken) in /_/src/Polly/Policy.ExecuteOverloads.cs:line 73   at Pegaso.SCFD.Emision.Base.Procesamiento.Builders.Version40.ProcCFD.GenerarCFDv40.CompletarGeneracion(CFDComprobante comprobante, XElement xmlCfdi, Int64 idUsuario, CFDClienteAddenda clienteAddenda, IEnumerable`1 correos, Nullable`1 idPreComprobanteActualizar, Nullable`1 nuevoEstatusPrecomprobante) in E:\DevOpsServiceGIT\Source\Repos\Emision2\SCFD_EMIBASE_PROCESAMIENTO\Builders\Version40\ProcCFD\GenerarCFDv40.cs:line 157





De primera instancia, pareciera un error de sellado, sin embargo valdiando la petición del usuario se detecta que en el  request/RNO, el campo  RFC RECEPTOR contiene una serie de espacioss, lo que ocasiona el error








¿Le fue útil este artículo?

¡Qué bueno!

Gracias por sus comentarios

¡Sentimos mucho no haber sido de ayuda!

Gracias por sus comentarios

¡Díganos cómo podemos mejorar este artículo!

Seleccione al menos una de las razones
La verificación de CAPTCHA es obligatoria.

Comentarios enviados

Agradecemos su iniciativa, e intentaremos corregir el artículo