Buen dia:
Un usuario, estaba queriendo agregar un participante "pablo" a su curso en dotlrn, al parecer no existía en la base de datos el usuario "pablo" que se deseaba agregar al curso, y dio este mensaje.
Qué sucede ? Tengo que trabajar algo en la bd ?
Database operation "0o1row" failed
(exception ERROR, "ERROR: llave duplicada viola restricción unique acs_object_rels_un")
CONTEXT: sentencia SQL: insert into acs_rels (rel_id, rel_type, objetc_id_one,object_id_two) values ($1, $2, $3, $4)
PL/pgSQL function "acs_rel_new" line 25 at SQL statment
PL/pgSQL function "membership_rel_new" line 11 at assignment
PL/pgSQL function"dotlrn_member_rel_new" line 12 at assignment
PL/pgSQL function "dotlrn_student_rel_new" line 12 assignment
")
pqerror was: "ERROR: llave duplicada viola restricción unique acs_object_rels_un"
CONTEXT: sentencia SQL: insert into acs_rels (rel_id, rel_type, object_id_one, object_id_two) values ( $1 , $2 , $3, $4)
PL/pgSQL function "acs_rel_new" line 25 at SQL statment
PL/pgSQL function "membership_rel_new" line 11 at assignment
PL/pgSQL function"dotlrn_member_rel_new" line 12 at assignment
PL/pgSQL function "dotlrn_student_rel_new" line 12 assignment
"
(Status of PQexec call: PGRES_FATAL_ERROR)
SQL:
select dotlrn_student_rel_new(NULL,'dotlrn_student_rel',NULL,'3125740','227487','needs approval','3047796','190.53.37.100')
Gracias