La opción de Administración solicitudes de capacitación da un error no controlado cuando se intenta eliminar una solicitud que tiene detalle de empleados asociados. El error que da es:

System.Data.Entity.Core.UpdateException: An error occurred while updating the entries. See the inner exception for details. ---> System.Data.SqlClient.SqlException: The DELETE statement conflicted with the REFERENCE constraint "fk_capsol_1_capdps". The conflict occurred in database "EvoData", table "cap.des_det_emp_solicitud", column 'des_codsol'.The statement has been terminated. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) at

asked 17 Aug '17, 17:52

Juan%20Carlos%20Soria's gravatar image

Juan Carlos Soria
1.1k174179185
accept rate: 41%


Juan Carlos, solo comentarle que en efecto no existe la validación de las llaves foráneas, se creó el issue EVO-3382 para solventar el problema.

link

answered 17 Aug '17, 18:21

glemus's gravatar image

glemus
(suspended)
accept rate: 51%

Tal vez en este caso, por ser un detalle de la solicitud, no habría que validar, sino que simplemente eliminar el detalle

(17 Aug '17, 18:22) Juan Carlos Soria Juan%20Carlos%20Soria's gravatar image

Claro, para ese caso si se agregará el delete cascade

(17 Aug '17, 18:24) glemus glemus's gravatar image
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:

×26
×7

Asked: 17 Aug '17, 17:52

Seen: 1,169 times

Last updated: 17 Aug '17, 18:24

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