Skip to content

[BUG] Add-PnPGroupMember randomly fails with "User cannot be found" #2301

Answered by Studermarc
iloving asked this question in General
Discussion options

You must be logged in to vote

@iloving Could you please share your "MasterSiteCreateScript.ps1" File content? I'm wondering what exactly you are doing to throw those errors.
Like @CallumCrowley asked, if you delete a site and attempts to recreate it with the same url/alias, this won't work. Sites are soft deleted, hence it is still there but not accessible.
After creating a site, many actions are taken server side to get the site fully provisioned. This can sometimes take seconds, minutes, or even hours in worst case scenarios for some features (taxonomy is a good example). Depending on what you would like to achieve, you might need to change how you do things a bit.

Replies: 7 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by iloving
Comment options

You must be logged in to vote
2 replies
@iloving
Comment options

@CallumCrowley
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
5 participants
Converted from issue

This discussion was converted from issue #2278 on September 01, 2022 08:57.