error/moodle/invalidrecord
From MoodleDocs
To fix this problem, try running Cron repeatedly until you see the message "Running clean-up tasks..." near the top of the output. See the Can not find data record in database table context discussion on the Using Moodle forum for further advice.
See also
- MDL-38314 - report of the error occurring on Manage repositories page