Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-82219

Error "Can't find data record in database table groups" when restoring activity to the other site using group custom field.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 4.3.6, 4.4.2, 4.5
    • Backup, Groups
    • None
    • MOODLE_403_STABLE, MOODLE_404_STABLE, MOODLE_405_STABLE

      Steps to reproduce

      1. Create and set up a moodle site.
      2. Login as admin.
      3. Go to Site administration > Course > Groups > Group custom fields.
      4. Add a category and create a custom field (I created an optional checkbox).
      5. Create a course.
      6. Add a group.
      7. Create an activity (for instance, an assignment).
      8. Create a backup for the activity and download the backup file.
      9. Create and set up another moodle site.
      10. Create a course.
      11. Restore the activity from backup file
      12. 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.

            Unassigned Unassigned
            tomotsuyuki Tomo Tsuyuki
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.