Replies: 3 comments
-
Please set tracing to "debug" using Set-PnPTraceLog and provide further information. This will allow the community to better understand the issue. |
Beta Was this translation helpful? Give feedback.
-
Here is what I got in the log: |
Beta Was this translation helpful? Give feedback.
-
Same here as well, will have to move this to discussions since this an issue with the environment itself and not the cmdlet. |
Beta Was this translation helpful? Give feedback.
-
I have a script that creates and configures a new sharepoint site. Part of the process creates multiple document libraries, and I create separate sharepoint groups to manage the permissions of each.
I do this via the following command:
$group = New-PnPSiteGroup -Connection $Connection -Name "$groupTitle" -Site "$SiteFullURL" -PermissionLevels Read -ErrorAction Continue -ErrorVariable result
It will randomly fail for no apparent reason:
New-PnPSiteGroup: /$SCRIPTPATH/MasterSiteCreateScript.ps1:414:22
Line |
414 | … $group = New-PnPSiteGroup -Connection $Connection -Name "$groupTit …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Unknown Error
Expected behavior
I expect the group to be created
Actual behavior
I get the above error.
Steps to reproduce behavior
I have no idea how to reproduce it. It's completely random. I have put it in a loop to retry the operation several times before giving up. After several attempts, it eventually works.
What is the version of the Cmdlet module you are running?
Confirmed in 1.10.0 and 1.11.0
Which operating system/environment are you running PnP PowerShell on?
Beta Was this translation helpful? Give feedback.
All reactions