Apply-PnPTenantTemplate : The 'value' argument cannot be null.
Category
- [ ] Question
- [X] Bug
- [ ] Enhancement
Expected or Desired Behavior
Observed Behavior
- Brand new O365 Tenant Developer
- Have followed the instructions for provisioning the PnP Starter Kit:
- prepared my tenant for Targeted Relase for Everyone and waited over 24 hours
- added my user account to the role of global administrator and SPO admin (just to make sure)
- provisioned a new Apps Catalog site collection to host the package
- installed NodeJS LTM 10
- installed the NPM packages (YO, GULP, and Yemon for SP)
- added my user account to the Term Store admin group
- added the custom property in the User Profile
- all instructions from: https://github.com/SharePoint/sp-starter-kit
The error output is the following:
PS C:\dev\sp-starter-kit\provisioning> Apply-PnPTenantTemplate -Path starterkit.pnp -Parameters @{"PORTALURL"="/sites/demoportal"; "MARKETINGALIAS"="demomarketing"; "HRALIAS"="demohr" } -Verbose Apply-PnPTenantTemplate : The 'value' argument cannot be null. Parameter name: value At line:1 char:1
- Apply-PnPTenantTemplate -Path starterkit.pnp -Parameters @{"PORTALURL ...
+ CategoryInfo : WriteError: (:) [Apply-PnPTenantTemplate], ArgumentNullException + FullyQualifiedErrorId : EXCEPTION,SharePointPnP.PowerShell.Commands.Provisioning.Tenant.ApplyTenantTemplate
Steps to Reproduce
-
Started PowerShell session ad Admin
-
Connected to my Tenant: Connect-PnPOnline -url https://NAME.sharepoint.com/
-
Apply-PnPTenantTemplate -Path starterkit.pnp -Parameters @{"PORTALURL"="/sites/demoportal"; "MARKETINGALIAS"="demomarketing"; "HRALIAS"="demohr" } -Verbose
-
I checked my connection right after the error:
PS C:\dev\sp-starter-kit\provisioning> Get-PnPConnection
ConnectionType : O365 InitializationType : Unknown MinimalHealthScore : -1 RetryCount : 10 RetryWait : 1 PSCredential : System.Management.Automation.PSCredential TelemetryClient : Microsoft.ApplicationInsights.TelemetryClient Url : https://NAME.sharepoint.com/ TenantAdminUrl : Context : OfficeDevPnP.Core.PnPClientContext
Yes all good, I was connected and ran the Apply-PnPTenantTemplate from the provisioning folder.
All instructions to prepare the tenant were followed to the letter, I have since then removed everything and "cleared" my tenant from all previous steps, removed all packages, properties, delete site collections from the failed starter kit, removed groups, etc. and then tried again to re-run a second time observing one more time all the instructions - same result, nothing different.
Submission Guidelines
Is there a simple script to do all the provisioning instructions? Could this be provided in the future? The instructions given are simple to follow and doesn't require much from anybody but it seems impossible to reproduce consistent results for all - could we have an online tool like the: https://provisioning.sharepointpnp.com ?
Thanks for your contribution! Sharing is caring.
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
So it seems you can't skip the "optional step" for the Alpha Vantage Key :(
From the starter kit documentation my understanding about this step seemed like an optional step in case you wanted to use live stocks web part... but it seems I was incorrect, without the Alpha Vantage key you will fail... :_(