AnsweredAssumed Answered

Web Service: Bad Request when creating sub site from template

Question asked by renatois on Aug 20, 2015

Hi, I have a workflow NINTEX Online in my test environement it works really well creating a site from a custom template. In the client environement I have a « BadRequest » (Response Content: {"error":{"code":"-2147024809, System.ArgumentException","message":{"lang":"fr-FR","value":"Fichier ou arguments non valides pour le modèle de site « {8897D197-64A6-485E-877A-8F288981E194} ».\u000d\u000aParameter name: WebTemplate"})

 

I used that tutorial as an example : https://www.dmcinfo.com/latest-thinking/blog/id/8661/create-site-from-template-using-sharepoint-2013-workflow

 

 

WORKFLOW OK (environement ABC)

Date Occurred

Event Type

User ID

Description

Outcome

8/20/2015 4:35 PM

Comment

Renato ISKANDARIAN

https://abc.sharepoint.com/sites/test-nintex/_api/web/webinfos/add

8/20/2015 4:35 PM

Comment

Renato ISKANDARIAN

Request Headers: {"Accept":"application\/json;odata=verbose","Content-Type":"application\/json;odata=verbose"}

8/20/2015 4:35 PM

Comment

Renato ISKANDARIAN

Request Dictionary: {"parameters":{"__metadata":{"Type":"SP.WebInfoCreation"},"Url":"d","Title":"d","Description":"<div class=\"ExternalClassD7BD21FE70B647CCAE7C9F3DEFFADD3A\"><p>d<\/p><\/div>","Language":1033,"WebTemplate":"{477A403A-2F6C-4077-AF25

8/20/2015 4:35 PM

Comment

Renato ISKANDARIAN

Response Content: {"d":{"__metadata":{"id":"https:\/\/abc.sharepoint.com\/sites\/test-nintex\/_api\/web\/webinfos\/add","uri":"https:\/\/abc.sharepoint.com\/sites\/test-nintex\/_api\/web\/webinfos\/add","type":"SP.WebInformation"},"Configuratio

8/20/2015 4:35 PM

Comment

Renato ISKANDARIAN

Response Code: OK

 

WORKFLOW ERROR (environement Client)

Date de survenance

 

Type d'événement

 

ID de l'utilisateur

 

Description

 

Résultat

 

20/08/2015 17:50

Commentaire

Administrateur SharePoint

GF: https://client.sharepoint.com/sites/conseil/test-inet/_api/web/webinfos/add

20/08/2015 17:50

Commentaire

Administrateur SharePoint

Request Headers: {"Accept":"application\/json;odata=verbose","Content-Type":"application\/json;odata=verbose"}

20/08/2015 17:50

Commentaire

Administrateur SharePoint

Request Dictionary: {"parameters":{"__metadata":{"Type":"SP.WebInfoCreation"},"Url":"h-h","Title":"h","Description":"Description du site h-h","Language":1033,"WebTemplate":"{8897D197-64A6-485E-877A-8F288981E194}","UseUniquePermissions":false}}

20/08/2015 17:50

Commentaire

Administrateur SharePoint

Response Content: {"error":{"code":"-2147024809, System.ArgumentException","message":{"lang":"fr-FR","value":"Fichier ou arguments non valides pour le modèle de site « {8897D197-64A6-485E-877A-8F288981E194} ».\u000d\u000aParameter name: WebTemplate"}

20/08/2015 17:50

Commentaire

Administrateur SharePoint

Response Code: BadRequest

 

Thanks

Outcomes