pnp / PnP-PowerShell

SharePoint PnP PowerShell CmdLets
https://pnp.github.io/powershell
Other
990 stars 663 forks source link

Apply-PnPProvisioningTemplate: Object reference not set to an instance of an object #2202

Open rmunasinghe opened 5 years ago

rmunasinghe commented 5 years ago

SharePoint/sp-dev-docs#3956 ## Category

Expected or Desired Behavior

PnP Template applied to site without errors.

Observed Behavior

We have several different instances of site provisioning PowerShell scripts that have suddenly stopped working despite not making any changes to them in a while. It appears to have occurred sometime after August 7, 2019.

Output from PnP Trace Log:

Apply-PnPProvisioningTemplate -Path "C:\pnptemplates\Site-Template.xml" -ClearNavigation
powershell_ise.exe Information: 0 : 2019-08-12 15:49:12.1332    [OfficeDevPnP.Core] [0] [Information]   File Site-Template.xml retrieved from folder    0ms 
powershell_ise.exe Information: 0 : 2019-08-12 15:49:12.1352    [OfficeDevPnP.Core] [0] [Information]   File Site-Template.xml retrieved from folder    0ms 
powershell_ise.exe Information: 0 : 2019-08-12 15:49:12.1773    [Provisioning]  [11]    [Debug] Code execution scope started    0ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:12.1802    [Provisioning]  [11]    [Information]   ProgressDelegate registered 3ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:12.1812    [Provisioning]  [11]    [Information]   MessagesDelegate registered 4ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:15.7988    [Extensibility Providers]   [11]    [Debug] Code execution scope started    0ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:15.8009    [Extensibility Providers]   [11]    [Debug] Code execution scope ended  1ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:15.8018    [ProvisioningTemplate WebHook Call] [11]    [Debug] Code execution scope started    0ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:15.8028    [ProvisioningTemplate WebHook Call] [11]    [Debug] Code execution scope ended  1ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:15.8038    [ProvisioningTemplate WebHook Call] [11]    [Debug] Code execution scope started    0ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:15.8048    [ProvisioningTemplate WebHook Call] [11]    [Debug] Code execution scope ended  0ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:15.8078    [Regional Settings] [11]    [Debug] Code execution scope started    0ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:16.9024    [Regional Settings] [11]    [Debug] Code execution scope ended  1094ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:16.9043    [ProvisioningTemplate WebHook Call] [11]    [Debug] Code execution scope started    0ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:16.9053    [ProvisioningTemplate WebHook Call] [11]    [Debug] Code execution scope ended  0ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:16.9083    [ProvisioningTemplate WebHook Call] [11]    [Debug] Code execution scope started    0ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:16.9117    [ProvisioningTemplate WebHook Call] [11]    [Debug] Code execution scope ended  4ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:16.9157    [Site Security] [11]    [Debug] Code execution scope started    0ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Warning: 0 : 2019-08-12 15:49:24.0132    [Site Security] [11]    [Information]   Won't modify associated group configuration since the template is applied to a NoScript site.   7097ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:24.7181    [Site Security] [11]    [Debug] Adding users to group testla Owners 7801ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:24.7190    [Site Security] [11]    [Debug] Adding user c:0o.c|federateddirectoryclaimprovider|58d3b0ff-79b0-4076-9c19-49974b9a889e_o   7803ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:25.9025    [Site Security] [11]    [Debug] Adding users to group testla Members    8986ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:25.9031    [Site Security] [11]    [Debug] Adding user c:0o.c|federateddirectoryclaimprovider|58d3b0ff-79b0-4076-9c19-49974b9a889e 8987ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:28.5484    [Site Security] [11]    [Debug] Code execution scope ended  11632ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:28.5504    [ProvisioningTemplate WebHook Call] [11]    [Debug] Code execution scope started    0ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:28.5514    [ProvisioningTemplate WebHook Call] [11]    [Debug] Code execution scope ended  0ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:28.5534    [ProvisioningTemplate WebHook Call] [11]    [Debug] Code execution scope started    0ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:28.5534    [ProvisioningTemplate WebHook Call] [11]    [Debug] Code execution scope ended  0ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:28.5554    [Features]  [11]    [Debug] Code execution scope started    0ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:31.1471    [Features]  [11]    [Debug] Code execution scope ended  2591ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:31.1481    [ProvisioningTemplate WebHook Call] [11]    [Debug] Code execution scope started    0ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:31.1511    [ProvisioningTemplate WebHook Call] [11]    [Debug] Code execution scope ended  2ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:31.1521    [ProvisioningTemplate WebHook Call] [11]    [Debug] Code execution scope started    0ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:31.1541    [ProvisioningTemplate WebHook Call] [11]    [Debug] Code execution scope ended  2ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:31.1561    [Fields]    [11]    [Debug] Code execution scope started    0ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:31.4401    [Fields]    [11]    [Debug] Updating field {c9e98b46-657e-4f0c-8a8e-6c62c93f1138} in site   283ms   42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:33.1130    [Fields]    [11]    [Debug] Updating field {baf27a67-132c-49b6-9b5c-6e8a5f9ab52e} in site   1956ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:33.9830    [Fields]    [11]    [Debug] Updating field {7811a799-5115-4102-b229-cfcc3a49fc3b} in site   2826ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:34.9398    [Fields]    [11]    [Debug] Updating field {c0afe321-3d3e-421d-9226-53eac1d9ce95} in site   3783ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:36.2796    [Fields]    [11]    [Debug] Updating field {f711bb94-12ac-4ed2-bebe-392bfb54b356} in site   5123ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:36.9391    [Fields]    [11]    [Debug] Updating field {8fab2bcb-421a-43e9-8d3e-fd1f6db466cc} in site   5783ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:38.1427    [Fields]    [11]    [Debug] Updating field {d9cf93e1-8e3e-4e86-9839-1c0db209a110} in site   6986ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:39.9228    [Fields]    [11]    [Debug] Updating field {f9e13028-3c0d-4906-bf4d-69a2ccf78930} in site   8766ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:41.3199    [Fields]    [11]    [Debug] Updating field {7c14054b-8594-4a9c-a701-1cee5c29d93e} in site   10163ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:42.1240    [Fields]    [11]    [Debug] Code execution scope ended  10968ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:42.1290    [ProvisioningTemplate WebHook Call] [11]    [Debug] Code execution scope started    0ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:42.1310    [ProvisioningTemplate WebHook Call] [11]    [Debug] Code execution scope ended  2ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:42.1320    [ProvisioningTemplate WebHook Call] [11]    [Debug] Code execution scope started    0ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:42.1340    [ProvisioningTemplate WebHook Call] [11]    [Debug] Code execution scope ended  1ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:42.1360    [Content Types] [11]    [Debug] Code execution scope started    0ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:43.7276    [Content Types] [11]    [Debug] Updating existing Content Type: 0x0101001405F3024652DB4A999D154C3354F99C - ClientDocument   1591ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:43.7326    [Content Types] [11]    [Debug] Field c042a256-787d-4a6f-8a8a-cf6ab767f12d exists in content type   1597ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:43.7347    [Content Types] [11]    [Debug] Field 5f47e085-2150-41dc-b661-442f3027f552 exists in content type   1599ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:43.7376    [Content Types] [11]    [Debug] Field 8553196d-ec8d-4564-9861-3dbe931050c8 exists in content type   1602ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:43.7406    [Content Types] [11]    [Debug] Field 8c06beca-0777-48f7-91c7-6da68bc07b69 exists in content type   1605ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:43.7436    [Content Types] [11]    [Debug] Field fa564e0f-0c70-4ab9-b863-0177e6ddd247 exists in content type   1607ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:43.7456    [Content Types] [11]    [Debug] Field 28cf69c5-fa48-462a-b5cd-27b6f9d2bd5f exists in content type   1609ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:43.7497    [Content Types] [11]    [Debug] Field 822c78e3-1ea9-4943-b449-57863ad33ca9 exists in content type   1613ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:43.7516    [Content Types] [11]    [Debug] Field 4dd7e525-8d6b-4cb4-9d3e-44ee25f973eb exists in content type   1616ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:43.7536    [Content Types] [11]    [Debug] Updating existing Content Type: 0x0101001405F3024652DB4A999D154C3354F99C01 - ClientDocument 1617ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:43.7566    [Content Types] [11]    [Debug] Field c042a256-787d-4a6f-8a8a-cf6ab767f12d exists in content type   1620ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:43.7586    [Content Types] [11]    [Debug] Field 5f47e085-2150-41dc-b661-442f3027f552 exists in content type   1622ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:43.7616    [Content Types] [11]    [Debug] Field 8553196d-ec8d-4564-9861-3dbe931050c8 exists in content type   1625ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:43.7656    [Content Types] [11]    [Debug] Field 8c06beca-0777-48f7-91c7-6da68bc07b69 exists in content type   1629ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:43.7687    [Content Types] [11]    [Debug] Field fa564e0f-0c70-4ab9-b863-0177e6ddd247 exists in content type   1632ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:43.7707    [Content Types] [11]    [Debug] Field 28cf69c5-fa48-462a-b5cd-27b6f9d2bd5f exists in content type   1634ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:43.7756    [Content Types] [11]    [Debug] Field 822c78e3-1ea9-4943-b449-57863ad33ca9 exists in content type   1639ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:43.7776    [Content Types] [11]    [Debug] Field 4dd7e525-8d6b-4cb4-9d3e-44ee25f973eb exists in content type   1641ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:43.7807    [Content Types] [11]    [Debug] Field c9e98b46-657e-4f0c-8a8e-6c62c93f1138 exists in content type   1644ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:43.7947    [Content Types] [11]    [Debug] Field f3b0adf9-c1a2-4b02-920d-943fba4b3611 exists in content type   1658ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:43.7967    [Content Types] [11]    [Debug] Field 8f6b6dd8-9357-4019-8172-966fcd502ed2 exists in content type   1661ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:43.7997    [Content Types] [11]    [Debug] Field d9cf93e1-8e3e-4e86-9839-1c0db209a110 exists in content type   1664ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:43.8027    [Content Types] [11]    [Debug] Field baf27a67-132c-49b6-9b5c-6e8a5f9ab52e exists in content type   1666ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:43.8047    [Content Types] [11]    [Debug] Field 8fab2bcb-421a-43e9-8d3e-fd1f6db466cc exists in content type   1668ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:43.8067    [Content Types] [11]    [Debug] Field 7c14054b-8594-4a9c-a701-1cee5c29d93e exists in content type   1671ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:43.8097    [Content Types] [11]    [Debug] Field 7811a799-5115-4102-b229-cfcc3a49fc3b exists in content type   1673ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:43.8117    [Content Types] [11]    [Debug] Field c0afe321-3d3e-421d-9226-53eac1d9ce95 exists in content type   1675ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:43.8147    [Content Types] [11]    [Debug] Field f9e13028-3c0d-4906-bf4d-69a2ccf78930 exists in content type   1679ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:43.8167    [Content Types] [11]    [Debug] Code execution scope ended  1680ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:43.8226    [ProvisioningTemplate WebHook Call] [11]    [Debug] Code execution scope started    0ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:43.8256    [ProvisioningTemplate WebHook Call] [11]    [Debug] Code execution scope ended  2ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:43.8276    [ProvisioningTemplate WebHook Call] [11]    [Debug] Code execution scope started    0ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:43.8276    [ProvisioningTemplate WebHook Call] [11]    [Debug] Code execution scope ended  0ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:43.8286    [List instances]    [11]    [Debug] Code execution scope started    0ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:44.6154    [List instances]    [11]    [Debug] Updating list Documents 786ms   42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Warning: 0 : 2019-08-12 15:49:45.1288    [List instances]    [11]    [Information]   Skip adding/updating custom actions because the site has "noscript" enabled.    1300ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:51.8447    [List instances]    [11]    [Debug] Updating list Documents with FieldRef c0afe3213d3e421d922653eac1d9ce95  8015ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:53.4848    [List instances]    [11]    [Debug] Updating list Documents with FieldRef ofab2bcb421a43e98d3efd1f6db466cc  9655ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:54.7849    [List instances]    [11]    [Debug] Updating list Documents with FieldRef d9cf93e18e3e4e8698391c0db209a110  10955ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:55.7831    [List instances]    [11]    [Debug] Updating list Documents with FieldRef ClientDocumentCategory    11954ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:57.1314    [List instances]    [11]    [Debug] Updating list Documents with FieldRef ClientDocumentType    13302ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:57.9734    [List instances]    [11]    [Debug] Updating list Documents with FieldRef AccountantAdvisor 14144ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:49:59.0688    [List instances]    [11]    [Debug] Updating list Documents with FieldRef ClientDocYearCreated  15240ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:50:00.1791    [List instances]    [11]    [Debug] Updating list Documents with FieldRef ClientDocLastModified 16350ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:50:01.5282    [List instances]    [11]    [Debug] Code execution scope ended  17699ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:50:01.5312    [ProvisioningTemplate WebHook Call] [11]    [Debug] Code execution scope started    0ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:50:01.5332    [ProvisioningTemplate WebHook Call] [11]    [Debug] Code execution scope ended  1ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:50:01.5372    [ProvisioningTemplate WebHook Call] [11]    [Debug] Code execution scope started    0ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:50:01.5382    [ProvisioningTemplate WebHook Call] [11]    [Debug] Code execution scope ended  1ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:50:01.5392    [Fields]    [11]    [Debug] Code execution scope started    0ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:50:01.7567    [Fields]    [11]    [Debug] Code execution scope ended  217ms   42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:50:01.7587    [ProvisioningTemplate WebHook Call] [11]    [Debug] Code execution scope started    0ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:50:01.7617    [ProvisioningTemplate WebHook Call] [11]    [Debug] Code execution scope ended  2ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:50:01.7628    [ProvisioningTemplate WebHook Call] [11]    [Debug] Code execution scope started    0ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:50:01.7647    [ProvisioningTemplate WebHook Call] [11]    [Debug] Code execution scope ended  2ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:50:01.7667    [Content Types] [11]    [Debug] Code execution scope started    0ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:50:03.2418    [Content Types] [11]    [Debug] Updating existing Content Type: 0x0101001405F3024652DB4A999D154C3354F99C - ClientDocument   1474ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:50:03.2458    [Content Types] [11]    [Debug] Field c042a256-787d-4a6f-8a8a-cf6ab767f12d exists in content type   1479ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:50:03.2488    [Content Types] [11]    [Debug] Field 5f47e085-2150-41dc-b661-442f3027f552 exists in content type   1482ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:50:03.2518    [Content Types] [11]    [Debug] Field 8553196d-ec8d-4564-9861-3dbe931050c8 exists in content type   1484ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:50:03.2538    [Content Types] [11]    [Debug] Field 8c06beca-0777-48f7-91c7-6da68bc07b69 exists in content type   1486ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:50:03.2578    [Content Types] [11]    [Debug] Field fa564e0f-0c70-4ab9-b863-0177e6ddd247 exists in content type   1491ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:50:03.2608    [Content Types] [11]    [Debug] Field 28cf69c5-fa48-462a-b5cd-27b6f9d2bd5f exists in content type   1493ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:50:03.2638    [Content Types] [11]    [Debug] Field 822c78e3-1ea9-4943-b449-57863ad33ca9 exists in content type   1496ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:50:03.2658    [Content Types] [11]    [Debug] Field 4dd7e525-8d6b-4cb4-9d3e-44ee25f973eb exists in content type   1498ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:50:03.2768    [Content Types] [11]    [Debug] Updating existing Content Type: 0x0101001405F3024652DB4A999D154C3354F99C01 - ClientDocument 1509ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:50:03.2798    [Content Types] [11]    [Debug] Field c042a256-787d-4a6f-8a8a-cf6ab767f12d exists in content type   1512ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:50:03.2818    [Content Types] [11]    [Debug] Field 5f47e085-2150-41dc-b661-442f3027f552 exists in content type   1515ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:50:03.2849    [Content Types] [11]    [Debug] Field 8553196d-ec8d-4564-9861-3dbe931050c8 exists in content type   1517ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:50:03.2888    [Content Types] [11]    [Debug] Field 8c06beca-0777-48f7-91c7-6da68bc07b69 exists in content type   1521ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:50:03.2908    [Content Types] [11]    [Debug] Field fa564e0f-0c70-4ab9-b863-0177e6ddd247 exists in content type   1523ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:50:03.2938    [Content Types] [11]    [Debug] Field 28cf69c5-fa48-462a-b5cd-27b6f9d2bd5f exists in content type   1526ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:50:03.2968    [Content Types] [11]    [Debug] Field 822c78e3-1ea9-4943-b449-57863ad33ca9 exists in content type   1530ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:50:03.2998    [Content Types] [11]    [Debug] Field 4dd7e525-8d6b-4cb4-9d3e-44ee25f973eb exists in content type   1533ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:50:03.3038    [Content Types] [11]    [Debug] Field c9e98b46-657e-4f0c-8a8e-6c62c93f1138 exists in content type   1536ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:50:03.3059    [Content Types] [11]    [Debug] Field f3b0adf9-c1a2-4b02-920d-943fba4b3611 exists in content type   1539ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:50:03.3088    [Content Types] [11]    [Debug] Field 8f6b6dd8-9357-4019-8172-966fcd502ed2 exists in content type   1541ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:50:03.3109    [Content Types] [11]    [Debug] Field d9cf93e1-8e3e-4e86-9839-1c0db209a110 exists in content type   1543ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:50:03.3128    [Content Types] [11]    [Debug] Field baf27a67-132c-49b6-9b5c-6e8a5f9ab52e exists in content type   1546ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:50:03.3228    [Content Types] [11]    [Debug] Field 8fab2bcb-421a-43e9-8d3e-fd1f6db466cc exists in content type   1556ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:50:03.3248    [Content Types] [11]    [Debug] Field 7c14054b-8594-4a9c-a701-1cee5c29d93e exists in content type   1558ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:50:03.3278    [Content Types] [11]    [Debug] Field 7811a799-5115-4102-b229-cfcc3a49fc3b exists in content type   1560ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:50:03.3518    [Content Types] [11]    [Debug] Field c0afe321-3d3e-421d-9226-53eac1d9ce95 exists in content type   1585ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:50:03.3548    [Content Types] [11]    [Debug] Field f9e13028-3c0d-4906-bf4d-69a2ccf78930 exists in content type   1587ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:50:03.3558    [Content Types] [11]    [Debug] Code execution scope ended  1588ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:50:03.3569    [ProvisioningTemplate WebHook Call] [11]    [Debug] Code execution scope started    0ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:50:03.3588    [ProvisioningTemplate WebHook Call] [11]    [Debug] Code execution scope ended  2ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:50:03.3598    [ProvisioningTemplate WebHook Call] [11]    [Debug] Code execution scope started    0ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:50:03.3608    [ProvisioningTemplate WebHook Call] [11]    [Debug] Code execution scope ended  0ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:50:03.3618    [List instances]    [11]    [Debug] Code execution scope started    0ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:50:04.3087    [List instances]    [11]    [Debug] Updating list Documents 947ms   42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Warning: 0 : 2019-08-12 15:50:04.7663    [List instances]    [11]    [Information]   Skip adding/updating custom actions because the site has "noscript" enabled.    1404ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:50:10.8759    [List instances]    [11]    [Debug] Code execution scope ended  7514ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:50:10.8839    [ProvisioningTemplate WebHook Call] [11]    [Debug] Code execution scope started    0ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:50:10.8879    [ProvisioningTemplate WebHook Call] [11]    [Debug] Code execution scope ended  4ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:50:10.8919    [ProvisioningTemplate WebHook Call] [11]    [Debug] Code execution scope started    0ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:50:10.9019    [ProvisioningTemplate WebHook Call] [11]    [Debug] Code execution scope ended  9ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:50:10.9039    [List instances]    [11]    [Debug] Code execution scope started    0ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:50:12.4087    [List instances]    [11]    [Debug] Updating list Documents 1504ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Warning: 0 : 2019-08-12 15:50:12.7792    [List instances]    [11]    [Information]   Skip adding/updating custom actions because the site has "noscript" enabled.    1875ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:50:20.3960    [List instances]    [11]    [Debug] Creating view All Documents 9491ms  42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:50:22.5021    [List instances]    [11]    [Debug] Creating view By Document Category  11597ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:50:23.9195    [List instances]    [11]    [Debug] Creating view No Folders    13015ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:50:26.8523    [List instances]    [11]    [Debug] Code execution scope ended  15947ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
powershell_ise.exe Information: 0 : 2019-08-12 15:50:26.8553    [Provisioning]  [11]    [Debug] Code execution scope ended  74677ms 42ff01d2-0604-4fa4-81fc-1717d6a209f1
Apply-PnPProvisioningTemplate : Object reference not set to an instance of an object.
At line:3 char:1
+ Apply-PnPProvisioningTemplate -Path "C:\pnptemplates\Site-Template.xml" -Clear ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : WriteError: (:) [Apply-PnPProvisioningTemplate], ServerException
    + FullyQualifiedErrorId : EXCEPTION,SharePointPnP.PowerShell.Commands.Provisioning.Site.ApplyProvisioningTemplate

