question

MicaelLevesque-8228 avatar image
1 Vote"
MicaelLevesque-8228 asked DAKK answered

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!

office-teams-app-devmicrosoft-graph-teamwork
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Can you please share the response that you got (requestid, timestamp, detailed error)?

0 Votes 0 ·
MicaelLevesque-8228 avatar image
1 Vote"
MicaelLevesque-8228 answered MicaelLevesque-8228 edited

@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/teams

POST 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"
}
}
}

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Deva-MSFT avatar image
1 Vote"
Deva-MSFT answered

Thanks for the update. I am sharing the related thread on this.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AnantGurung-7239 avatar image
0 Votes"
AnantGurung-7239 answered

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"
}
}
}

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

ArneBrdel-1289 avatar image
0 Votes"
ArneBrdel-1289 answered

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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

MicaelLevesque-8228 avatar image
0 Votes"
MicaelLevesque-8228 answered

@ArneBrdel-1289 not without customization. This graph call is not working for us yet.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AnantGurung-7239 avatar image
0 Votes"
AnantGurung-7239 answered

@Deva-MSFT - this is still happening for us. Any insights on this?

If the workaround is to select "English (United States)" for the locale visibility then what exactly does this do? It says "locale is used to track the language the template is authored in" but does it have any effect on formatting etc?

88292-image.png



image.png (81.4 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

ZacharyBennett-9287 avatar image
2 Votes"
ZacharyBennett-9287 answered

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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

RohrbachLucas-4069 avatar image
0 Votes"
RohrbachLucas-4069 answered

I am having the same Error. Has there been any resolution to this?

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

JermundFromholt-1382 avatar image
0 Votes"
JermundFromholt-1382 answered

We also have same experience/error. We are using "no-nb" as locale. Any update to this?

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

DAKK avatar image
0 Votes"
DAKK answered

I'm facing the same issue. Anyone have a solution ?

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.