Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to Add Learner To Learner Group #1259

Closed
dartajax opened this issue Jan 15, 2016 · 1 comment · Fixed by #1265
Closed

Unable to Add Learner To Learner Group #1259

dartajax opened this issue Jan 15, 2016 · 1 comment · Fixed by #1265
Assignees
Labels

Comments

@dartajax
Copy link
Member

There is a learner (Ilios user-id 8850) who is Class of 2017 - School of Pharmacy Student. We needed to add her to Learner Group 6697.

https://curriculum.ucsf.edu/learnergroups/6697

We found two straggler records in that group who did not have primary cohorts but did have user roles in Ilios of 1 and 4. They were added to the secondary cohort Class of 2017.

Here is a snippet that may prove to be helpful.

[2016-01-15 00:27:02] request.CRITICAL: Uncaught PHP Exception Doctrine\DBAL\Exception\UniqueConstraintViolationException: "An exception occurred while executing 'INSERT INTO ilm_session_facet_x_group (ilm_session_facet_id, group_id) VALUES (?, ?)' with params [1988, 6697]:  SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '1988-6697' for key 'PRIMARY'" at /web/ilios/current/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php line 66 {"exception":"[object] (Doctrine\\DBAL\\Exception\\UniqueConstraintViolationException(code: 0): An exception occurred while executing 'INSERT INTO ilm_session_facet_x_group (ilm_session_facet_id, group_id) VALUES (?, ?)' with params [1988, 6697]:\n\nSQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '1988-6697' for key 'PRIMARY' at /web/ilios/current/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:66, Doctrine\\DBAL\\Driver\\PDOException(code: 23000): SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '1988-6697' for key 'PRIMARY' at /web/ilios/current/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:93, PDOException(code: 23000): SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '1988-6697' for key 'PRIMARY' at /web/ilios/current/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:91)"}

We ended up manually adding the user to the group.

@stopfstedt
Copy link
Member

i am able to reproduce this. working on it...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants