Test case details
Test name:
OfficeDevPnP.Core.Tests.Framework.Functional.SecurityTests.SiteCollectionSecurityTest
Outcome:
Run at:
7/11/2019 7:55:03 PM
Duration:
00:00:00
Error message:
Test method OfficeDevPnP.Core.Tests.Framework.Functional.SecurityTests.SiteCollectionSecurityTest threw exception: Microsoft.SharePoint.Client.PropertyOrFieldNotInitializedException: The property or field 'Title' has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested.
Stacktrace:
at at Microsoft.SharePoint.Client.ClientObject.CheckUninitializedProperty(String propName) at Microsoft.SharePoint.Client.Principal.get_Title() at OfficeDevPnP.Core.Framework.Provisioning.ObjectHandlers.ObjectSiteSecurity.AddUserToGroup(Web web, Group group, IEnumerable`1 members, PnPMonitoredScope scope, TokenParser parser) in c:\pnpbuild\Core\OfficeDevPnP.Core\Framework\Provisioning\ObjectHandlers\ObjectSiteSecurity.cs:line 660 at OfficeDevPnP.Core.Framework.Provisioning.ObjectHandlers.ObjectSiteSecurity.ProvisionObjects(Web web, ProvisioningTemplate template, TokenParser parser, ProvisioningTemplateApplyingInformation applyingInformation) in c:\pnpbuild\Core\OfficeDevPnP.Core\Framework\Provisioning\ObjectHandlers\ObjectSiteSecurity.cs:line 250 at OfficeDevPnP.Core.Framework.Provisioning.ObjectHandlers.SiteToTemplateConversion.ApplyRemoteTemplate(Web web, ProvisioningTemplate template, ProvisioningTemplateApplyingInformation provisioningInfo, Boolean calledFromHierarchy, TokenParser tokenParser) in c:\pnpbuild\Core\OfficeDevPnP.Core\Framework\Provisioning\ObjectHandlers\SiteToTemplateConversion.cs:line 396 at Microsoft.SharePoint.Client.WebExtensions.ApplyProvisioningTemplate(Web web, ProvisioningTemplate template, ProvisioningTemplateApplyingInformation applyingInformation) in c:\pnpbuild\Core\OfficeDevPnP.Core\Extensions\WebExtensions.cs:line 1174 at OfficeDevPnP.Core.Tests.Framework.Functional.Implementation.ImplementationBase.TestProvisioningTemplate(ClientContext cc, String templateName, Handlers handlersToProcess, ProvisioningTemplateApplyingInformation ptai, ProvisioningTemplateCreationInformation ptci) in c:\pnpbuild\Core\OfficeDevPnP.Core.Tests\Framework\Functional\Implementation\ImplementationBase.cs:line 72 at OfficeDevPnP.Core.Tests.Framework.Functional.Implementation.SecurityImplementation.SiteCollectionSecurity(String url) in c:\pnpbuild\Core\OfficeDevPnP.Core.Tests\Framework\Functional\Implementation\SecurityImplementation.cs:line 18 at OfficeDevPnP.Core.Tests.Framework.Functional.SecurityTests.SiteCollectionSecurityTest() in c:\pnpbuild\Core\OfficeDevPnP.Core.Tests\Framework\Functional\SecurityTests.cs:line 55
Console output:
    Applying template - 1/2 - Initializing engine
Applying template - 2/2 - Site Security
Type = Microsoft.SharePoint.Client.PropertyOrFieldNotInitializedException
TraceCorrelationId = 804cef9e-67e0-8012-70d0-2ce150277999
Message = The property or field 'Title' has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested.
Source = Microsoft.SharePoint.Client.Runtime
TargetSite = Void CheckUninitializedProperty(System.String)
StackTrace =    at Microsoft.SharePoint.Client.ClientObject.CheckUninitializedProperty(String propName)
   at Microsoft.SharePoint.Client.Principal.get_Title()
   at OfficeDevPnP.Core.Framework.Provisioning.ObjectHandlers.ObjectSiteSecurity.AddUserToGroup(Web web, Group group, IEnumerable`1 members, PnPMonitoredScope scope, TokenParser parser) in c:\pnpbuild\Core\OfficeDevPnP.Core\Framework\Provisioning\ObjectHandlers\ObjectSiteSecurity.cs:line 660
   at OfficeDevPnP.Core.Framework.Provisioning.ObjectHandlers.ObjectSiteSecurity.ProvisionObjects(Web web, ProvisioningTemplate template, TokenParser parser, ProvisioningTemplateApplyingInformation applyingInformation) in c:\pnpbuild\Core\OfficeDevPnP.Core\Framework\Provisioning\ObjectHandlers\ObjectSiteSecurity.cs:line 250
   at OfficeDevPnP.Core.Framework.Provisioning.ObjectHandlers.SiteToTemplateConversion.ApplyRemoteTemplate(Web web, ProvisioningTemplate template, ProvisioningTemplateApplyingInformation provisioningInfo, Boolean calledFromHierarchy, TokenParser tokenParser) in c:\pnpbuild\Core\OfficeDevPnP.Core\Framework\Provisioning\ObjectHandlers\SiteToTemplateConversion.cs:line 396
   at Microsoft.SharePoint.Client.WebExtensions.ApplyProvisioningTemplate(Web web, ProvisioningTemplate template, ProvisioningTemplateApplyingInformation applyingInformation) in c:\pnpbuild\Core\OfficeDevPnP.Core\Extensions\WebExtensions.cs:line 1174
   at OfficeDevPnP.Core.Tests.Framework.Functional.Implementation.ImplementationBase.TestProvisioningTemplate(ClientContext cc, String templateName, Handlers handlersToProcess, ProvisioningTemplateApplyingInformation ptai, ProvisioningTemplateCreationInformation ptci) in c:\pnpbuild\Core\OfficeDevPnP.Core.Tests\Framework\Functional\Implementation\ImplementationBase.cs:line 42