Steps to Reproduce

I can provide the PnP template .xml file if required. The above site has two custom content types and adds those content types to the default "Documents" library.

  1. Create a new site collection
  2. Apply-PnPProvisioningTemplate on the site collection
msft-github-bot commented 5 years ago

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

NicolajHedeager commented 5 years ago

We started to see this error around the 7th of August as well.

The SharePoint Server-side APIs throws a NullReferenceException when we try to update the title of a list. This is done in plain CSOM, without the PnP provisioning engine. If we try to change the title in the browser, SharePoint also shows an error page.

We found that this was only happening on lists which had an invalid Managed Metadata field i.e. the termset for the field had been deleted in the taxonomy store. Deleting the invalid Managed Metadata field from the list solved the issue.

andrewconnell commented 5 years ago

This should be posted to the relevant PnP project, not the general sp-dev-docs issue list that's meant for SharePoint development questions. Moving this issue to the relevant repo...

ghost commented 5 years ago

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

AndyBolam commented 4 years ago

I think I'm seeing this in some PnP templates that we are running under an Azure function (V1), but I need to understand if this is my error or this bug :) Seems it hasn't been looked at for a while.

towerbe commented 4 years ago

Wondering if anyone has made any progress on this issue?

I am trying to use Apply-PnPProvisioningTemplate to "copy" a list from one site to another (just the structure). I am using the appropriate parameters to limit the handlers to Lists. The list actually gets created, but none of the columns get created. The cmdlet fails with the same error as specified in this issue title. That's the only error I get.

Any help is greatly appreciated.