PnP-Tools
PnP-Tools copied to clipboard
Enable-PnPResponsiveUI : Value does not fall within the expected range
Hello,
I'm trying to install the PNPResponsibeUI in my SharePoint 2016 environment. When I execute the Enable-SPResonsiveUI powershell, I get the following error:
Enable-PnPResponsiveUI : Value does not fall within the expected range. At C:\Users******\Desktop\PnP-Tools-master\PnP-Tools-master\Solutions\SharePoint.UI.Responsiv
-
Enable-PnPResponsiveUI
-
~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : WriteError: (:) [Enable-PnPResponsiveUI], ServerException
- FullyQualifiedErrorId : EXCEPTION,SharePointPnP.PowerShell.Commands.Branding.EnableResponsiveUI
Any thoughts what could the issue be?
Hi @aortiz-arroyo, could you check the following prerequisites ?
- Download the PowerShell package in accordance with SP2016 : PnP Powershell 2016
- Install the package
- Ensure that the account used to Provisione your SharePoint site is Site Collection Administrator
- Open a PowerShell terminal and execute the following command line
Enable-PnPResponsiveUI
Note : If you use a second verification for authentication, generate a App Password and use it when asked for
And it should work. Keep us in touch if it doesn't work
Hi @aortiz-arroyo, your issue is fixed ?
@VesaJuvonen could you set Responsive Label plz ?
I'm facing with the same problem on SharePoint2013. I downloaded the files from: https://github.com/SharePoint/PnP-Tools/tree/master/Solutions/SharePoint.UI.Responsive and the SharePointPnPPowerShell2013.msi tool from: https://github.com/SharePoint/PnP-Tools/tree/master/Solutions/SharePoint.UI.Responsive
TargetSiteUrl: http://dev/sitecollection/mysite/
Enabling responsive UI on target site Enable-PnPResponsiveUI : Value does not fall within the expected range. At E:\SharePoint.UI.Responsive\Enable-SPResponsiveUI.ps1:52 char:9
-
Enable-PnPResponsiveUI
-
~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : WriteError: (:) [Enable-PnPResponsiveUI], Server Exception
- FullyQualifiedErrorId : EXCEPTION,SharePointPnP.PowerShell.Commands.Bran ding.EnableResponsiveUI
"else { Enable-PnPResponsiveUI
Write-Host -ForegroundColor Yellow "Uploading custom responsive UI assets to target site"
Apply-PnPProvisioningTemplate -Path .\Responsive.UI.Infrastructure.xml -Handlers Files
}
"