Dentro del concurso de seleccion, en la parte de Inscripcion de candidatos, realizo una busqueda, cuando le doy click al boton de cruz verde para agregar al candidato me muestra este error
Sucede lo mismo con candidatos internos y externos
Ahorita no tengo configurada ninguna alerta
Aqui esta el detalle del error:
System.Data.UpdateException: An error occurred while updating the entries.
See the inner exception for details. --->
System.Data.SqlClient.SqlException: The INSERT statement conflicted with the FOREIGN KEY constraint "fk_cfgale_cfgnta".
The conflict occurred in database "EvoData", table "cfg.ale_alertas", column 'ale_codigo'.
The statement has been terminated.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning()
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlDataReader.ConsumeMetaData()
at System.Data.SqlClient.SqlDataReader.get_MetaData()
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
at System.Data.Mapping.Update.Internal.DynamicUpdateCommand.Execute(UpdateTranslator translator, EntityConnection connection, Dictionary2 identifierValues, List
1 generatedValues)
at System.Data.Mapping.Update.Internal.UpdateTranslator.Update(IEntityStateManager stateManager, IEntityAdapter adapter)
--- End of inner exception stack trace ---
at System.Data.Mapping.Update.Internal.UpdateTranslator.Update(IEntityStateManager stateManager, IEntityAdapter adapter)
at System.Data.Objects.ObjectContext.SaveChanges(SaveOptions options)
at Aseinfo.VH4.Data.AppDataContext.SaveChanges(SaveOptions options)
at Aseinfo.Infrastructure.Base.Entity.GenericEntityRepository.SaveChanges()
at Aseinfo.Infrastructure.Base.Entity.EntityServiceBase`2.SaveChanges()
at Aseinfo.VH4.Reclutamiento.Controllers.ConcursoSeleccionController.AgregarCandidato(Int32 id, Int32 candidatoId, TipoCandidatoConcurso tipo)
asked
09 Jun '14, 17:14
sbarahona ♦♦
(suspended)
accept rate:
32%