[BUG] Get-PnPExternalUser fails with message "SyntexFeatureLevelOnOff flight is not enabled"
Reporting an Issue or Missing Feature
When calling Get-PNPExternalUser, it fails with the following error
SyntextFeatureLevelOnOff flight is not enabled
This was working 3 days ago, and stop working this morning. I've tested on a couple of tenants.
Expected behavior
Expected to see a list of external users.
Actual behavior
Fails with error message: "SyntextFeatureLevelOnOff flight is not enabled"
Steps to reproduce behavior
Connect-PnpOnline -Url:"https://<sharepoint>-admin.sharepoint.com -PnPManagementShell
Get-PnPExternalUser
What is the version of the Cmdlet module you are running?
2.2.0
Which operating system/environment are you running PnP PowerShell on?
- [x] Windows
- [ ] Linux
- [ ] MacOS
- [x] Azure Cloud Shell
- [ ] Azure Functions
- [ ] Other : please specify
I am getting this same error message when using the Disable-PnPSharingForNonOwnersOfSite command as well.
Same error, started today:
Facing same error in our tenant.
But its working in local development tenant.
Please suggest how to solve this issue
Facing same error in our tenant.
But its working in local development tenant.
Please suggest how to solve this issue
We are also experiencing the same issue. Can someone from MS guide us to resolve it or any workaround would work too? pls. help ASAP
Same issue with the SharePoint PowerShell command:
Get-SPOExternalUser
This problem starts with creating a new TeamSite with the following command:
New-PnPSite -Type TeamSite -Title ($TeamName) -Alias $TeamSPOName -Description $ProjectName -Owners $ObjectOwner -Wait
This currently results in an SPO site without the sharing options at the permissions section and most of the site settings.
Subsequently other commands like below fail with the SyntexFeatureLevelOnOff message.
Set-SPOSite -Identity $SiteCollURL -DisableSharingForNonOwners
Same issue with:
Set-PnPSite
Same issue with Set-PnPSite -Sharing ... (fails in 2.2.0 and also 1.3.0).
same here....
` LogS "General page configuration"
#Region How to share Setting
LogC "Set Sharing to 'Allow sharing only for owners'..."
Set-PnPSite -Identity $site.Url -DisableSharingForNonOwners -Connection $connection -ErrorAction SilentlyContinue -ErrorVariable ErrPnpSiteShareing | Out-null
if($ErrPnpSiteShareing){
Exit-WithError -exitCode 6 -message $ErrPnpSiteShareing
#LogE (" " + $ErrPnpSiteShareing)
}`
fails with - SyntexFeatureLevelOnOff flight is not enabled
There was something changed in the backend.
I have one affected tenant, other tenant (same config, same module) is working fine. Maybe this correlates with Change [MC665222 - SharePoint: Page Sharing Feature]?
I opened case "Disabling Sharing for non Owners ist not working anymore. (#2308221420001847)' at Microsoft, will post updates here.
Gets same error with the below commands
Disable-PnPSharingForNonOwnersOfSite
Get-PnPSharingForNonOwnersOfSite
Get-PnPExternalUser
Set-PnPTenantSite -DisableSharingForNonOwners
//Nishkalank
Same here!, not only with the PNP module but also with Microsoft.Online.SharePoint.PowerShell
Same here!, not only with the PNP module but also with Microsoft.Online.SharePoint.PowerShell
Found the issue, A total of 4 commands are having same issue. Will create a new Pull request soon.
Thanks, Nishkalank
@NishkalankBezawada, you say that you've found the issue, can you elaborate? I ask because this is not just an issue with the PnP.PowerShell module, so I'm not understanding how this can be fixed with a PR just for this module.
@NishkalankBezawada, you say that you've found the issue, can you elaborate? I ask because this is not just an issue with the PnP.PowerShell module, so I'm not understanding how this can be fixed with a PR just for this module.
Line number 32 is causing the issue.
//Nish
Hello @pmatthews05 @rdicicco @andreyp115 @sabadraprasham @joaquinajenjo @Sharepoint2k22 @enthusol @FlorianKornmueller @Nicomadreja87
I have just created a PR 3357 which will fix the issue.
Thanks, Nishkalank Bezawada
Thank you Nishkalank. Can you include a note here on how we would go about getting access to this updated module? Should we just download the latest version of the PnPPowerShell Module?
Thank you Nishkalank. Can you include a note here on how we would go about getting access to this updated module? Should we just download the latest version of the PnPPowerShell Module?
Hello,
Once the PR is merged into the Dev branch, the updated module will be available on the latest nightly release. I'm not sure when the PR will be merged but yes I'll keep you posted here.
Thanks, Nishkalank Bezawada
@NishkalankBezawada Thank you for the quick solution, great work! Would it be possible to add a fix for PnP.PowerShell 1.12.0 as well?
We have a lot of customers that rely on PnP.PowerShell 1.x.x because the module is used on runbooks in Azure Automation Accounts with PowerShell 5.1 (because 7.1 and 7.2 are still in preview).
@NishkalankBezawada Thank you for the quick solution, great work! Would it be possible to add a fix for PnP.PowerShell 1.12.0 as well?
We have a lot of customers that rely on PnP.PowerShell 1.x.x because the module is used on runbooks in Azure Automation Accounts with PowerShell 5.1 (because 7.1 and 7.2 are still in preview).
This applies to many of our customers too who are running 1.12.0 in Azure Automation for the same reasons. Will there by a fix for 1.12.0?
From my point of view the problem SyntexFeatureLevelOnOff-Problem starts a bit earlier with New-PnPSite
Sites created through New-PnPSite (PnP.Powershell 1.12.0) are not fully functional:
The settings https://TENANT.sharepoint.com/sites/SITE/_layouts/15/settings.aspx show only part of the settings:
The settings should look like this:
The same problem with the sharing permissions:
They look like this after using New-PnPSite
They should look like this:
When I manually create a TeamSite through the SharePoint Admin-Center I can then use commands like Set-SPOSite -Identity $SiteCollURL -DefaultLinkToExistingAccess $true or Disable-PnPSharingForNonOwnersOfSite without having the SyntexFeatureLevelOnOff-Problem.
Does anybody else experience this behaviour with New-PnPSite?