This only errors the first time, as the laboratoryId is created and set ok, but the server logs an error and no json is returned at the moment. If you want to re-test, you need to clear the laboratoryId, eg
UPDATE Person SET laboratoryId = NULL WHERE personId=13000;
NB I don't know how to trigger this code from Synchweb, only via the python, but it obviously did happen, as logged in the ticket.
JIRA ticket: LIMS-1002
Summary:
When updating a user to have a laboratory when previously they didn't have one, although the laboratory is created, an error is logged.
Changes:
To test: