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

Pnp#728 - Added retry when creation status is 3 and the error message is blank #740

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/lib/PnP.Framework/Sites/SiteCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,8 @@ private static async Task<ClientContext> CreateTeamSiteViaSPOAsync(ClientContext
/*
* BEGIN : Changes to address the SiteStatus=Provisioning scenario
*/
if (Convert.ToInt32(responseJson["SiteStatus"]) == 1 && string.IsNullOrWhiteSpace(Convert.ToString(responseJson["ErrorMessage"])))
if ((Convert.ToInt32(responseJson["SiteStatus"]) == 1 || Convert.ToInt32(responseJson["SiteStatus"]) == 3)
&& string.IsNullOrWhiteSpace(Convert.ToString(responseJson["ErrorMessage"])))
{
var spOperationsMaxRetryCount = maxRetryCount;
var spOperationsRetryWait = retryDelay;
Expand Down