You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After running the cron process to sync Moodle courses with Microsoft Teams, I get this result (for Postgresql):
Execute scheduled task: Create user groups in the Microsoft 365 package (local_o365\task\coursesync)
... started 13:07:00. Current memory use 34.0 MB. Debugging increased temporarily due to faildelay of 61440 Start syncing courses. Tenant has education license: yes Restore groups that have been soft-deleted...
Processing courses without groups...
... All courses have groups created. Processing courses without teams...
... All courses have teams created. Updating teams cache...
... Building existing teams cache records
... Updating teams cache records
... Deleting old teams cache records Cleaning up teams connection records... .
.. used 111066 dbqueries ... used 575.33459806442 seconds Scheduled task failed: Create user groups in the Microsoft 365 package (local_o365\task\coursesync), Database write error Debug info: number of parameters must be between 0 and 65535 DELETE FROM mdl_local_o365_objects WHERE type = 'group' AND subtype IN ('classteam', 'teamfromgroup') AND objectid NOT IN (VALUES ($1::text),($2::text),($3::text),($4::text),($5::text),($6::text),($7::text),($8::text),($9::text),($10::text),($11::text),"
the problem is this code:
/local/o365/classes/feature/coursesync/main.php
public function cleanup_teams_connections() {
[...]
// If there are records in teams cache, delete teams connection records with object IDs not in the cache.
[$teamobjectidsql, $params] = $DB->get_in_or_equal($teamobjectids, SQL_PARAMS_QM, 'param', false);
$DB->delete_records_select('local_o365_objects',
"type = 'group' AND subtype IN ('classteam', 'teamfromgroup') AND objectid {$teamobjectidsql}", $params);
The text was updated successfully, but these errors were encountered:
After running the cron process to sync Moodle courses with Microsoft Teams, I get this result (for Postgresql):
the problem is this code:
/local/o365/classes/feature/coursesync/main.php
The text was updated successfully, but these errors were encountered: