Just wondering if there was any update on this? Doesn't seem to be any resolution posted in the link to the similar issue as well.
Graph Create Teams error with custom Template French-ca Tenant
I guess the graph POST /teams fonctionnality only has been tested with en-us tenants as a french tenant Graph API will come back with an error saying : Failed to execute Templates backend request CreateTeamFromTemplateRequest. A template with id '[id]' and locale 'en-US' could not be found.
when the param "template@odata.bind" is set to our custom id template. As we can deduce, its looking into an en-us side and our resources are not en-us!
12 answers
Sort by: Most helpful
-
-
Micael Levesque 46 Reputation points
2020-11-24T15:45:42.427+00:00 @Deva-MSFT
here are the details, im using graph explorer :the "guid" is one of template guid inside our admin Teams :
https://graph.microsoft.com/v1.0/teamsPOST request :
{
"template@odata.bind": "https://graph.microsoft.com/v1.0/teamsTemplates('guid')",
"displayName": "test",
"description": "test",
"visibility": "Private",
"channels": [
{"displayName":"Test1","isFavoriteByDefault":true,"description":"Test1."},
{"displayName":"Test2","isFavoriteByDefault":true,"description":"Test2."}
]
}Callback
{
"error": {
"code": "BadRequest",
"message": "Failed to execute Templates backend request CreateTeamFromTemplateRequest. Request Url: https://teams.microsoft.com/fabric/amer/templates/api/team, Request Method: POST, Response Status Code: BadRequest, Response Headers: Strict-Transport-Security: max-age=2592000\r\nx-operationid: 747605855f81eb44a57cb6531357b059\r\nx-telemetryid: 00-747605855f81eb44a57cb6531357b059-a6f1c8f90dee0b4e-00\r\nX-MSEdge-Ref: Ref A: 846D93705DBB4194AD974B5A9913974D Ref B: BLUEDGE0219 Ref C: 2020-11-24T13:30:05Z\r\nDate: Tue, 24 Nov 2020 13:30:04 GMT\r\n, ErrorMessage : {\"errors\":[{\"message\":\"A template with id 'guid' and locale 'en-US' could not be found.\"}],\"operationId\":\"747605855f81eb44a57cb6531357b059\"}",
"innerError": {
"date": "2020-11-24T13:30:05",
"request-id": "3fbf9c58-b233-4fae-a53b-d8ff6a92bd54",
"client-request-id": "985ba9db-becc-e560-5ec4-19e2e60383f5"
}
}
} -
Deva-MSFT 2,256 Reputation points Microsoft Employee
2020-11-24T17:58:32.177+00:00 Thanks for the update. I am sharing the related thread on this.
-
Ananto123 11 Reputation points
2021-04-01T14:56:51.69+00:00 I second that.
I'm using a custom Teams Template with UK locale.
Looking at the related thread I don't see any updates for this particular error - "A template with id 'blah' and locale 'en-US' could not be found. The one in that thread is about visibility and inheritance.
REQUEST:
{
"template@odata.bind": "https://graph.microsoft.com/v1.0/teamsTemplates('116146c2-09ba-4eb9-a8e5-65aaccd29345')",
"displayName": "UK Pony Club",
"description": "UK Pony Club - Team Template Locale set to United Kingdom when created in Teams Admin Centre"
}RESPONSE:
{
"error": {
"code": "BadRequest",
"message": "Failed to execute Templates backend request CreateTeamFromTemplateRequest. Request Url: https://teams.microsoft.com/fabric/emea/templates/api/team, Request Method: POST, Response Status Code: BadRequest, Response Headers: Strict-Transport-Security: max-age=2592000x-operationid: 431d8c990c902f4c9535dd99d28ae2fax-telemetryid: 00-431d8c990c902f4c9535dd99d28ae2fa-34996d3611dd694c-00X-MSEdge-Ref: Ref A: 2B64A90353BD4FB1AAC0419E48A5B225 Ref B: DB3EDGE1519 Ref C: 2021-04-01T14:32:27ZDate: Thu, 01 Apr 2021 14:32:27 GMT, ErrorMessage : {\"errors\":[{\"message\":\"A template with id '116146c2-09ba-4eb9-a8e5-65aaccd29345' and locale 'en-US' could not be found.\",\"errorCode\":\"Unknown\"}],\"operationId\":\"431d8c990c902f4c9535dd99d28ae2fa\"}",
"innerError": {
"date": "2021-04-01T14:32:27",
"request-id": "00db6fa4-241e-40f3-bd3d-2861de850d49",
"client-request-id": "09455185-48d8-d0be-d1f3-9eca7447c10e"
}
}
} -
Arne Brödel 11 Reputation points
2021-04-10T18:12:34.697+00:00 Same error here in germany. Any solutions to this?
errors":[{"message":"A template with id '6375a45b-d0df-457c-bae1-f6ae3ba482b4' and locale 'en-US' could not be found.