---------------------------------------- Timestamp: 5/20/2026 8:23:11 AM Message: System.Data.Entity.Infrastructure.DbUpdateException: An error occurred while updating the entries. See the inner exception for details. ---> System.Data.Entity.Core.UpdateException: An error occurred while updating the entries. See the inner exception for details. ---> System.Data.SqlClient.SqlException: Violation of PRIMARY KEY constraint 'PK_XmlFacturaElectronica'. Cannot insert duplicate key in object 'dbo.XmlFacturaElectronica'. The duplicate key value is (59908). The statement has been terminated. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at System.Data.Entity.Infrastructure.Interception.InternalDispatcher`1.Dispatch[TTarget,TInterceptionContext,TResult](TTarget target, Func`3 operation, TInterceptionContext interceptionContext, Action`3 executing, Action`3 executed) at System.Data.Entity.Infrastructure.Interception.DbCommandDispatcher.NonQuery(DbCommand command, DbCommandInterceptionContext interceptionContext) at System.Data.Entity.Core.Mapping.Update.Internal.DynamicUpdateCommand.Execute(Dictionary`2 identifierValues, List`1 generatedValues) at System.Data.Entity.Core.Mapping.Update.Internal.UpdateTranslator.Update() --- End of inner exception stack trace --- at System.Data.Entity.Core.Mapping.Update.Internal.UpdateTranslator.Update() at System.Data.Entity.Core.Objects.ObjectContext.ExecuteInTransaction[T](Func`1 func, IDbExecutionStrategy executionStrategy, Boolean startLocalTransaction, Boolean releaseConnectionOnSuccess) at System.Data.Entity.Core.Objects.ObjectContext.SaveChangesToStore(SaveOptions options, IDbExecutionStrategy executionStrategy, Boolean startLocalTransaction) at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute[TResult](Func`1 operation) at System.Data.Entity.Core.Objects.ObjectContext.SaveChangesInternal(SaveOptions options, Boolean executeInExistingTransaction) at System.Data.Entity.Internal.InternalContext.SaveChanges() --- End of inner exception stack trace --- at System.Data.Entity.Internal.InternalContext.SaveChanges() at FE.COREFE.LogicaNegocio.Base.Impl.BaseLN`1.Agregar(T entidad) in D:\Fuentes\Personal\COREFECR\FE.COREFE\FE.COREFE\Desarrollo-v4.4\FE.COREFE.LogicaNegocio\Base\Impl\BaseLN.cs:line 232 Category: General Priority: -1 EventId: 1 Severity: Information Title: Machine: PLECSYS-STUDIO- App Domain: /LM/W3SVC/4/ROOT-1-134237591046043402 ProcessId: 7132 Process Name: c:\windows\system32\inetsrv\w3wp.exe Thread Name: Win32 ThreadId:14184 Extended Properties: Clase: - FE.COREFE.LogicaNegocio.Base.Impl.BaseLN`1 Metodo: - Agregar Usuario: - IP: - 10.128.0.9 URL: - http://10.128.0.6:1605/Facturacion/FacturaElectronica/AgregarDocumento Codigo Error: - FE.COREFE-20260520-082311 ---------------------------------------- ---------------------------------------- Timestamp: 5/20/2026 8:23:11 AM Message: System.Exception: No se Puedo Guardar el XMFacturaElectronica - 55e680de-c050-4c19-b2d7-a377d0efdc3e-3-101-870914 SOCIEDAD ANONIMA- Factura Cliente = Category: General Priority: -1 EventId: 1 Severity: Information Title: Machine: PLECSYS-STUDIO- App Domain: /LM/W3SVC/4/ROOT-1-134237591046043402 ProcessId: 7132 Process Name: c:\windows\system32\inetsrv\w3wp.exe Thread Name: Win32 ThreadId:14184 Extended Properties: Clase: - FE.COREFE.LogicaNegocio.Facturacion.Impl.FacturaElectronicaLN Metodo: - ActualizarFacturaElectronica Usuario: - IP: - 10.128.0.9 URL: - http://10.128.0.6:1605/Facturacion/FacturaElectronica/AgregarDocumento Codigo Error: - FE.COREFE-20260520-082311 ---------------------------------------- ---------------------------------------- Timestamp: 5/20/2026 8:34:06 PM Message: System.NullReferenceException: Object reference not set to an instance of an object. at FE.COREFE.LogicaNegocio.Facturacion.Impl.FacturaElectronicaLN.ObtenerTelefonoId(Telefono telefono) in D:\Fuentes\Personal\COREFECR\FE.COREFE\FE.COREFE\Desarrollo-v4.4\FE.COREFE.LogicaNegocio\Facturacion\Impl\FacturaElectronicaLN.cs:line 1633 at FE.COREFE.LogicaNegocio.Facturacion.Impl.FacturaElectronicaLN.AgregarDocumentoElectronico(FacturaElectronica entidad) in D:\Fuentes\Personal\COREFECR\FE.COREFE\FE.COREFE\Desarrollo-v4.4\FE.COREFE.LogicaNegocio\Facturacion\Impl\FacturaElectronicaLN.cs:line 2979 Category: General Priority: -1 EventId: 1 Severity: Information Title: Machine: PLECSYS-STUDIO- App Domain: /LM/W3SVC/4/ROOT-1-134238023120363514 ProcessId: 13824 Process Name: c:\windows\system32\inetsrv\w3wp.exe Thread Name: Win32 ThreadId:12940 Extended Properties: Trama: - 50618052600310169635400100026010000000398100045862 3101595167 5610.0 4530.0 00100026010000000398 2026-05-18T13:32:31 INTELECTIVA COSTA RICA SOCIEDAD ANONIMA Paseo Colon 1 02 03 Paseo Colon, calle 32, avenida 0 cr_facturacion_distribucion@mail.gosocket.net CIOSA AUTOPARTES SOCIEDAD ANONIMA CIOSA AUTOPARTES SOCIEDAD ANONIMA 506 +50641081200 recepcioncr@ciosa.com 01 1 1 01 10040003 1.0 Unid Pieza BB KCS Bacon Ranch 5610.6195 5610.6195 5610.6195 5610.6195 01 13.0 729.3805 729.3805 6340.0 2 01 90030003 1.0 Unid Pieza Extra Tomate 442.4779 442.4779 442.4779 442.4779 01 13.0 57.5221 57.5221 500.0 CRC 1.0 6053.0974 0.0 0.0 0.0 0.0 0.0 0.0 0.0 6053.0973 0.0 0.0 0.0 6053.0973 0.0 6053.0973 01 08 786.9027 786.9027 0.0 02 DATAFONOS 6840.0 6840.0 Clase: - FE.COREFE.LogicaNegocio.Facturacion.Impl.FacturaElectronicaLN Metodo: - AgregarDocumentoElectronico Usuario: - IP: - 10.128.0.9 URL: - http://10.128.0.6:1605/Facturacion/FacturaElectronica/AgregarDocumento Codigo Error: - FE.COREFE-20260520-203406 ----------------------------------------