Sp-starter-kit: Apply-PnPTenantTemplate : Object reference not set to an instance of an object.

Created on 22 May 2020  Ā·  36Comments  Ā·  Source: pnp/sp-starter-kit

145 Category

  • [x] Bug

Apply-PnPTenantTemplate : Object reference not set to an instance of an object. At line:1 char:1 + Apply-PnPTenantTemplate -Path starterkit.pnp -Parameters @{"PORTALURL ... + ~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (:) [Apply-PnPTenantTemplate], NullReferenceException + FullyQualifiedErrorId : EXCEPTION,SharePointPnP.PowerShell.Commands.Provisioning.Tenant.ApplyTenantTemplate

Expected or Desired Behavior

Expect it to provision the site hierarchy and apply starter kit but it fails in the script execution without much information about the error

Observed Behavior

Apply-PnPTenantTemplate : Object reference not set to an instance of an object. At line:1 char:1 + Apply-PnPTenantTemplate -Path starterkit.pnp -Parameters @{"PORTALURL ... + ~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (:) [Apply-PnPTenantTemplate], NullReferenceException + FullyQualifiedErrorId : EXCEPTION,SharePointPnP.PowerShell.Commands.Provisioning.Tenant.ApplyTenantTemplate

Steps to Reproduce

  • Connect to SP Online using Connect-PnPOnline
    *Apply-PnPTenantTemplate as follows:
    Apply-PnPTenantTemplate -Path starterkit.pnp -Parameters @{"PORTALURL"="/sites/collabtecportal"; "MARKETINGALIAS"="collabtecmarketing"; "HRALIAS"="collabtechr"; "Company"="CollabTec Consulting" }

Environment Details (Development & Target environment)

SharePoint Online

Thanks for your contribution! Sharing is caring.

provisioning Author Feedback no-recent-activity bug SharePoint Online V2

All 36 comments

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

Would you please turn on debugging in PS, run the apply commendlet again and provide the full output?

Set-PnPTraceLog -On -Level Debug

Brilliant. PnPTracelog is amazing. I’m running it right now.

On Thu, May 21, 2020 at 6:27 PM Eric Overfield notifications@github.com
wrote:

Would you please turn on debugging in PS, run the apply commendlet again
and provide the full output?

Set-PnPTraceLog -On -Level Debug

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/pnp/sp-starter-kit/issues/393#issuecomment-632395945,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACHEGA3II3WJC6MRPF4TTJLRSW2FNANCNFSM4NHH522Q
.

>

Ashar Khan

LinkedIn: http://linkedin.com/in/ashar
Website: http://www.ashark.net

I ran it again but the trace doesnt give much info at least I cannot point on anything. May be you can check. Here is the full trace:

`
Set-PnPTraceLog -On -Level Debug
Apply-PnPTenantTemplate -Path starterkit.pnp -Parameters @{"PORTALURL"="/sites/collabtecportal"; "MARKETINGALIAS"="collabtecmarketing"; "HRALIAS"="collabtechr"; "Company"="CollabTec Consulting" }

powershell.exe Information: 0 : 2020-05-21 19:16:23.7664 [OfficeDevPnP.Core] [0] [Information] File starterkit.pnp retrieved from folder 0ms powershell.exe Information: 0 : 2020-05-21 19:16:23.8814 [OfficeDevPnP.Core] [0] [Information] File starterkit.pnp retrieved from folder 0ms powershell.exe Information: 0 : 2020-05-21 19:16:24.7566 [OfficeDevPnP.Core] [0] [Information] File starterkit.xml retrieved from folder 0ms
powershell.exe Information: 0 : 2020-05-21 19:16:25.0967 [Provisioning] [8] [Debug] Code execution scope started 0ms 4c5b0bf5-e8ca-4e77-893f-4cf916fac5f7
powershell.exe Information: 0 : 2020-05-21 19:16:25.0977 [Provisioning] [8] [Information] ProgressDelegate registered 0ms 4c5b0bf5-e8ca-4e77-893f-4cf916fac5f7
powershell.exe Information: 0 : 2020-05-21 19:16:25.0977 [Provisioning] [8] [Information] MessagesDelegate registered 0ms 4c5b0bf5-e8ca-4e77-893f-4cf916fac5f7
powershell.exe Information: 0 : 2020-05-21 19:16:25.1087 [OfficeDevPnP.Core] [0] [Information] File resources\resources-core.en-us.resx retrieved from folder 0ms
powershell.exe Information: 0 : 2020-05-21 19:16:25.1097 [OfficeDevPnP.Core] [0] [Information] File resources\resources-core.es-es.resx retrieved from folder 0ms
powershell.exe Information: 0 : 2020-05-21 19:16:25.1097 [OfficeDevPnP.Core] [0] [Information] File resources\resources-core.fr-fr.resx retrieved from folder 0ms
powershell.exe Information: 0 : 2020-05-21 19:16:25.1107 [OfficeDevPnP.Core] [0] [Information] File resources\resources-core.de-de.resx retrieved from folder 0ms powershell.exe Information: 0 : 2020-05-21 19:16:25.1107 [OfficeDevPnP.Core] [0] [Information] File resources\resources-core.nl-nl.resx retrieved from folder 0ms powershell.exe Information: 0 : 2020-05-21 19:16:25.1117 [OfficeDevPnP.Core] [0] [Information] File resources\resources-core.nb-no.resx retrieved from folder 0ms powershell.exe Information: 0 : 2020-05-21 19:16:25.1117 [OfficeDevPnP.Core] [0] [Information] File resources\resources-core.sv-se.resx retrieved from folder 0ms powershell.exe Information: 0 : 2020-05-21 19:16:25.1117 [OfficeDevPnP.Core] [0] [Information] File resources\resources-core.tr-tr.resx retrieved from folder 0ms powershell.exe Information: 0 : 2020-05-21 19:16:25.1127 [ProvisioningTemplate WebHook Call] [8] [Debug] Code execution scope started 0ms 4c5b0bf5-e8ca-4e77-893f-4cf916fac5f7 powershell.exe Information: 0 : 2020-05-21 19:16:25.1127 [ProvisioningTemplate WebHook Call] [8] [Debug] Code execution scope ended 0ms 4c5b0bf5-e8ca-4e77-893f-4cf916fac5f7
powershell.exe Information: 0 : 2020-05-21 19:16:25.1287 [Tenant Settings] [8] [Debug] Code execution scope started 0ms 4c5b0bf5-e8ca-4e77-893f-4cf916fac5f7 powershell.exe Information: 0 : 2020-05-21 19:16:27.1013 [OfficeDevPnP.Core] [0] [Information] File library-starter-kit-shared.sppkg retrieved from folder ..\source\library-starter-kit-shared\sharepoint\solution 0ms powershell.exe Information: 0 : 2020-05-21 19:16:34.2048 [OfficeDevPnP.Core] [0] [Information] File react-banner.sppkg retrieved from folder ..\source\react-banner\sharepoint\solution 0ms powershell.exe Information: 0 : 2020-05-21 19:16:41.7792 [OfficeDevPnP.Core] [0] [Information] File react-followed-sites.sppkg retrieved from folder ..\source\react-followed-sites\sharepoint\solution 0ms powershell.exe Information: 0 : 2020-05-21 19:16:57.0422 [OfficeDevPnP.Core] [0] [Information] File react-links.sppkg retrieved from folder ..\source\react-links\sharepoint\solution 0ms powershell.exe Information: 0 : 2020-05-21 19:17:05.7034 [OfficeDevPnP.Core] [0] [Information] File react-lob-integration.sppkg retrieved from folder ..\source\react-lob-integration\sharepoint\solution 0ms powershell.exe Information: 0 : 2020-05-21 19:17:11.5838 [OfficeDevPnP.Core] [0] [Information] File react-people-directory.sppkg retrieved from folder ..\source\react-people-directory\sharepoint\solution 0ms
powershell.exe Information: 0 : 2020-05-21 19:17:22.5966 [OfficeDevPnP.Core] [0] [Information] File react-personal-calendar.sppkg retrieved from folder ..\source\react-personal-calendar\sharepoint\solution 0ms
powershell.exe Information: 0 : 2020-05-21 19:17:36.1149 [OfficeDevPnP.Core] [0] [Information] File react-personal-contacts.sppkg retrieved from folder ..\source\react-personal-contacts\sharepoint\solution 0ms
powershell.exe Information: 0 : 2020-05-21 19:17:48.3818 [OfficeDevPnP.Core] [0] [Information] File react-personal-email.sppkg retrieved from folder ..\source\react-personal-email\sharepoint\solution 0ms
powershell.exe Information: 0 : 2020-05-21 19:18:01.2685 [OfficeDevPnP.Core] [0] [Information] File react-personal-tasks.sppkg retrieved from folder ..\source\react-personal-tasks\sharepoint\solution 0ms
powershell.exe Information: 0 : 2020-05-21 19:18:06.0399 [OfficeDevPnP.Core] [0] [Information] File react-recent-contacts.sppkg retrieved from folder ..\source\react-recent-contacts\sharepoint\solution 0ms
powershell.exe Information: 0 : 2020-05-21 19:18:14.2743 [OfficeDevPnP.Core] [0] [Information] File react-recently-used-documents.sppkg retrieved from folder ..\source\react-recently-used-documents\sharepoint\solution 0ms
powershell.exe Information: 0 : 2020-05-21 19:18:27.1052 [OfficeDevPnP.Core] [0] [Information] File react-recently-visited-sites.sppkg retrieved from folder ..\source\react-recently-visited-sites\sharepoint\solution 0ms
powershell.exe Information: 0 : 2020-05-21 19:18:34.1903 [OfficeDevPnP.Core] [0] [Information] File react-site-information.sppkg retrieved from folder ..\source\react-site-information\sharepoint\solution 0ms
powershell.exe Information: 0 : 2020-05-21 19:18:41.8431 [OfficeDevPnP.Core] [0] [Information] File react-tiles.sppkg retrieved from folder ..\source\react-tiles\sharepoint\solution 0ms
powershell.exe Information: 0 : 2020-05-21 19:18:53.5003 [OfficeDevPnP.Core] [0] [Information] File react-weather.sppkg retrieved from folder ..\source\react-weather\sharepoint\solution 0ms
powershell.exe Information: 0 : 2020-05-21 19:18:57.1326 [OfficeDevPnP.Core] [0] [Information] File react-world-clock.sppkg retrieved from folder ..\source\react-world-clock\sharepoint\solution 0ms
powershell.exe Information: 0 : 2020-05-21 19:19:00.8496 [OfficeDevPnP.Core] [0] [Information] File react-application-collab-footer.sppkg retrieved from folder ..\source\react-application-collab-footer\sharepoint\solution 0ms
powershell.exe Information: 0 : 2020-05-21 19:19:07.8313 [OfficeDevPnP.Core] [0] [Information] File react-application-portal-footer.sppkg retrieved from folder ..\source\react-application-portal-footer\sharepoint\solution 0ms
powershell.exe Information: 0 : 2020-05-21 19:19:15.1830 [OfficeDevPnP.Core] [0] [Information] File js-application-redirect.sppkg retrieved from folder ..\source\js-application-redirect\sharepoint\solution 0ms powershell.exe Information: 0 : 2020-05-21 19:19:20.5983 [OfficeDevPnP.Core] [0] [Information] File react-application-alerts.sppkg retrieved from folder ..\source\react-application-alerts\sharepoint\solution 0ms powershell.exe Information: 0 : 2020-05-21 19:19:26.0561 [OfficeDevPnP.Core] [0] [Information] File react-command-discuss-now.sppkg retrieved from folder ..\source\react-command-discuss-now\sharepoint\solution 0ms powershell.exe Information: 0 : 2020-05-21 19:19:33.1468 [OfficeDevPnP.Core] [0] [Information] File collabteamsite.json retrieved from folder resources 0ms powershell.exe Information: 0 : 2020-05-21 19:19:33.9766 [OfficeDevPnP.Core] [0] [Information] File collabcommunicationsite.json retrieved from folder resources 0ms powershell.exe Information: 0 : 2020-05-21 19:19:35.8323 [Tenant Settings] [8] [Debug] Code execution scope ended 190704ms 4c5b0bf5-e8ca-4e77-893f-4cf916fac5f7 powershell.exe Information: 0 : 2020-05-21 19:19:35.8643 [Term Groups] [8] [Debug] Code execution scope started 0ms 4c5b0bf5-e8ca-4e77-893f-4cf916fac5f7 powershell.exe Information: 0 : 2020-05-21 19:19:36.7422 [Term Groups] [8] [Debug] Code execution scope ended 877ms 4c5b0bf5-e8ca-4e77-893f-4cf916fac5f7
powershell.exe Information: 0 : 2020-05-21 19:19:36.7702 [Provisioning] [8] [Debug] Code execution scope started 0ms 4c5b0bf5-e8ca-4e77-893f-4cf916fac5f7
powershell.exe Information: 0 : 2020-05-21 19:19:37.7723 [OfficeDevPnP.Core] [0] [Information] File resources\resources-core.en-us.resx retrieved from folder 0ms
powershell.exe Information: 0 : 2020-05-21 19:19:37.7743 [OfficeDevPnP.Core] [0] [Information] File resources\resources-core.es-es.resx retrieved from folder 0ms
powershell.exe Information: 0 : 2020-05-21 19:19:37.7763 [OfficeDevPnP.Core] [0] [Information] File resources\resources-core.fr-fr.resx retrieved from folder 0ms
powershell.exe Information: 0 : 2020-05-21 19:19:37.7793 [OfficeDevPnP.Core] [0] [Information] File resources\resources-core.de-de.resx retrieved from folder 0ms
powershell.exe Information: 0 : 2020-05-21 19:19:37.7803 [OfficeDevPnP.Core] [0] [Information] File resources\resources-core.nl-nl.resx retrieved from folder 0ms
powershell.exe Information: 0 : 2020-05-21 19:19:37.7823 [OfficeDevPnP.Core] [0] [Information] File resources\resources-core.nb-no.resx retrieved from folder 0ms
powershell.exe Information: 0 : 2020-05-21 19:19:37.7873 [OfficeDevPnP.Core] [0] [Information] File resources\resources-core.sv-se.resx retrieved from folder 0ms
powershell.exe Information: 0 : 2020-05-21 19:19:37.7893 [OfficeDevPnP.Core] [0] [Information] File resources\resources-core.tr-tr.resx retrieved from folder 0ms
powershell.exe Information: 0 : 2020-05-21 19:19:38.9837 [Provisioning] [8] [Debug] Code execution scope ended 2213ms 4c5b0bf5-e8ca-4e77-893f-4cf916fac5f7
powershell.exe Information: 0 : 2020-05-21 19:19:38.9857 [ProvisioningTemplate WebHook Call] [8] [Debug] Code execution scope started 0ms 4c5b0bf5-e8ca-4e77-893f-4cf916fac5f7
powershell.exe Information: 0 : 2020-05-21 19:19:38.9867 [ProvisioningTemplate WebHook Call] [8] [Debug] Code execution scope ended 1ms 4c5b0bf5-e8ca-4e77-893f-4cf916fac5f7
powershell.exe Information: 0 : 2020-05-21 19:19:38.9887 [Provisioning] [8] [Debug] Code execution scope ended 193891ms 4c5b0bf5-e8ca-4e77-893f-4cf916fac5f7
Apply-PnPTenantTemplate : Object reference not set to an instance of an object.
At line:1 char:1

  • Apply-PnPTenantTemplate -Path starterkit.pnp -Parameters @{"PORTALURL ...
  • ~~~~~~~~~~~~~~~~~

    • CategoryInfo : WriteError: (:) [Apply-PnPTenantTemplate], NullReferenceException

    • FullyQualifiedErrorId : EXCEPTION,SharePointPnP.PowerShell.Commands.Provisioning.Tenant.ApplyTenantTemplate`

Thanks. I am not sure why the provisioning template looked to install the resources files twice, it does look as though they did make it into the system, and the SPFx sppkgs also made it in. The output in missing a few, including react-application-alerts. Not sure if that is related here.

Additional tenant settings do not appear to be completed. This includes app permission requests for graph objects, term set provisioning, and site design/script provisioning.

  1. are you using an account with tenant admin access?
  2. is this account also a term store administrator?
  3. Check your app catalog, does it appear as though all sppkg's were provisioned correctly?
  4. how about site designs, is there new ones for a comm site and a team site? it does appear as those were provisioned as well.

Hi Eric,

  1. are you using an account with tenant admin access?* Yes, I am logged
    in as tenant admin (God account)*
  2. is this account also a term store administrator?* Yes, I verified
    that couple of times*
  3. Check your app catalog, does it appear as though all sppkg's were
    provisioned correctly? *Yes, All packages seem to have made it in. Total
    of 22 new sppkg packages are in. *
  4. how about site designs, is there new ones for a comm site and a team
    site? it does appear as those were provisioned as well. Only new site
    design appears (CollabTec Consulting Communication Site and CollabTec
    Consulting Team Site)

PS C:\Users\Ashar Khan\projects\sp-starter-kit\provisioning>
Get-PnPSiteDesign

Id Title
Site Scripts
-- -----


7ddee0ec-a757-489b-a46f-8cb6eb5cf19d Contoso Electronics Team Site
{e7bb6604-6409-46a8-bfac-f3a8a21375c9}
989ce7cc-4f45-422e-81a4-295264fd78cd Contoso Electronics Communication Site
{353c7156-cc15-4eaa-ab97-e9217d711b2a}
04f4d964-8cbe-4b5e-8476-e5372c07c925 CollabTec Consulting Team Site
{fe0f72a9-7ffc-4c72-9023-7ecd90d8d011}
89dbd6a2-90ee-4a29-acfe-4c3ad8779e1b CollabTec Consulting Communication
Site {178b1a0d-09ae-49d4-b08c-935328937f77}

Even the site gets created but its OTB communication site. I created a new
site using new communication site template, it appears to be OTB as well.
So I think the site script/design are not provisioned correctly?

Also when I edit the page, i dont see new web parts available. I guess the
provisioning piece is not working?

Let me know if you would like to spend sometime to do a screen share and
figure this out?

Thanks and much appreciate the help here.

Regards,
Ashar Khan

On Thu, May 21, 2020 at 7:51 PM Eric Overfield notifications@github.com
wrote:

Thanks. I am not sure why the provisioning template looked to install the
resources files twice, it does look as though they did make it into the
system, and the SPFx sppkgs also made it in. The output in missing a few,
including react-application-alerts. Not sure if that is related here.

Additional tenant settings do not appear to be completed. This includes
app permission requests for graph objects, term set provisioning, and site
design/script provisioning.

  1. are you using an account with tenant admin access?
  2. is this account also a term store administrator?
  3. Check your app catalog, does it appear as though all sppkg's were
    provisioned correctly?
  4. how about site designs, is there new ones for a comm site and a
    team site? it does appear as those were provisioned as well.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/pnp/sp-starter-kit/issues/393#issuecomment-632419004,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACHEGA2YYGIZT6T3E6C2S7TRSXECDANCNFSM4NHH522Q
.

--
Ashar Khan

LinkedIn: http://linkedin.com/in/ashar
Website: http://www.ashark.net

Thanks for the additional information. It looks like all Tenant settings in the provisioning template are applied. That means you are moved on to the Sequence steps. The first item is to create the communication site, which you state is created? No other actions are applied to it?

The provisioning process does not utilize the site designs for the provisioned sites, rather the provisioning template applies multiple pnp:templates to each of the three created sites. Based on the logging, I can't tell if the first template, "ROOT-TEMPLATE" is processed or not. Im going to investigate that avenue first as thus far I have been unable to duplicate your specific error.

Does this template have english as its default language? If not, does english exist as a language on this tenant?

No its default english.

On Fri, May 22, 2020 at 3:08 PM Eric Overfield notifications@github.com
wrote:

Does this template have english as its default language? If not, does
english exist as a language on this tenant?

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/pnp/sp-starter-kit/issues/393#issuecomment-632892076,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACHEGAZQ2FERKXMIS5GUQWDRS3LT7ANCNFSM4NHH522Q
.

--
Ashar Khan

LinkedIn: http://linkedin.com/in/ashar
Website: http://www.ashark.net

I also have this exact same issue on my test tenant. So I created a brand new developer (free) tenant and was able to replicate the same exact issue.

PowerShell_ISE.exe Information: 0 : 2020-05-24 19:30:44.0813 [OfficeDevPnP.Core] [0] [Information] File starterkit.pnp retrieved from folder 0ms
PowerShell_ISE.exe Information: 0 : 2020-05-24 19:30:44.1013 [OfficeDevPnP.Core] [0] [Information] File starterkit.pnp retrieved from folder 0ms
PowerShell_ISE.exe Information: 0 : 2020-05-24 19:30:44.5461 [OfficeDevPnP.Core] [0] [Information] File starterkit.xml retrieved from folder 0ms
PowerShell_ISE.exe Information: 0 : 2020-05-24 19:30:44.7126 [Provisioning] [17] [Debug] Code execution scope started 0ms 085a587d-1ed3-4525-8e79-61b2ffcc2f23
PowerShell_ISE.exe Information: 0 : 2020-05-24 19:30:44.7136 [Provisioning] [17] [Information] ProgressDelegate registered 1ms 085a587d-1ed3-4525-8e79-61b2ffcc2f23
PowerShell_ISE.exe Information: 0 : 2020-05-24 19:30:44.7146 [Provisioning] [17] [Information] MessagesDelegate registered 1ms 085a587d-1ed3-4525-8e79-61b2ffcc2f23
PowerShell_ISE.exe Information: 0 : 2020-05-24 19:30:44.8901 [OfficeDevPnP.Core] [0] [Information] File resources\resources-core.en-us.resx retrieved from folder 0ms
PowerShell_ISE.exe Information: 0 : 2020-05-24 19:30:44.8901 [OfficeDevPnP.Core] [0] [Information] File resources\resources-core.es-es.resx retrieved from folder 0ms
PowerShell_ISE.exe Information: 0 : 2020-05-24 19:30:44.8911 [OfficeDevPnP.Core] [0] [Information] File resources\resources-core.fr-fr.resx retrieved from folder 0ms
PowerShell_ISE.exe Information: 0 : 2020-05-24 19:30:44.8911 [OfficeDevPnP.Core] [0] [Information] File resources\resources-core.de-de.resx retrieved from folder 0ms
PowerShell_ISE.exe Information: 0 : 2020-05-24 19:30:44.8921 [OfficeDevPnP.Core] [0] [Information] File resources\resources-core.nl-nl.resx retrieved from folder 0ms
PowerShell_ISE.exe Information: 0 : 2020-05-24 19:30:44.8921 [OfficeDevPnP.Core] [0] [Information] File resources\resources-core.nb-no.resx retrieved from folder 0ms
PowerShell_ISE.exe Information: 0 : 2020-05-24 19:30:44.8931 [OfficeDevPnP.Core] [0] [Information] File resources\resources-core.sv-se.resx retrieved from folder 0ms
PowerShell_ISE.exe Information: 0 : 2020-05-24 19:30:44.8931 [OfficeDevPnP.Core] [0] [Information] File resources\resources-core.tr-tr.resx retrieved from folder 0ms
PowerShell_ISE.exe Information: 0 : 2020-05-24 19:30:44.8941 [ProvisioningTemplate WebHook Call] [17] [Debug] Code execution scope started 0ms 085a587d-1ed3-4525-8e79-61b2ffcc2f23
PowerShell_ISE.exe Information: 0 : 2020-05-24 19:30:44.8951 [ProvisioningTemplate WebHook Call] [17] [Debug] Code execution scope ended 0ms 085a587d-1ed3-4525-8e79-61b2ffcc2f23
PowerShell_ISE.exe Information: 0 : 2020-05-24 19:30:44.8951 [Tenant Settings] [17] [Debug] Code execution scope started 0ms 085a587d-1ed3-4525-8e79-61b2ffcc2f23
PowerShell_ISE.exe Information: 0 : 2020-05-24 19:30:46.2575 [OfficeDevPnP.Core] [0] [Information] File library-starter-kit-shared.sppkg retrieved from folder ..\source\library-starter-kit-shared\sharepoint\solution 0ms
PowerShell_ISE.exe Information: 0 : 2020-05-24 19:30:56.9978 [OfficeDevPnP.Core] [0] [Information] File react-banner.sppkg retrieved from folder ..\source\react-banner\sharepoint\solution 0ms
PowerShell_ISE.exe Information: 0 : 2020-05-24 19:31:08.5708 [OfficeDevPnP.Core] [0] [Information] File react-followed-sites.sppkg retrieved from folder ..\source\react-followed-sites\sharepoint\solution 0ms
PowerShell_ISE.exe Information: 0 : 2020-05-24 19:31:26.1148 [OfficeDevPnP.Core] [0] [Information] File react-links.sppkg retrieved from folder ..\source\react-links\sharepoint\solution 0ms
PowerShell_ISE.exe Information: 0 : 2020-05-24 19:31:33.3734 [OfficeDevPnP.Core] [0] [Information] File react-lob-integration.sppkg retrieved from folder ..\source\react-lob-integration\sharepoint\solution 0ms
PowerShell_ISE.exe Information: 0 : 2020-05-24 19:31:42.4541 [OfficeDevPnP.Core] [0] [Information] File react-people-directory.sppkg retrieved from folder ..\source\react-people-directory\sharepoint\solution 0ms
PowerShell_ISE.exe Information: 0 : 2020-05-24 19:31:58.3149 [OfficeDevPnP.Core] [0] [Information] File react-personal-calendar.sppkg retrieved from folder ..\source\react-personal-calendar\sharepoint\solution 0ms
PowerShell_ISE.exe Information: 0 : 2020-05-24 19:32:16.0493 [OfficeDevPnP.Core] [0] [Information] File react-personal-contacts.sppkg retrieved from folder ..\source\react-personal-contacts\sharepoint\solution 0ms
PowerShell_ISE.exe Information: 0 : 2020-05-24 19:32:33.7151 [OfficeDevPnP.Core] [0] [Information] File react-personal-email.sppkg retrieved from folder ..\source\react-personal-email\sharepoint\solution 0ms
PowerShell_ISE.exe Information: 0 : 2020-05-24 19:32:50.7856 [OfficeDevPnP.Core] [0] [Information] File react-personal-tasks.sppkg retrieved from folder ..\source\react-personal-tasks\sharepoint\solution 0ms
PowerShell_ISE.exe Information: 0 : 2020-05-24 19:32:59.7128 [OfficeDevPnP.Core] [0] [Information] File react-recent-contacts.sppkg retrieved from folder ..\source\react-recent-contacts\sharepoint\solution 0ms
PowerShell_ISE.exe Information: 0 : 2020-05-24 19:33:15.0690 [OfficeDevPnP.Core] [0] [Information] File react-recently-used-documents.sppkg retrieved from folder ..\source\react-recently-used-documents\sharepoint\solution 0ms
PowerShell_ISE.exe Information: 0 : 2020-05-24 19:33:31.0262 [OfficeDevPnP.Core] [0] [Information] File react-recently-visited-sites.sppkg retrieved from folder ..\source\react-recently-visited-sites\sharepoint\solution 0ms
PowerShell_ISE.exe Information: 0 : 2020-05-24 19:33:43.7497 [OfficeDevPnP.Core] [0] [Information] File react-site-information.sppkg retrieved from folder ..\source\react-site-information\sharepoint\solution 0ms
PowerShell_ISE.exe Information: 0 : 2020-05-24 19:33:54.4901 [OfficeDevPnP.Core] [0] [Information] File react-tiles.sppkg retrieved from folder ..\source\react-tiles\sharepoint\solution 0ms
PowerShell_ISE.exe Information: 0 : 2020-05-24 19:34:11.1758 [OfficeDevPnP.Core] [0] [Information] File react-weather.sppkg retrieved from folder ..\source\react-weather\sharepoint\solution 0ms
PowerShell_ISE.exe Information: 0 : 2020-05-24 19:34:19.1774 [OfficeDevPnP.Core] [0] [Information] File react-world-clock.sppkg retrieved from folder ..\source\react-world-clock\sharepoint\solution 0ms
PowerShell_ISE.exe Information: 0 : 2020-05-24 19:34:26.3423 [OfficeDevPnP.Core] [0] [Information] File react-application-collab-footer.sppkg retrieved from folder ..\source\react-application-collab-footer\sharepoint\solution 0ms
PowerShell_ISE.exe Information: 0 : 2020-05-24 19:34:37.7247 [OfficeDevPnP.Core] [0] [Information] File react-application-portal-footer.sppkg retrieved from folder ..\source\react-application-portal-footer\sharepoint\solution 0ms
PowerShell_ISE.exe Information: 0 : 2020-05-24 19:34:49.5181 [OfficeDevPnP.Core] [0] [Information] File js-application-redirect.sppkg retrieved from folder ..\source\js-application-redirect\sharepoint\solution 0ms
PowerShell_ISE.exe Information: 0 : 2020-05-24 19:34:58.3375 [OfficeDevPnP.Core] [0] [Information] File react-application-alerts.sppkg retrieved from folder ..\source\react-application-alerts\sharepoint\solution 0ms
PowerShell_ISE.exe Information: 0 : 2020-05-24 19:35:06.5268 [OfficeDevPnP.Core] [0] [Information] File react-command-discuss-now.sppkg retrieved from folder ..\source\react-command-discuss-now\sharepoint\solution 0ms
PowerShell_ISE.exe Information: 0 : 2020-05-24 19:35:17.9232 [OfficeDevPnP.Core] [0] [Information] File collabteamsite.json retrieved from folder resources 0ms
PowerShell_ISE.exe Information: 0 : 2020-05-24 19:35:19.3085 [OfficeDevPnP.Core] [0] [Information] File collabcommunicationsite.json retrieved from folder resources 0ms
PowerShell_ISE.exe Information: 0 : 2020-05-24 19:35:21.9853 [Tenant Settings] [17] [Debug] Code execution scope ended 277090ms 085a587d-1ed3-4525-8e79-61b2ffcc2f23
PowerShell_ISE.exe Information: 0 : 2020-05-24 19:35:21.9863 [Term Groups] [17] [Debug] Code execution scope started 0ms 085a587d-1ed3-4525-8e79-61b2ffcc2f23
PowerShell_ISE.exe Information: 0 : 2020-05-24 19:35:23.5920 [Term Groups] [17] [Debug] Code execution scope ended 1605ms 085a587d-1ed3-4525-8e79-61b2ffcc2f23
PowerShell_ISE.exe Information: 0 : 2020-05-24 19:35:23.5930 [Provisioning] [17] [Debug] Code execution scope started 0ms 085a587d-1ed3-4525-8e79-61b2ffcc2f23
PowerShell_ISE.exe Information: 0 : 2020-05-24 19:35:25.6795 [OfficeDevPnP.Core] [0] [Information] File resources\resources-core.en-us.resx retrieved from folder 0ms
PowerShell_ISE.exe Information: 0 : 2020-05-24 19:35:25.6834 [OfficeDevPnP.Core] [0] [Information] File resources\resources-core.es-es.resx retrieved from folder 0ms
PowerShell_ISE.exe Information: 0 : 2020-05-24 19:35:25.6844 [OfficeDevPnP.Core] [0] [Information] File resources\resources-core.fr-fr.resx retrieved from folder 0ms
PowerShell_ISE.exe Information: 0 : 2020-05-24 19:35:25.6854 [OfficeDevPnP.Core] [0] [Information] File resources\resources-core.de-de.resx retrieved from folder 0ms
PowerShell_ISE.exe Information: 0 : 2020-05-24 19:35:25.6854 [OfficeDevPnP.Core] [0] [Information] File resources\resources-core.nl-nl.resx retrieved from folder 0ms
PowerShell_ISE.exe Information: 0 : 2020-05-24 19:35:25.6864 [OfficeDevPnP.Core] [0] [Information] File resources\resources-core.nb-no.resx retrieved from folder 0ms
PowerShell_ISE.exe Information: 0 : 2020-05-24 19:35:25.6864 [OfficeDevPnP.Core] [0] [Information] File resources\resources-core.sv-se.resx retrieved from folder 0ms
PowerShell_ISE.exe Information: 0 : 2020-05-24 19:35:25.6874 [OfficeDevPnP.Core] [0] [Information] File resources\resources-core.tr-tr.resx retrieved from folder 0ms
PowerShell_ISE.exe Information: 0 : 2020-05-24 19:35:28.2914 [Provisioning] [17] [Debug] Code execution scope ended 4698ms 085a587d-1ed3-4525-8e79-61b2ffcc2f23
PowerShell_ISE.exe Information: 0 : 2020-05-24 19:35:28.2924 [ProvisioningTemplate WebHook Call] [17] [Debug] Code execution scope started 0ms 085a587d-1ed3-4525-8e79-61b2ffcc2f23
PowerShell_ISE.exe Information: 0 : 2020-05-24 19:35:28.2994 [ProvisioningTemplate WebHook Call] [17] [Debug] Code execution scope ended 6ms 085a587d-1ed3-4525-8e79-61b2ffcc2f23
PowerShell_ISE.exe Information: 0 : 2020-05-24 19:35:28.3034 [Provisioning] [17] [Debug] Code execution scope ended 283591ms 085a587d-1ed3-4525-8e79-61b2ffcc2f23
Apply-PnPTenantTemplate : Object reference not set to an instance of an object.
At line:5 char:1

  • Apply-PnPTenantTemplate -Path starterkit.pnp -Parameters @{"PORTALURL ...
  • ~~~~~~~~~~~~~~~~~

    • CategoryInfo : WriteError: (:) [Apply-PnPTenantTemplate], NullReferenceException

    • FullyQualifiedErrorId : EXCEPTION,SharePointPnP.PowerShell.Commands.Provisioning.Tenant.ApplyTenantTemplate

Thank you for providing the additional details. Is en-US the default language for both your workstation and tenant(s)?

Yes.

Sent from my iPhone

On May 24, 2020, at 9:46 PM, Eric Overfield notifications@github.com wrote:


Thank you for providing the additional details. Is en-US the default language for both your workstation and tenant(s)?

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

Just wondering, why is "first release" required? What feature is needed from first release? That may be a difficult requirement for production. Thanks.

As this does appear to be similar to a localization issue, https://github.com/pnp/sp-starter-kit/issues/394, please try pulling the latest master branch and see if provisioning the pnp provisioning template fixes the null problem.

The first release has been required because of graph calls made by some webparts.

Okay let me get it correctly, do we have to get the master branch and
deploy the "first release" and then checkout v2 and apply template?

Thanks,
Ashar

On Tue, May 26, 2020 at 6:37 PM Eric Overfield notifications@github.com
wrote:

As this does appear to be similar to a localization issue, #394
https://github.com/pnp/sp-starter-kit/issues/394, please try pulling
the latest master branch and see if provisioning the pnp provisioning
template fixes the null problem.

The first release has been required because of graph calls made by some
webparts.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/pnp/sp-starter-kit/issues/393#issuecomment-634335916,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACHEGA2TQYSUDCIEZVHUWODRTRHDPANCNFSM4NHH522Q
.

--
Ashar Khan

LinkedIn: http://linkedin.com/in/ashar
Website: http://www.ashark.net

I checkout master branch and applied it but I am getting the same error
message:

PS C:\Users\Ashar Khan\projects\sp-starter-kit\provisioning>
Set-PnPTraceLog -On -Level Debug -LogFile error.txt
PS C:\Users\Ashar Khan\projects\sp-starter-kit\provisioning>
Apply-PnPTenantTemplate -Path .\starterkit.pnp
Apply-PnPTenantTemplate : Object reference not set to an instance of an
object.
At line:1 char:1

  • Apply-PnPTenantTemplate -Path .\starterkit.pnp
  • ~~~~~~~~~~

    • CategoryInfo : WriteError: (:) [Apply-PnPTenantTemplate],

      NullReferenceException

    • FullyQualifiedErrorId :

      EXCEPTION,SharePointPnP.PowerShell.Commands.Provisioning.Tenant.ApplyTenantTemplate

Trace:
powershell.exe Information: 0 : 2020-05-26 20:14:38.5756
[OfficeDevPnP.Core] [0] [Information] File starterkit.pnp retrieved from
folder 0ms
powershell.exe Information: 0 : 2020-05-26 20:14:38.6766
[OfficeDevPnP.Core] [0] [Information] File starterkit.pnp retrieved from
folder 0ms
powershell.exe Information: 0 : 2020-05-26 20:14:39.1768
[OfficeDevPnP.Core] [0] [Information] File starterkit.xml retrieved from
folder 0ms
powershell.exe Information: 0 : 2020-05-26 20:14:39.5428 [Provisioning] [9]
[Debug] Code execution scope started 0ms
3c2eb547-b5a3-43e8-a078-0a62bd0707c0
powershell.exe Information: 0 : 2020-05-26 20:14:39.5428 [Provisioning] [9]
[Information] ProgressDelegate registered 0ms
3c2eb547-b5a3-43e8-a078-0a62bd0707c0
powershell.exe Information: 0 : 2020-05-26 20:14:39.5438 [Provisioning] [9]
[Information] MessagesDelegate registered 1ms
3c2eb547-b5a3-43e8-a078-0a62bd0707c0
powershell.exe Information: 0 : 2020-05-26 20:14:39.5538
[OfficeDevPnP.Core] [0] [Information] File
resources\resources-core.en-us.resx retrieved from folder 0ms
powershell.exe Information: 0 : 2020-05-26 20:14:39.5549
[OfficeDevPnP.Core] [0] [Information] File
resources\resources-core.es-es.resx retrieved from folder 0ms
powershell.exe Information: 0 : 2020-05-26 20:14:39.5549
[OfficeDevPnP.Core] [0] [Information] File
resources\resources-core.fr-fr.resx retrieved from folder 0ms
powershell.exe Information: 0 : 2020-05-26 20:14:39.5549
[OfficeDevPnP.Core] [0] [Information] File
resources\resources-core.de-de.resx retrieved from folder 0ms
powershell.exe Information: 0 : 2020-05-26 20:14:39.5559
[OfficeDevPnP.Core] [0] [Information] File
resources\resources-core.nl-nl.resx retrieved from folder 0ms
powershell.exe Information: 0 : 2020-05-26 20:14:39.5569
[OfficeDevPnP.Core] [0] [Information] File
resources\resources-core.nb-no.resx retrieved from folder 0ms
powershell.exe Information: 0 : 2020-05-26 20:14:39.5569
[OfficeDevPnP.Core] [0] [Information] File
resources\resources-core.sv-se.resx retrieved from folder 0ms
powershell.exe Information: 0 : 2020-05-26 20:14:39.5569
[OfficeDevPnP.Core] [0] [Information] File
resources\resources-core.tr-tr.resx retrieved from folder 0ms
powershell.exe Information: 0 : 2020-05-26 20:14:39.5569
[ProvisioningTemplate WebHook Call] [9] [Debug] Code execution scope
started 0ms 3c2eb547-b5a3-43e8-a078-0a62bd0707c0
powershell.exe Information: 0 : 2020-05-26 20:14:39.5579
[ProvisioningTemplate WebHook Call] [9] [Debug] Code execution scope ended
0ms 3c2eb547-b5a3-43e8-a078-0a62bd0707c0
powershell.exe Information: 0 : 2020-05-26 20:14:39.5659 [Tenant Settings]
[9] [Debug] Code execution scope started 0ms
3c2eb547-b5a3-43e8-a078-0a62bd0707c0
powershell.exe Information: 0 : 2020-05-26 20:14:40.3217
[OfficeDevPnP.Core] [0] [Information] File sharepoint-starter-kit.sppkg
retrieved from folder ..\package 0ms
powershell.exe Information: 0 : 2020-05-26 20:16:02.7176
[OfficeDevPnP.Core] [0] [Information] File collabteamsite.json retrieved
from folder resources 0ms
powershell.exe Information: 0 : 2020-05-26 20:16:03.5014
[OfficeDevPnP.Core] [0] [Information] File collabcommunicationsite.json
retrieved from folder resources 0ms
powershell.exe Information: 0 : 2020-05-26 20:16:05.0369 [Tenant Settings]
[9] [Debug] Code execution scope ended 85471ms
3c2eb547-b5a3-43e8-a078-0a62bd0707c0
powershell.exe Information: 0 : 2020-05-26 20:16:05.0519 [Term Groups] [9]
[Debug] Code execution scope started 0ms
3c2eb547-b5a3-43e8-a078-0a62bd0707c0
powershell.exe Information: 0 : 2020-05-26 20:16:05.6071 [Term Groups] [9]
[Debug] Code execution scope ended 555ms
3c2eb547-b5a3-43e8-a078-0a62bd0707c0
powershell.exe Information: 0 : 2020-05-26 20:16:05.6221 [Provisioning] [9]
[Debug] Code execution scope started 0ms
3c2eb547-b5a3-43e8-a078-0a62bd0707c0
powershell.exe Information: 0 : 2020-05-26 20:16:07.3265
[OfficeDevPnP.Core] [0] [Information] File
resources\resources-core.en-us.resx retrieved from folder 0ms
powershell.exe Information: 0 : 2020-05-26 20:16:07.3276
[OfficeDevPnP.Core] [0] [Information] File
resources\resources-core.es-es.resx retrieved from folder 0ms
powershell.exe Information: 0 : 2020-05-26 20:16:07.3286
[OfficeDevPnP.Core] [0] [Information] File
resources\resources-core.fr-fr.resx retrieved from folder 0ms
powershell.exe Information: 0 : 2020-05-26 20:16:07.3296
[OfficeDevPnP.Core] [0] [Information] File
resources\resources-core.de-de.resx retrieved from folder 0ms
powershell.exe Information: 0 : 2020-05-26 20:16:07.3306
[OfficeDevPnP.Core] [0] [Information] File
resources\resources-core.nl-nl.resx retrieved from folder 0ms
powershell.exe Information: 0 : 2020-05-26 20:16:07.3306
[OfficeDevPnP.Core] [0] [Information] File
resources\resources-core.nb-no.resx retrieved from folder 0ms
powershell.exe Information: 0 : 2020-05-26 20:16:07.3316
[OfficeDevPnP.Core] [0] [Information] File
resources\resources-core.sv-se.resx retrieved from folder 0ms
powershell.exe Information: 0 : 2020-05-26 20:16:07.3316
[OfficeDevPnP.Core] [0] [Information] File
resources\resources-core.tr-tr.resx retrieved from folder 0ms
powershell.exe Information: 0 : 2020-05-26 20:16:08.4710 [Provisioning] [9]
[Debug] Code execution scope ended 2849ms
3c2eb547-b5a3-43e8-a078-0a62bd0707c0
powershell.exe Information: 0 : 2020-05-26 20:16:08.4720
[ProvisioningTemplate WebHook Call] [9] [Debug] Code execution scope
started 0ms 3c2eb547-b5a3-43e8-a078-0a62bd0707c0
powershell.exe Information: 0 : 2020-05-26 20:16:08.4720
[ProvisioningTemplate WebHook Call] [9] [Debug] Code execution scope ended
0ms 3c2eb547-b5a3-43e8-a078-0a62bd0707c0
powershell.exe Information: 0 : 2020-05-26 20:16:08.4720 [Provisioning] [9]
[Debug] Code execution scope ended 88929ms
3c2eb547-b5a3-43e8-a078-0a62bd0707c0

On Tue, May 26, 2020 at 7:47 PM Ashar Khan ashar@ashark.net wrote:

Okay let me get it correctly, do we have to get the master branch and
deploy the "first release" and then checkout v2 and apply template?

Thanks,
Ashar

On Tue, May 26, 2020 at 6:37 PM Eric Overfield notifications@github.com
wrote:

As this does appear to be similar to a localization issue, #394
https://github.com/pnp/sp-starter-kit/issues/394, please try pulling
the latest master branch and see if provisioning the pnp provisioning
template fixes the null problem.

The first release has been required because of graph calls made by some
webparts.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/pnp/sp-starter-kit/issues/393#issuecomment-634335916,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACHEGA2TQYSUDCIEZVHUWODRTRHDPANCNFSM4NHH522Q
.

--
Ashar Khan

LinkedIn: http://linkedin.com/in/ashar
Website: http://www.ashark.net

--
Ashar Khan

LinkedIn: http://linkedin.com/in/ashar
Website: http://www.ashark.net

@zenaidura You will want to set your tenant to first release. This is done in your O365 tenant admin settings. Once this is set for everyone, you will need to wait up to 24 hours for this to fully take effect.

Looking at your debug console, for some reason it appears as though you have the V1 provisioning template. The debug console shows sharepoint-starter-kit.sppkg, which is no longer used by the master branch.

i still have the same issue

PowerShell_ISE.exe Information: 0 : 2020-05-27 09:40:53.0542 [OfficeDevPnP.Core] [0] [Information] File starterkit.pnp retrieved from folder 0ms
PowerShell_ISE.exe Information: 0 : 2020-05-27 09:40:53.1010 [OfficeDevPnP.Core] [0] [Information] File starterkit.pnp retrieved from folder 0ms
PowerShell_ISE.exe Information: 0 : 2020-05-27 09:40:53.8979 [OfficeDevPnP.Core] [0] [Information] File starterkit.xml retrieved from folder 0ms
PowerShell_ISE.exe Information: 0 : 2020-05-27 09:40:54.1479 [Provisioning] [21] [Debug] Code execution scope started 0ms 3621dd0f-13c6-4ecd-92f1-c83d35c8100e
PowerShell_ISE.exe Information: 0 : 2020-05-27 09:40:54.1479 [Provisioning] [21] [Information] ProgressDelegate registered 0ms 3621dd0f-13c6-4ecd-92f1-c83d35c8100e
PowerShell_ISE.exe Information: 0 : 2020-05-27 09:40:54.1479 [Provisioning] [21] [Information] MessagesDelegate registered 1ms 3621dd0f-13c6-4ecd-92f1-c83d35c8100e
PowerShell_ISE.exe Information: 0 : 2020-05-27 09:40:54.4292 [OfficeDevPnP.Core] [0] [Information] File resources\resources-core.en-US.resx retrieved from folder 0ms
PowerShell_ISE.exe Information: 0 : 2020-05-27 09:40:54.4292 [OfficeDevPnP.Core] [0] [Information] File resources\resources-core.es-ES.resx retrieved from folder 0ms
PowerShell_ISE.exe Information: 0 : 2020-05-27 09:40:54.4292 [OfficeDevPnP.Core] [0] [Information] File resources\resources-core.fr-FR.resx retrieved from folder 0ms
PowerShell_ISE.exe Information: 0 : 2020-05-27 09:40:54.4292 [OfficeDevPnP.Core] [0] [Information] File resources\resources-core.de-DE.resx retrieved from folder 0ms
PowerShell_ISE.exe Information: 0 : 2020-05-27 09:40:54.4292 [OfficeDevPnP.Core] [0] [Information] File resources\resources-core.nl-NL.resx retrieved from folder 0ms
PowerShell_ISE.exe Information: 0 : 2020-05-27 09:40:54.4292 [OfficeDevPnP.Core] [0] [Information] File resources\resources-core.nb-NO.resx retrieved from folder 0ms
PowerShell_ISE.exe Information: 0 : 2020-05-27 09:40:54.4292 [OfficeDevPnP.Core] [0] [Information] File resources\resources-core.sv-SE.resx retrieved from folder 0ms
PowerShell_ISE.exe Information: 0 : 2020-05-27 09:40:54.4292 [OfficeDevPnP.Core] [0] [Information] File resources\resources-core.tr-TR.resx retrieved from folder 0ms
PowerShell_ISE.exe Information: 0 : 2020-05-27 09:40:54.4292 [ProvisioningTemplate WebHook Call] [21] [Debug] Code execution scope started 0ms 3621dd0f-13c6-4ecd-92f1-c83d35c8100e
PowerShell_ISE.exe Information: 0 : 2020-05-27 09:40:54.4292 [ProvisioningTemplate WebHook Call] [21] [Debug] Code execution scope ended 0ms 3621dd0f-13c6-4ecd-92f1-c83d35c8100e
PowerShell_ISE.exe Information: 0 : 2020-05-27 09:40:54.4292 [Tenant Settings] [21] [Debug] Code execution scope started 0ms 3621dd0f-13c6-4ecd-92f1-c83d35c8100e
PowerShell_ISE.exe Information: 0 : 2020-05-27 09:40:54.5385 [Tenant Settings] [21] [Debug] Code execution scope ended 112ms 3621dd0f-13c6-4ecd-92f1-c83d35c8100e
PowerShell_ISE.exe Information: 0 : 2020-05-27 09:40:54.5385 [ProvisioningTemplate WebHook Call] [21] [Debug] Code execution scope started 0ms 3621dd0f-13c6-4ecd-92f1-c83d35c8100e
PowerShell_ISE.exe Information: 0 : 2020-05-27 09:40:54.5385 [ProvisioningTemplate WebHook Call] [21] [Debug] Code execution scope ended 0ms 3621dd0f-13c6-4ecd-92f1-c83d35c8100e
PowerShell_ISE.exe Information: 0 : 2020-05-27 09:40:54.5541 [Provisioning] [21] [Debug] Code execution scope ended 399ms 3621dd0f-13c6-4ecd-92f1-c83d35c8100e
Apply-PnPTenantTemplate : Object reference not set to an instance of an object.
At line:5 char:1

  • Apply-PnPTenantTemplate -Path starterkit.pnp -Parameters @{"PORTALURL ...
  • ~~~~~~~~~~~~~~~~~

    • CategoryInfo : WriteError: (:) [Apply-PnPTenantTemplate], NullReferenceException

    • FullyQualifiedErrorId : EXCEPTION,SharePointPnP.PowerShell.Commands.Provisioning.Tenant.ApplyTenantTemplate

my tenant is on first release. this was set 2-3 days ago

fyi, i just created a brand new developer tenant 3 days ago and turned on first release immediately.

and i just downloaded the master branch 20 minutes ago.

Name Value
---- -----
PSVersion 5.1.18362.628
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.18362.628
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

PS C:\Users\ngri\Documents\GitHub\sp-starter-kit\provisioning> get-module sharepoint*

ModuleType Version Name ExportedCommands
---------- ------- ---- ----------------
Binary 3.21.20... SharePointPnPPowerShellOnline {Add-PnPAlert, Add-PnPApp, Add-PnPApplicationCustomizer, Add-PnPClientSidePage...}

@richie4444 is there any other unique settings regarding your tenant you may have set? Non-English tenant, different authentication method, any other tenant setting you may have set?

As we have been unable to duplicate this issue, would anyone be willing to temporarily open their dev tenant to me that is showing this error for debugging?

yes, it's a brand new developer tenant i just created so i'm happy to open it up to you. how do i do that?

My tenant is set to standard release

[image: image.png]

I think I didnt pull the latest changes so I did that and applied again
with same error.
Seems like we dont have to worry about master branch. So I am still getting
same error on V2.

Unfortunately its not going anywhere.

On Wed, May 27, 2020 at 1:23 AM Eric Overfield notifications@github.com
wrote:

@zenaidura https://github.com/zenaidura You will want to set your
tenant to first release. This is done in your O365 tenant admin settings.
Once this is set for everyone, you will need to wait up to 24 hours for
this to fully take effect.

Looking at your debug console, for some reason it appears as though you
have the V1 provisioning template. The debug console shows
sharepoint-starter-kit.sppkg, which is no longer used by the master branch.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/pnp/sp-starter-kit/issues/393#issuecomment-634454580,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACHEGA2NTMSC4W5MSVDGBJDRTSWUPANCNFSM4NHH522Q
.

--
Ashar Khan

LinkedIn: http://linkedin.com/in/ashar
Website: http://www.ashark.net

hi Eric, how do i get you access to my tenant?

@richie4444 can you DM me at twitter at @ericoverfield? or DM at linked in /in/ericoverfield?

Please provide the output of the following PS script:

Get-Module SharePointPnPPowerShell* -ListAvailable | Select-Object Name,Version | Sort-Object Version -Descending

if more than one version comes back, please try uninstalled all but the latest Online versions. If you have multiple pnpps versions installed at once, there is a possibility that one of the older modules is being used to process the template, and it cannot read the sequence object properly.

[image: image.png]

On Thu, May 28, 2020 at 7:03 PM Eric Overfield notifications@github.com
wrote:

Please provide the output of the following PS script:

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/pnp/sp-starter-kit/issues/393#issuecomment-635680123,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACHEGA3KRRE3HA22PCZKZ5TRT33VTANCNFSM4NHH522Q
.

--
Ashar Khan

LinkedIn: http://linkedin.com/in/ashar
Website: http://www.ashark.net

@zenaidura I unfortunately cannot see the image you uploaded, can you upload directly to the GitHub Issue? Thanks! :)

image

In debugging with others, I have been finding that I can deploy the starter kit from a fresh clone to tenants that others cannot deploy to. I have to believe then there are differences in workstations used to deplpy.

Would you please try deploying the kit using pnp powershell version 3.20.2004.0?

I recommend uninstalling 2.21.2005.1 and then installing the specific version 3.20.2004.0.

145 Category

  • [x] Bug

Apply-PnPTenantTemplate : Object reference not set to an instance of an object. At line:1 char:1 + Apply-PnPTenantTemplate -Path starterkit.pnp -Parameters @{"PORTALURL ... + ~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (:) [Apply-PnPTenantTemplate], NullReferenceException + FullyQualifiedErrorId : EXCEPTION,SharePointPnP.PowerShell.Commands.Provisioning.Tenant.ApplyTenantTemplate

Expected or Desired Behavior

Expect it to provision the site hierarchy and apply starter kit but it fails in the script execution without much information about the error

Observed Behavior

Apply-PnPTenantTemplate : Object reference not set to an instance of an object. At line:1 char:1 + Apply-PnPTenantTemplate -Path starterkit.pnp -Parameters @{"PORTALURL ... + ~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (:) [Apply-PnPTenantTemplate], NullReferenceException + FullyQualifiedErrorId : EXCEPTION,SharePointPnP.PowerShell.Commands.Provisioning.Tenant.ApplyTenantTemplate

Steps to Reproduce

  • Connect to SP Online using Connect-PnPOnline
    *Apply-PnPTenantTemplate as follows:
    Apply-PnPTenantTemplate -Path starterkit.pnp -Parameters @{"PORTALURL"="/sites/collabtecportal"; "MARKETINGALIAS"="collabtecmarketing"; "HRALIAS"="collabtechr"; "Company"="CollabTec Consulting" }

Environment Details (_Development & Target environment_)

SharePoint Online

Thanks for your contribution! Sharing is caring.

I would suggest you to see issue: #401 . In my case i resolved this issue by updating pnp package with pnp site collection description parameter(which gave null error) and displayname of team sites (HR and Marketing)

We recently pushed a few bug fixes to address provisioning issues, in particular 401 (#401). Please pull the latest master and see how that works for you.

Also, I had problems installing the kit with PnP PS version 3.22.2006.2. I suggest removing all versions of SharePointPnPPowerShellOnline on your workstation, then installing April 2020 release as a test (3.20.2004.0) i.e.

Install-Module -Name "SharePointPnPPowerShellOnline" -RequiredVersion 3.20.2004.0

This issue has been automatically marked as stale because it has marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within next 7 days of this comment. Thank you for your contributions to SharePoint Developer activities.

Closing issue due no response from original author. If this issue is still occurring, please open a new issue with additional details. Notice that if you have included another related issue as additional comment on this, please open that also as separate issue, so that we can track it independently.

Was this page helpful?
0 / 5 - 0 ratings