Closed dragos5436 closed 1 month ago
Copied from https://github.com/microsoft/o365-moodle/issues/2609#issuecomment-2379385854:
Microsoft group names can take 256 character, while the Moodle database table to store the group cache can store 255. If you try to save group cache for a group with 256 characters in the name, you will see the error.
Hi @dragos5436
The fix to the issue has been included in the release from yesterday. Please check it out.
Thank you again for reporting the issue.
Regards, Lai
Hi Lai,
Thank you very much for fixing it.
Regards, Dragos
Hi there,
I am creating a new issue as instructed by @weilai-irl on https://github.com/microsoft/o365-moodle/issues/2609.
Original message:
We have been experiencing the same Cohort sync task failure as above for a while now. It seems to be a scheduled task supposed to run every day. We discovered it after upgrading to Moodle 4.4.1 last week (an update in 4.4 pushes notifications to us now about these task failures). However, after checking the logs, it looks like the task has been failing every day since July 1st for us, so probably not related to the upgrade itself. Here is a failure message example (personal data has been removed):
Could you please investigate the cause of this task failure and provide a solution for fixing it?
Thank you.
Moodle version: 4.4.1 Microsoft plugins version:
PHP version: 8.1 Database version: MySQL 8.0.32
To answer your question @weilai-irl, yes, I have edited the email addresses listed after '1 =>' in the array above. I'm assuming these would go under the field 'name' in the mdl_local_o365_groups_cache table. I just checked the original error message and the total length of this entry is 256 characters.