Test case details
Test name:
OfficeDevPnP.Core.Tests.Framework.Functional.SecurityTests.SiteCollectionSecurityTest
Outcome:
Run at:
9/9/2019 8:52:40 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 = a59f029f-c558-4047-f1f8-65f5220fd051
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-09 20:52:40.8267	[OfficeDevPnP.Core]	[0]	[Debug]	AuthenticationManager:EnsureToken(siteUrl:https://portal2013.pnp.com/sites/tenantadmin,realm:d8623c9e-30c7-473a-83bc-d907df44a26e,appId:a7ec4f8f-275b-4ea6-be14-0ae5330128a2,appSecret:PRIVATE)	0ms	
vstest.console.exe Information: 0 : 2019-09-09 20:52:40.9327	[OfficeDevPnP.Core]	[0]	[Debug]	Site search ''	0ms	
vstest.console.exe Information: 0 : 2019-09-09 20:52:40.9327	[OfficeDevPnP.Core]	[0]	[Debug]	Lease expiration date: 9/10/2019 4:52:40 AM	0ms	
vstest.console.exe Error: 0 : 2019-09-09 20:52:40.9897	[OfficeDevPnP.Core]	[0]	[Error]	Site search error. Error = The server was unable to process the request due to an internal error.  For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework SDK documentation and inspect the server trace logs.	0ms	
vstest.console.exe Information: 0 : 2019-09-09 20:52:40.9937	[OfficeDevPnP.Core]	[0]	[Debug]	AuthenticationManager:EnsureToken(siteUrl:https://portal2013.pnp.com/sites/pnptest2,realm:d8623c9e-30c7-473a-83bc-d907df44a26e,appId:a7ec4f8f-275b-4ea6-be14-0ae5330128a2,appSecret:PRIVATE)	0ms	
vstest.console.exe Information: 0 : 2019-09-09 20:52:41.0867	[OfficeDevPnP.Core]	[0]	[Debug]	Lease expiration date: 9/10/2019 4:52:41 AM	0ms	
vstest.console.exe Information: 0 : 2019-09-09 20:53:20.9862	[OfficeDevPnP.Core]	[0]	[Information]	Creating web 'sub' with template ''.	0ms	
vstest.console.exe Information: 0 : 2019-09-09 20:53:25.5530	[OfficeDevPnP.Core]	[0]	[Debug]	AuthenticationManager:EnsureToken(siteUrl:https://portal2013.pnp.com/sites/TestPnPSC_12345_f5db8471-a6c1-4cda-bbbd-51246b864eb2,realm:d8623c9e-30c7-473a-83bc-d907df44a26e,appId:a7ec4f8f-275b-4ea6-be14-0ae5330128a2,appSecret:PRIVATE)	0ms	
vstest.console.exe Information: 0 : 2019-09-09 20:53:25.6491	[OfficeDevPnP.Core]	[0]	[Debug]	Lease expiration date: 9/10/2019 4:53:25 AM	0ms	
vstest.console.exe Information: 0 : 2019-09-09 20:53:25.9100	[OfficeDevPnP.Core]	[0]	[Information]	File security_add.xml retrieved from folder Templates	0ms	
vstest.console.exe Information: 0 : 2019-09-09 20:53:25.9720	[Provisioning]	[471]	[Debug]	Code execution scope started	0ms	0496811f-e685-48ef-a289-1e5e836e908d
vstest.console.exe Information: 0 : 2019-09-09 20:53:25.9720	[Provisioning]	[471]	[Information]	ProgressDelegate registered	0ms	0496811f-e685-48ef-a289-1e5e836e908d
vstest.console.exe Information: 0 : 2019-09-09 20:53:26.0140	[ProvisioningTemplate WebHook Call]	[471]	[Debug]	Code execution scope started	0ms	0496811f-e685-48ef-a289-1e5e836e908d
vstest.console.exe Information: 0 : 2019-09-09 20:53:26.0140	[ProvisioningTemplate WebHook Call]	[471]	[Debug]	Code execution scope ended	0ms	0496811f-e685-48ef-a289-1e5e836e908d
vstest.console.exe Information: 0 : 2019-09-09 20:53:26.0140	[ProvisioningTemplate WebHook Call]	[471]	[Debug]	Code execution scope started	0ms	0496811f-e685-48ef-a289-1e5e836e908d
vstest.console.exe Information: 0 : 2019-09-09 20:53:26.0140	[ProvisioningTemplate WebHook Call]	[471]	[Debug]	Code execution scope ended	0ms	0496811f-e685-48ef-a289-1e5e836e908d
vstest.console.exe Information: 0 : 2019-09-09 20:53:26.0140	[Site Security]	[471]	[Debug]	Code execution scope started	0ms	0496811f-e685-48ef-a289-1e5e836e908d
vstest.console.exe Information: 0 : 2019-09-09 20:53:26.0450	[Site Security]	[471]	[Debug]	Code execution scope ended	30ms	0496811f-e685-48ef-a289-1e5e836e908d
vstest.console.exe Information: 0 : 2019-09-09 20:53:26.0450	[Provisioning]	[471]	[Debug]	Code execution scope ended	72ms	0496811f-e685-48ef-a289-1e5e836e908d