Microsoft365DSC icon indicating copy to clipboard operation
Microsoft365DSC copied to clipboard

SPO export: Getting multiple The collection has not been initialized errors

Open adhodgson1 opened this issue 8 months ago • 0 comments

When attempting to export SharePoint Online properties I am getting the following in the event log and blank configuration files for the various components, an example is shown:

The collection has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested. } \ at Export-TargetResource, C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.24.424.1\DSCResources\MSFT_SPOUserProfileProperty\MSFT_SPOUserProfileProperty.psm1: line 308 \ at Start-M365DSCConfigurationExtract, C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.24.424.1\Modules\M365DSCReverse.psm1: line 677 \ at Export-M365DSCConfiguration, C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.24.424.1\Modules\M365DSCUtil.psm1: line 1375

Using module version 1.24.424.1 with app authentication using certificates.

adhodgson1 avatar May 28 '24 11:05 adhodgson1