Modern Team Site Creation - Error - Suddenly the response for Site URL is Null

%3CLINGO-SUB%20id%3D%22lingo-sub-321428%22%20slang%3D%22en-US%22%3EModern%20Team%20Site%20Creation%20-%20Error%20-%20Suddenly%20the%20response%20for%20Site%20URL%20is%20Null%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-321428%22%20slang%3D%22en-US%22%3E%3CP%3EModern%20site%20creation%20is%20suddenly%20failing%20today%20due%20to%20response%20coming%20back%20with%20Null.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3CU%3EDetails%3A%3C%2FU%3E%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3BWe%20have%20been%20using%20SharePoint%E2%80%99s%20REST%20API%20call%20to%20create%20a%20modern%20team%20site%20and%20the%20solution%20has%20been%20running%20for%20almost%20a%20year%20now%20without%20any%20problem.%20The%20API%20used%3A%20%3CSTRONG%3E%2F_api%2FGroupSiteManager%2FCreateGroupEx%20(HTTP%2F1.1)%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EReference%3A%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FSharePoint%2FPnP%2Ftree%2Fmaster%2FSamples%2FProvisioning.Modern.Console.RESTAPI%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CSTRONG%3Ehttps%3A%2F%2Fgithub.com%2FSharePoint%2FPnP%2Ftree%2Fmaster%2FSamples%2FProvisioning.Modern.Console.RESTAPI%3C%2FSTRONG%3E%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20solution%20was%20discussed%20with%20Microsoft%20an%20year%20ago%20recommended%20by%20MS%20as%20a%20supported%20solution.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3CU%3EIssue%2FRoot%20cause%3A%3C%2FU%3E%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EThis%20morning%20we%20have%20noticed%20that%20the%20API%20call%20returns%20following%20response%20with%20Null%20for%20site%20url%3A%3C%2FP%3E%3CP%3E%3CSTRONG%3E%7B%22%40odata.context%22%3A%22*****%3CA%20href%3D%22https%3A%2F%2Faurecongroup.sharepoint.com%2Fsites%2Faureconassets%2F_api%2F%24metadata%23Microsoft.SharePoint.Portal.GroupSiteInfo%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%2F_api%2F%24metadata%23Microsoft.SharePoint.Portal.GroupSiteInfo%3C%2FA%3E%22%2C%22DocumentsUrl%22%3Anull%2C%22ErrorMessage%22%3Anull%2C%22GroupId%22%3A%2210033797-4f17-489f-9446-4d65b756585f%22%2C%22SiteStatus%22%3A1%2C%22SiteUrl%22%3Anull%7D%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3E%26nbsp%3B%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EUltimately%20the%20site%20will%20get%20created%20but%20it%20takes%20fair%20amount%20of%20time%20and%20our%20process%20will%20error%20out%20due%20to%20null%20response.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20directions%20is%20really%20helpful.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%2C%3C%2FP%3E%3CP%3EVishwa%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-708396%22%20slang%3D%22en-US%22%3ERe%3A%20Modern%20Team%20Site%20Creation%20-%20Error%20-%20Suddenly%20the%20response%20for%20Site%20URL%20is%20Null%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-708396%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F66255%22%20target%3D%22_blank%22%3E%40Vishwanatha%20Nayak%3C%2FA%3E%26nbsp%3BI%20am%20receiving%20this%20error%20just%20now.%20Looks%20like%20it%20started%20appearing%20since%20this%20morning.%20We%20can't%20rely%20on%20this%20API%20I%20believe.%20But%20there%20is%20no%20replacement%20at%20the%20moment%20to%20create%20O365%20group%20from%20SharePoint.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-719530%22%20slang%3D%22en-US%22%3ERe%3A%20Modern%20Team%20Site%20Creation%20-%20Error%20-%20Suddenly%20the%20response%20for%20Site%20URL%20is%20Null%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-719530%22%20slang%3D%22en-US%22%3E%3CP%3ESame%20issue%20using%20pnp%20CSOM.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAbout%20half%20of%20our%20teamsites%2C%20created%20from%20a%20signal%20from%20our%20CRM%2C%20are%20failing%20since%20between%20the%2019th%20and%2021th%20of%20june.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Contributor

Modern site creation is suddenly failing today due to response coming back with Null.

 

Details:

 We have been using SharePoint’s REST API call to create a modern team site and the solution has been running for almost a year now without any problem. The API used: /_api/GroupSiteManager/CreateGroupEx (HTTP/1.1)

 

Reference: https://github.com/SharePoint/PnP/tree/master/Samples/Provisioning.Modern.Console.RESTAPI

 

This solution was discussed with Microsoft an year ago recommended by MS as a supported solution.

 

Issue/Root cause:

This morning we have noticed that the API call returns following response with Null for site url:

{"@odata.context":"*****/_api/$metadata#Microsoft.SharePoint.Portal.GroupSiteInfo","DocumentsUrl":null,"ErrorMessage":null,"GroupId":"10033797-4f17-489f-9446-4d65b756585f","SiteStatus":1,"SiteUrl":null}

 

Ultimately the site will get created but it takes fair amount of time and our process will error out due to null response.

 

Any directions is really helpful.

 

Regards,

Vishwa

2 Replies
Highlighted

@Vishwanatha Nayak I am receiving this error just now. Looks like it started appearing since this morning. We can't rely on this API I believe. But there is no replacement at the moment to create O365 group from SharePoint. 

Highlighted

Same issue using pnp CSOM.

 

About half of our teamsites, created from a signal from our CRM, are failing since between the 19th and 21th of june.