Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Course is not being connected to a team when it has an owner. #2383

Closed
SamGodbehere opened this issue Oct 2, 2023 · 1 comment
Closed

Course is not being connected to a team when it has an owner. #2383

SamGodbehere opened this issue Oct 2, 2023 · 1 comment

Comments

@SamGodbehere
Copy link

Hi,

Up until recently we've been able to sync Moodle with Teams without issue. However we're suddenly see the following from the scheduled task "Sync Moodle courses to Teams":

Execute scheduled task: Sync Moodle courses to Microsoft Teams (local_o365\task\coursesync)
... started 10:18:31. Current memory use 2.9 MB.
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...
... Processing course #17085
...... Skip creating team from group with ID 6b0a2014-ce42-48eb-a09b-5f4ad45e4c33 for course #17085. Reason: No owner.
... Processing course #17129
...... Skip creating team from group with ID ca72c650-efe7-4f2a-a849-357e081a7730 for course #17129. Reason: No owner.
... Processing course #17165
...... Skip creating team from group with ID edf2252d-fd5d-4636-816f-4087ab4639c4 for course #17165. Reason: No owner.
... Processing course #17182
...... Skip creating team from group with ID f513ca27-2636-4618-a466-45b3c1ee3363 for course #17182. Reason: No owner.
... Processing course #17239
...... Skip creating team from group with ID c47e8af5-e783-4b01-86bc-6d555f35b6ee for course #17239. Reason: No owner.
... Processing course #17241
...... Skip creating team from group with ID e3cc2948-2ce8-4ffd-8a8e-080325b5be75 for course #17241. Reason: No owner.
... Processing course #17242
...... Skip creating team from group with ID 3d2fa2b2-cabb-4fe3-add2-ad0164230e87 for course #17242. Reason: No owner.
... Processing course #17265
...... Skip creating team from group with ID 02d25d78-6455-4409-901c-7fc9d6b9452a for course #17265. Reason: No owner.
... Processing course #17269
...... Skip creating team from group with ID afa160af-b09b-4293-b034-7dc8d57cbc9c for course #17269. Reason: No owner.
... Processing course #17297
...... Skip creating team from group with ID b0387f9a-ea06-4645-bbcf-39d256f6e092 for course #17297. Reason: No owner.
... Processing course #17330
...... Skip creating team from group with ID fa423572-e781-4985-a931-4fb14f4258be for course #17330. Reason: No owner.
... Processing course #17342
...... Skip creating team from group with ID e20f0181-e248-4864-94b2-ab0f2cb61779 for course #17342. Reason: No owner.
... Processing course #17346
...... Skip creating team from group with ID 1fcf5dc7-1804-4496-8ae1-e483ffe586ba for course #17346. Reason: No owner.
... Processing course #17349
...... Skip creating team from group with ID db89755d-fedc-4cf3-a786-3230ad52cf20 for course #17349. Reason: No owner.
... Processing course #17351
...... Skip creating team from group with ID c46bb6e4-a8f2-403c-9f5b-b7a7e4ee45e9 for course #17351. Reason: No owner.
... Processing course #17392
...... Skip creating team from group with ID 6aeeb838-414e-4d30-a9b1-be81a7c0935e for course #17392. Reason: No owner.
... Processing course #17406
...... Skip creating team from group with ID 9a7b766f-d092-49bb-96f9-a638cb533794 for course #17406. Reason: No owner.
... Processing course #17428
...... Skip creating team from group with ID 36f33165-6a29-484c-8d5f-a424d79d059a for course #17428. Reason: No owner.
... Processing course #17438
...... Skip creating team from group with ID 213ab463-0557-4447-8955-c1eaeb19151c for course #17438. Reason: No owner.
... Processing course #17439
...... Skip creating team from group with ID 4584eaff-ce85-4116-ab40-e86b98034407 for course #17439. Reason: No owner.
... Processing course #17440
...... Skip creating team from group with ID 32f45f92-9adb-4078-ba20-a3e30fc5d4fa for course #17440. Reason: No owner.
... Processing course #17441
...... Skip creating team from group with ID 9435241f-3a4d-4aa7-b45a-0fbd82da9d23 for course #17441. Reason: No owner.
... Processing course #17442
...... Skip creating team from group with ID 2b0381c9-5d44-4616-b993-772990183c9f for course #17442. Reason: No owner.
... Processing course #17446
...... Skip creating team from group with ID 62ceae24-c9c7-4353-a1ac-6d3d9d522a4e for course #17446. Reason: No owner.
... Processing course #17490
...... Skip creating team from group with ID 0c7c176a-d153-40b2-aff6-746b936e3dcd for course #17490. Reason: No owner.
... Processing course #17609
...... Skip creating team from group with ID 7cc7f286-9a0b-4466-a12f-f9e15de630b8 for course #17609. Reason: No owner.
... Processing course #17610
...... Skip creating team from group with ID 7f8e0aed-3edc-40d5-912b-5d9d5e1c13c9 for course #17610. Reason: No owner.
... Processing course #17615
...... Skip creating team from group with ID e46ca31f-40c9-4725-8d38-37ba3799cad2 for course #17615. Reason: No owner.
... Processing course #18090
...... Skip creating team from group with ID d6fb6dd5-0871-4c95-96c4-89667ec91731 for course #18090. Reason: No owner.
... Processing course #17731
...... Skip creating team from group with ID 64dd86b0-a116-4506-9c58-5b6dd5ff9a61 for course #17731. Reason: No owner.
... Processing course #17732
...... Skip creating team from group with ID 6197a731-0ded-4181-9568-d69db3551f8c for course #17732. Reason: No owner.
... Processing course #17751
...... Skip creating team from group with ID 1f54f8c9-0630-4998-b5df-7a31f3e9c845 for course #17751. Reason: No owner.
... Processing course #17773
...... Skip creating team from group with ID 7589f11d-df26-4ab5-94ea-24c1e2a381da for course #17773. Reason: No owner.
... Processing course #17774
...... Skip creating team from group with ID 01d9b99a-b9a8-478c-8fda-03f934264f4d for course #17774. Reason: No owner.
... Processing course #17775
...... Skip creating team from group with ID 96246e2b-2613-41ba-9ea8-1faccc581179 for course #17775. Reason: No owner.
... Processing course #17777
...... Skip creating team from group with ID 491cb441-ab55-43e9-95f4-a863501e23fd for course #17777. Reason: No owner.
... Processing course #17781
...... Skip creating team from group with ID b4c18333-2482-401a-92f5-7f767fa47ef6 for course #17781. Reason: No owner.
... Processing course #17783
...... Skip creating team from group with ID 858b8c9b-c37e-481c-b5cc-b5ca73f88788 for course #17783. Reason: No owner.
... Processing course #17784
...... Skip creating team from group with ID 30c48d54-e930-484e-ae62-ec7d726b3944 for course #17784. Reason: No owner.
... Processing course #17785
...... Skip creating team from group with ID 56a268ba-5074-4fa0-8dc4-96632bc4b96c for course #17785. Reason: No owner.
... Processing course #17786
...... Skip creating team from group with ID 5620951c-c12e-46b3-90e7-459c0a5aeee3 for course #17786. Reason: No owner.
... Processing course #17812
...... Skip creating team from group with ID 1ab95db3-1bf8-453b-a176-e13cff0669dc for course #17812. Reason: No owner.
... Processing course #17813
...... Skip creating team from group with ID 9d6a3a89-802e-47e7-9378-654ea4bab4d0 for course #17813. Reason: No owner.
... Processing course #17826
...... Skip creating team from group with ID ed6f9f4c-d7ba-4165-a84b-c922f7988d6c for course #17826. Reason: No owner.
... Processing course #17831
...... Skip creating team from group with ID fd51ab63-85df-4139-bdf1-aa7569c30c1a for course #17831. Reason: No owner.
... Processing course #17832
...... Skip creating team from group with ID 7c6f8f57-021b-4a37-ab74-256739d34524 for course #17832. Reason: No owner.
... Processing course #17834
...... Skip creating team from group with ID 1d6b83f4-c8b2-433f-a6bd-cf16b37745ba for course #17834. Reason: No owner.
... Processing course #17836
...... Skip creating team from group with ID b8665d4d-fbb0-4a07-93f7-dadffd8d04fb for course #17836. Reason: No owner.
... Processing course #17838
...... Skip creating team from group with ID 99a21fd3-4324-423a-9187-7febd8b8fce9 for course #17838. Reason: No owner.
... Processing course #17839
...... Skip creating team from group with ID 1515302d-ee0c-46b6-849e-f427c5845627 for course #17839. Reason: No owner.
... Processing course #17842
...... Skip creating team from group with ID 212bae08-dfd1-4ee1-8a5a-fcfacc746871 for course #17842. Reason: No owner.
... Processing course #17845
...... Skip creating team from group with ID 4c402f79-5318-45c7-9a68-0f40e3472201 for course #17845. Reason: No owner.
... Processing course #17846
...... Skip creating team from group with ID 0e7f7b82-898b-47d4-ad27-4a30ab232fb3 for course #17846. Reason: No owner.
... Processing course #17849
...... Skip creating team from group with ID 5547fc78-d728-4f3f-a99c-f1b645cf322e for course #17849. Reason: No owner.
... Processing course #18002
...... Skip creating team from group with ID c66eab6f-1f7f-40d9-9fe8-5296e05d77fd for course #18002. Reason: No owner.
... Processing course #18048
...... Skip creating team from group with ID 61d8f78e-9748-4c39-bf55-c451eb2ea458 for course #18048. Reason: No owner.
... Processing course #18055
...... Skip creating team from group with ID f5c47532-e2af-4743-8f5b-d410aee2b60f for course #18055. Reason: No owner.
... Processing course #18106
...... Skip creating team from group with ID 2e71eb67-9a06-4a9d-9de1-5bd6f069e8dc for course #18106. Reason: No owner.
... Processing course #18323
...... Skip creating team from group with ID f20dd900-bac1-4d1d-abda-fddd027ee37f for course #18323. Reason: No owner.
... Processing course #18107
...... Skip creating team from group with ID af3cd33f-26d2-4b23-a2ad-b0cfefc3ee57 for course #18107. Reason: No owner.
... Processing course #18108
...... Skip creating team from group with ID f5e4a9d8-b4c2-41de-9c22-edcc00c194c8 for course #18108. Reason: No owner.
... Processing course #18111
...... Skip creating team from group with ID 0c0d0137-2681-456d-adf8-6a71db773632 for course #18111. Reason: No owner.
... Processing course #18112
...... Skip creating team from group with ID 45a56e2a-0e28-4bdd-938c-4d2b033c11ba for course #18112. Reason: No owner.
... Processing course #18113
...... Skip creating team from group with ID 37949c9a-6e12-4a4b-9b58-928bf072ad7a for course #18113. Reason: No owner.
... Processing course #18114
...... Skip creating team from group with ID ce2754d0-79af-43b4-a3be-39563cb9ff3e for course #18114. Reason: No owner.
... Processing course #18126
...... Skip creating team from group with ID ecb51397-7e24-4111-ad0b-8faa9e1a22d7 for course #18126. Reason: No owner.
... Processing course #18173
...... Skip creating team from group with ID 734c32eb-60f9-4a77-8ff7-8ab52dbf705b for course #18173. Reason: No owner.
... Processing course #18174
...... Skip creating team from group with ID 012066c6-54e1-4c6a-b0f1-f9f03b442963 for course #18174. Reason: No owner.
... Processing course #18189
...... Skip creating team from group with ID f77fd417-b86c-476d-8f7f-c40a1979dede for course #18189. Reason: No owner.
... Processing course #18190
...... Skip creating team from group with ID a25d2681-6d60-4718-a808-45015017e3e1 for course #18190. Reason: No owner.
... Processing course #18191
...... Skip creating team from group with ID 2fc91001-0f6a-4860-847d-7f6ea57956e7 for course #18191. Reason: No owner.
... Processing course #18192
...... Skip creating team from group with ID 5d71d920-9fdd-4a1a-9952-b73b62af9fb8 for course #18192. Reason: No owner.
... Processing course #18198
...... Skip creating team from group with ID 86769e4b-eede-4550-a820-c7ce0ce645e7 for course #18198. Reason: No owner.
... Processing course #18199
...... Skip creating team from group with ID 3eae1005-690f-491e-b411-96981a8e9430 for course #18199. Reason: No owner.
... Processing course #18214
...... Skip creating team from group with ID 80011e90-5b31-47f5-9b90-d9fa504abe72 for course #18214. Reason: No owner.
... Processing course #18216
...... Skip creating team from group with ID f66d364e-c69d-4ad7-b5aa-361f7416a86d for course #18216. Reason: No owner.
... Processing course #18226
...... Skip creating team from group with ID e3e483de-c6f2-4f67-9651-0fc8e73fd6bb for course #18226. Reason: No owner.
... Processing course #18233
...... Skip creating team from group with ID b29bf608-2d46-4322-858a-d1a978b6a5a8 for course #18233. Reason: No owner.
... Processing course #18234
...... Skip creating team from group with ID af57536f-d2b3-4730-9739-2afa74ccbfc1 for course #18234. Reason: No owner.
... Processing course #18275
...... Skip creating team from group with ID 88c7b028-0232-4ce5-a08d-c47dc1db2668 for course #18275. Reason: No owner.
... Processing course #18284
...... Skip creating team from group with ID 21f69986-7445-4c9d-8bc1-b12159f4e007 for course #18284. Reason: No owner.
... Processing course #18296
...... Skip creating team from group with ID 07158f18-d044-436f-bda7-2e459dfc9af1 for course #18296. Reason: No owner.
... Processing course #18297
...... Skip creating team from group with ID 9081a464-00fe-4ab8-9dfa-0695468001d0 for course #18297. Reason: No owner.
... Processing course #18312
...... Skip creating team from group with ID ca76508f-bd44-42c3-b832-9dbeb0995045 for course #18312. Reason: No owner.
... Processing course #18313
...... Skip creating team from group with ID 29228994-7420-4abe-b68c-61b41e1aee1d for course #18313. Reason: No owner.
... Processing course #18314
...... Skip creating team from group with ID 91a75e37-514e-4482-b1e4-44538cbd102f for course #18314. Reason: No owner.
... Processing course #18460
...... Adding 4 owners and 10 members to group with ID 05288735-96a4-4662-8113-0a470aae94e6
......... Error: Error in API call: Resource 'e5d13990-b5d1-44ef-9e65-7e7c79b5958c' does not exist or one of its queried reference-property objects are not present.
......... Retry #1
......... Error: Error in API call: Resource 'e5d13990-b5d1-44ef-9e65-7e7c79b5958c' does not exist or one of its queried reference-property objects are not present.
......... Retry #2
......... Error: Error in API call: Resource 'e5d13990-b5d1-44ef-9e65-7e7c79b5958c' does not exist or one of its queried reference-property objects are not present.
......... Retry #3
......... Error: Error in API call: Resource 'e5d13990-b5d1-44ef-9e65-7e7c79b5958c' does not exist or one of its queried reference-property objects are not present.
......... Retry #4
......... Error: Error in API call: Resource 'e5d13990-b5d1-44ef-9e65-7e7c79b5958c' does not exist or one of its queried reference-property objects are not present.
......... Retry #5
......... Error: Error in API call: Resource 'e5d13990-b5d1-44ef-9e65-7e7c79b5958c' does not exist or one of its queried reference-property objects are not present.
......... Error: Error in API call: Resource 'e5d13990-b5d1-44ef-9e65-7e7c79b5958c' does not exist or one of its queried reference-property objects are not present.
......... Retry #1
......... Error: Error in API call: Resource 'e5d13990-b5d1-44ef-9e65-7e7c79b5958c' does not exist or one of its queried reference-property objects are not present.
......... Retry #2
......... Error: Error in API call: Resource 'e5d13990-b5d1-44ef-9e65-7e7c79b5958c' does not exist or one of its queried reference-property objects are not present.
......... Retry #3
......... Error: Error in API call: Resource 'e5d13990-b5d1-44ef-9e65-7e7c79b5958c' does not exist or one of its queried reference-property objects are not present.
......... Retry #4
......... Error: Error in API call: Resource 'e5d13990-b5d1-44ef-9e65-7e7c79b5958c' does not exist or one of its queried reference-property objects are not present.
......... Retry #5
......... Error: Error in API call: Resource 'e5d13990-b5d1-44ef-9e65-7e7c79b5958c' does not exist or one of its queried reference-property objects are not present.
......... Finished adding owners and members to group.
...... Creating class team from education group with ID 05288735-96a4-4662-8113-0a470aae94e6 for course #18460
......... Could not create class team from education group. Reason: Error in API call: Failed to execute Templates backend request CreateTeamFromGroupWithTemplateRequest. Request Url: https://teams.microsoft.com/fabric/emea/templates/api/groups/05288735-96a4-4662-8113-0a470aae94e6/team, Request Method: PUT, Response Status Code: BadRequest, Response Headers: Strict-Transport-Security: max-age=2592000
x-operationid: c02232424d3540c3a779d770931a7696
x-telemetryid: 00-c02232424d3540c3a779d770931a7696-557618cf2d92975c-01
X-MSEdge-Ref: Ref A: B7636D2F8A9F4FACB9F904D29F73084A Ref B: HEL01EDGE1006 Ref C: 2023-10-02T09:20:25Z
Date: Mon, 02 Oct 2023 09:20:24 GMT
, ErrorMessage : {"errors":[{"message":"Group 05288735-96a4-4662-8113-0a470aae94e6 must have one or more owners in order to create a Team.","errorCode":"Unknown"}],"operationId":"c02232424d3540c3a779d770931a7696"}
......... Retry #1
......... Could not create class team from education group. Reason: Error in API call: Failed to execute Templates backend request CreateTeamFromGroupWithTemplateRequest. Request Url: https://teams.microsoft.com/fabric/emea/templates/api/groups/05288735-96a4-4662-8113-0a470aae94e6/team, Request Method: PUT, Response Status Code: BadRequest, Response Headers: Strict-Transport-Security: max-age=2592000
x-operationid: 2e3ec00d69df40f0a8b26ac2ac51974f
x-telemetryid: 00-2e3ec00d69df40f0a8b26ac2ac51974f-c7d86ed5ec311357-01
X-MSEdge-Ref: Ref A: D073F1EC64F1492BB98A57DFB291D334 Ref B: AMS231020512037 Ref C: 2023-10-02T09:20:35Z
Date: Mon, 02 Oct 2023 09:20:35 GMT
, ErrorMessage : {"errors":[{"message":"Group 05288735-96a4-4662-8113-0a470aae94e6 must have one or more owners in order to create a Team.","errorCode":"Unknown"}],"operationId":"2e3ec00d69df40f0a8b26ac2ac51974f"}
......... Retry #2
......... Could not create class team from education group. Reason: Error in API call: Failed to execute Templates backend request CreateTeamFromGroupWithTemplateRequest. Request Url: https://teams.microsoft.com/fabric/emea/templates/api/groups/05288735-96a4-4662-8113-0a470aae94e6/team, Request Method: PUT, Response Status Code: BadRequest, Response Headers: Strict-Transport-Security: max-age=2592000
x-operationid: 7fba37d0cbb741779720421244410cb6
x-telemetryid: 00-7fba37d0cbb741779720421244410cb6-5e112fe79640dec9-01
X-MSEdge-Ref: Ref A: 9685183548114F4391E35DB7F3CA18E9 Ref B: AMS231020614037 Ref C: 2023-10-02T09:20:46Z
Date: Mon, 02 Oct 2023 09:20:45 GMT
, ErrorMessage : {"errors":[{"message":"Group 05288735-96a4-4662-8113-0a470aae94e6 must have one or more owners in order to create a Team.","errorCode":"Unknown"}],"operationId":"7fba37d0cbb741779720421244410cb6"}
......... Retry #3
......... Could not create class team from education group. Reason: Error in API call: Failed to execute Templates backend request CreateTeamFromGroupWithTemplateRequest. Request Url: https://teams.microsoft.com/fabric/emea/templates/api/groups/05288735-96a4-4662-8113-0a470aae94e6/team, Request Method: PUT, Response Status Code: BadRequest, Response Headers: Strict-Transport-Security: max-age=2592000
x-operationid: b3c5b4740f22495cb5967565ca964936
x-telemetryid: 00-b3c5b4740f22495cb5967565ca964936-28e46acc357b7b2d-01
X-MSEdge-Ref: Ref A: 76F8564A8DF9491D8B664F6B01E346DA Ref B: DB3EDGE2906 Ref C: 2023-10-02T09:20:56Z
Date: Mon, 02 Oct 2023 09:20:56 GMT
, ErrorMessage : {"errors":[{"message":"Group 05288735-96a4-4662-8113-0a470aae94e6 must have one or more owners in order to create a Team.","errorCode":"Unknown"}],"operationId":"b3c5b4740f22495cb5967565ca964936"}
......... Retry #4
......... Could not create class team from education group. Reason: Error in API call: Failed to execute Templates backend request CreateTeamFromGroupWithTemplateRequest. Request Url: https://teams.microsoft.com/fabric/emea/templates/api/groups/05288735-96a4-4662-8113-0a470aae94e6/team, Request Method: PUT, Response Status Code: BadRequest, Response Headers: Strict-Transport-Security: max-age=2592000
x-operationid: ac3a2c98f3f5444b9540bf6b1ea556d4
x-telemetryid: 00-ac3a2c98f3f5444b9540bf6b1ea556d4-dc14da3b27b8a94d-01
X-MSEdge-Ref: Ref A: A06C725FB9C945489D8009F99A9F3C02 Ref B: AMS231020615027 Ref C: 2023-10-02T09:21:06Z
Date: Mon, 02 Oct 2023 09:21:06 GMT
, ErrorMessage : {"errors":[{"message":"Group 05288735-96a4-4662-8113-0a470aae94e6 must have one or more owners in order to create a Team.","errorCode":"Unknown"}],"operationId":"ac3a2c98f3f5444b9540bf6b1ea556d4"}
......... Retry #5
......... Could not create class team from education group. Reason: Error in API call: Failed to execute Templates backend request CreateTeamFromGroupWithTemplateRequest. Request Url: https://teams.microsoft.com/fabric/emea/templates/api/groups/05288735-96a4-4662-8113-0a470aae94e6/team, Request Method: PUT, Response Status Code: BadRequest, Response Headers: Strict-Transport-Security: max-age=2592000
x-operationid: 3d93cfd4376e4fcabc2de5dc199e9df8
x-telemetryid: 00-3d93cfd4376e4fcabc2de5dc199e9df8-1ed945bfcade3aa8-01
X-MSEdge-Ref: Ref A: 096C80D2E50C4648A79102DAC2FF91EB Ref B: DB3EDGE3120 Ref C: 2023-10-02T09:21:17Z
Date: Mon, 02 Oct 2023 09:21:16 GMT
, ErrorMessage : {"errors":[{"message":"Group 05288735-96a4-4662-8113-0a470aae94e6 must have one or more owners in order to create a Team.","errorCode":"Unknown"}],"operationId":"3d93cfd4376e4fcabc2de5dc199e9df8"}
......... Failed to create class team from education group with ID 05288735-96a4-4662-8113-0a470aae94e6 for course #18460
... All courses have teams created.
Updating teams cache...
... Building existing teams cache records
... Updating teams cache records
... Deleting old teams cache records
... used 6135 dbqueries
... used 183.28858304024 seconds
Scheduled task complete: Sync Moodle courses to Microsoft Teams (local_o365\task\coursesync)

This is happening for courses that are confirmed to have a teacher with the "owner" role, which makes the "no owner" error confusing. This is on Moodle 4.1 with the latest version of the o365 plugin (2022112805). Does anyone have any ideas what may be causing this to happen? Let us know if you need more information from us.

@SamGodbehere
Copy link
Author

It looks like the issue was related to a user who had left as in mdl_local_0365_objects looking up "Resource 'e5d13990-b5d1-44ef-9e65-7e7c79b5958c'' belonged to that user who was manually enrolled to the course.

Removing them from the course resolved the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant