Steps to reproduce
- Create and set up a moodle site.
- Login as admin.
- Go to Site administration > Course > Groups > Group custom fields.
- Add a category and create a custom field (I created an optional checkbox).
- Create a course.
- Add a group.
- Create an activity (for instance, an assignment).
- Create a backup for the activity and download the backup file.
- Create and set up another moodle site.
- Create a course.
- Restore the activity from backup file
- The error is shown below:
Can't find data record in database table groups.
Debug info: SELECT * FROM {groups} WHERE id = ?
[array (
0 => 2,
)]
Error code: invalidrecordĀ
The issue is the backup file has groupcustomfield, but not group.
- duplicates
-
MDL-82220 Error "Can't find data record in database table groups" when restoring activity to the other site using group custom field.
-
- Closed
-