HResult = -2146233079



Debug Trace:
vstest.console.exe Information: 0 : 2019-07-11 19:55:03.5013	[OfficeDevPnP.Core]	[0]	[Debug]	AuthenticationManager:EnsureToken(siteUrl:https://portal2016.pnp.com/sites/tenantadmin,realm:d8623c9e-30c7-473a-83bc-d907df44a26e,appId:9ff790d6-1175-4abc-9891-8ed32d12b06a,appSecret:PRIVATE)	0ms	
vstest.console.exe Information: 0 : 2019-07-11 19:55:03.6107	[OfficeDevPnP.Core]	[0]	[Debug]	Site search ''	0ms	
vstest.console.exe Information: 0 : 2019-07-11 19:55:03.6107	[OfficeDevPnP.Core]	[0]	[Debug]	Lease expiration date: 7/12/2019 3:55:03 AM	0ms	
vstest.console.exe Error: 0 : 2019-07-11 19:55:03.6888	[OfficeDevPnP.Core]	[0]	[Error]	Site search error. Error = Search has encountered a problem that prevents results from being returned.  If the issue persists, please contact your administrator.	0ms	
vstest.console.exe Information: 0 : 2019-07-11 19:55:03.6888	[OfficeDevPnP.Core]	[0]	[Debug]	AuthenticationManager:EnsureToken(siteUrl:https://portal2016.pnp.com/sites/pnptest,realm:d8623c9e-30c7-473a-83bc-d907df44a26e,appId:9ff790d6-1175-4abc-9891-8ed32d12b06a,appSecret:PRIVATE)	0ms	
vstest.console.exe Information: 0 : 2019-07-11 19:55:03.7826	[OfficeDevPnP.Core]	[0]	[Debug]	Lease expiration date: 7/12/2019 3:55:03 AM	0ms	
vstest.console.exe Information: 0 : 2019-07-11 19:55:45.4402	[OfficeDevPnP.Core]	[0]	[Information]	Creating web 'sub' with template ''.	0ms	
vstest.console.exe Information: 0 : 2019-07-11 19:55:50.5809	[OfficeDevPnP.Core]	[0]	[Debug]	AuthenticationManager:EnsureToken(siteUrl:https://portal2016.pnp.com/sites/TestPnPSC_12345_aa84fa59-e802-4b5b-9a64-46867d525ce4,realm:d8623c9e-30c7-473a-83bc-d907df44a26e,appId:9ff790d6-1175-4abc-9891-8ed32d12b06a,appSecret:PRIVATE)	0ms	
vstest.console.exe Information: 0 : 2019-07-11 19:55:50.7059	[OfficeDevPnP.Core]	[0]	[Debug]	Lease expiration date: 7/12/2019 3:55:50 AM	0ms	
vstest.console.exe Information: 0 : 2019-07-11 19:55:51.0340	[OfficeDevPnP.Core]	[0]	[Information]	File security_add.xml retrieved from folder Templates	0ms	
vstest.console.exe Information: 0 : 2019-07-11 19:55:51.1121	[Provisioning]	[471]	[Debug]	Code execution scope started	0ms	54be9263-f3f6-43c7-8e0b-842d6980b9ff
vstest.console.exe Information: 0 : 2019-07-11 19:55:51.1121	[Provisioning]	[471]	[Information]	ProgressDelegate registered	0ms	54be9263-f3f6-43c7-8e0b-842d6980b9ff
vstest.console.exe Information: 0 : 2019-07-11 19:55:51.1591	[ProvisioningTemplate WebHook Call]	[471]	[Debug]	Code execution scope started	0ms	54be9263-f3f6-43c7-8e0b-842d6980b9ff
vstest.console.exe Information: 0 : 2019-07-11 19:55:51.1591	[ProvisioningTemplate WebHook Call]	[471]	[Debug]	Code execution scope ended	0ms	54be9263-f3f6-43c7-8e0b-842d6980b9ff
vstest.console.exe Information: 0 : 2019-07-11 19:55:51.1591	[ProvisioningTemplate WebHook Call]	[471]	[Debug]	Code execution scope started	0ms	54be9263-f3f6-43c7-8e0b-842d6980b9ff
vstest.console.exe Information: 0 : 2019-07-11 19:55:51.1591	[ProvisioningTemplate WebHook Call]	[471]	[Debug]	Code execution scope ended	0ms	54be9263-f3f6-43c7-8e0b-842d6980b9ff
vstest.console.exe Information: 0 : 2019-07-11 19:55:51.1591	[Site Security]	[471]	[Debug]	Code execution scope started	0ms	54be9263-f3f6-43c7-8e0b-842d6980b9ff
vstest.console.exe Information: 0 : 2019-07-11 19:55:51.2059	[Site Security]	[471]	[Debug]	Code execution scope ended	47ms	54be9263-f3f6-43c7-8e0b-842d6980b9ff
vstest.console.exe Information: 0 : 2019-07-11 19:55:51.2059	[Provisioning]	[471]	[Debug]	Code execution scope ended	95ms	54be9263-f3f6-43c7-8e0b-842d6980b9ff