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

alt text

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, List1 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's gravatar image

sbarahona ♦♦
(suspended)
accept rate: 32%


Cambia el trigger de la tabla rys.ccs_candidatos_concurso por esto:


    declare @codale_notif varchar(50)
    set @codale_notif = '075E8B0A-9897-4C40-B1B5-BA134676805C'

    insert into cfg.nta_notif_temp_alerta(nta_codale, nta_notificando)
    select @codale_notif, ccs_codigo
      from inserted
     where exists (select null from cfg.ale_alertas where ale_codigo = @codale_notif);

    delete cfg.nta_notif_temp_alerta
     where nta_codale = @codale_notif and exists(select 1 from deleted where nta_notificando = ccs_codigo)

link

answered 16 Jul '14, 17:18

glemus's gravatar image

glemus
(suspended)
accept rate: 51%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Evolution en BitBucket

En este sitio puede acceder al código fuente, centro de descargas y reportar bugs, propuestas y mejoras para Evolution.

Evolution en JIRA

En este sitio puedes sugerir nueva funcionalidad para Evolution, o puedes votar por la funcionalidad ya propuesta por otros usuarios.

Tags:

×14
×5
×1

Asked: 09 Jun '14, 17:14

Seen: 2,403 times

Last updated: 16 Jul '14, 17:18

[Acerca de] [Preguntas Frecuentes] [Privacidad] [Soporte] [Contacto]
Copyright 2013-2018. Asesores en Informática