PnP-Tools icon indicating copy to clipboard operation
PnP-Tools copied to clipboard

Enable-PnPResponsiveUI : Value does not fall within the expected range

Open aortiz-arroyo opened this issue 7 years ago • 4 comments

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?

aortiz-arroyo avatar Aug 03 '17 15:08 aortiz-arroyo

Hi @aortiz-arroyo, could you check the following prerequisites ?

  1. Download the PowerShell package in accordance with SP2016 : PnP Powershell 2016
  2. Install the package
  3. Ensure that the account used to Provisione your SharePoint site is Site Collection Administrator
  4. 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

Laul0 avatar Aug 05 '17 16:08 Laul0

Hi @aortiz-arroyo, your issue is fixed ?

Laul0 avatar Oct 11 '17 09:10 Laul0

@VesaJuvonen could you set Responsive Label plz ?

Laul0 avatar Jan 14 '18 17:01 Laul0

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
}

"

crogado avatar Jul 20 '18 09:07 crogado