Test case details
Test name:
OfficeDevPnP.Core.Tests.Framework.Functional.SecurityTests.SiteCollectionSecurityTest
Outcome:
Run at:
9/10/2019 7:53:19 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 404 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 = a6ee029f-1765-8012-70d0-2bb16958f3c6
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 404
   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-09-10 19:53:19.3088	[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-09-10 19:53:19.4359	[OfficeDevPnP.Core]	[0]	[Debug]	Site search ''	0ms	
vstest.console.exe Information: 0 : 2019-09-10 19:53:19.4359	[OfficeDevPnP.Core]	[0]	[Debug]	Lease expiration date: 9/11/2019 3:53:19 AM	0ms	
vstest.console.exe Error: 0 : 2019-09-10 19:53:19.5148	[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-09-10 19:53:19.5198	[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-09-10 19:53:19.6178	[OfficeDevPnP.Core]	[0]	[Debug]	Lease expiration date: 9/11/2019 3:53:19 AM	0ms	
vstest.console.exe Information: 0 : 2019-09-10 19:54:02.0715	[OfficeDevPnP.Core]	[0]	[Information]	Creating web 'sub' with template ''.	0ms	
vstest.console.exe Information: 0 : 2019-09-10 19:54:07.2339	[OfficeDevPnP.Core]	[0]	[Debug]	AuthenticationManager:EnsureToken(siteUrl:https://portal2016.pnp.com/sites/TestPnPSC_12345_a76ff915-7ca9-4646-a7f4-4e632f374c9c,realm:d8623c9e-30c7-473a-83bc-d907df44a26e,appId:9ff790d6-1175-4abc-9891-8ed32d12b06a,appSecret:PRIVATE)	0ms	
vstest.console.exe Information: 0 : 2019-09-10 19:54:07.3308	[OfficeDevPnP.Core]	[0]	[Debug]	Lease expiration date: 9/11/2019 3:54:07 AM	0ms	
vstest.console.exe Information: 0 : 2019-09-10 19:54:07.6879	[OfficeDevPnP.Core]	[0]	[Information]	File security_add.xml retrieved from folder Templates	0ms	
vstest.console.exe Information: 0 : 2019-09-10 19:54:07.7589	[Provisioning]	[465]	[Debug]	Code execution scope started	0ms	c3f66ca1-9445-429c-a279-c9ad736c7975
vstest.console.exe Information: 0 : 2019-09-10 19:54:07.7598	[Provisioning]	[465]	[Information]	ProgressDelegate registered	0ms	c3f66ca1-9445-429c-a279-c9ad736c7975
vstest.console.exe Information: 0 : 2019-09-10 19:54:07.8089	[ProvisioningTemplate WebHook Call]	[465]	[Debug]	Code execution scope started	0ms	c3f66ca1-9445-429c-a279-c9ad736c7975
vstest.console.exe Information: 0 : 2019-09-10 19:54:07.8089	[ProvisioningTemplate WebHook Call]	[465]	[Debug]	Code execution scope ended	0ms	c3f66ca1-9445-429c-a279-c9ad736c7975
vstest.console.exe Information: 0 : 2019-09-10 19:54:07.8089	[ProvisioningTemplate WebHook Call]	[465]	[Debug]	Code execution scope started	0ms	c3f66ca1-9445-429c-a279-c9ad736c7975
vstest.console.exe Information: 0 : 2019-09-10 19:54:07.8089	[ProvisioningTemplate WebHook Call]	[465]	[Debug]	Code execution scope ended	0ms	c3f66ca1-9445-429c-a279-c9ad736c7975
vstest.console.exe Information: 0 : 2019-09-10 19:54:07.8098	[Site Security]	[465]	[Debug]	Code execution scope started	0ms	c3f66ca1-9445-429c-a279-c9ad736c7975
vstest.console.exe Information: 0 : 2019-09-10 19:54:07.8489	[Site Security]	[465]	[Debug]	Code execution scope ended	39ms	c3f66ca1-9445-429c-a279-c9ad736c7975
vstest.console.exe Information: 0 : 2019-09-10 19:54:07.8489	[Provisioning]	[465]	[Debug]	Code execution scope ended	89ms	c3f66ca1-9445-429c-a279-c9ad736c7975