SharePoint / sp-dev-gdpr-activity-hub

GDPR Activity Hub - Open source starter kit for building a management hub for EU GDPR (European Global Data Protection Regulation).
MIT License
96 stars 47 forks source link

When running setup for second time some CDN creation errors appear #31

Open Pieter-Veenstra opened 7 years ago

Pieter-Veenstra commented 7 years ago

The following errors could be handled a bit better:

Creating CDN Site Collection
New-PnPTenantSite : A site already exists at url https://pieterveenstratriaddev.sharepoint.com/sites/CDN.
At C:\Workspace\sp-dev-gdpr-activity-hub\Scripts\Provision-GDPRActivityHub.ps1:105 char:13
+             New-PnPTenantSite -Title $CDNDescription -Url $cdnSiteURL ...
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : WriteError: (:) [New-PnPTenantSite], ServerException
    + FullyQualifiedErrorId : EXCEPTION,SharePointPnP.PowerShell.Commands.NewTenantSite

New-PnPList : A list, survey, discussion board, or document library with the specified title already exists in this Web site.  Please choose another title.
At C:\Workspace\sp-dev-gdpr-activity-hub\Scripts\Provision-GDPRActivityHub.ps1:109 char:13
+             New-PnPList -Title $CDNLibraryName -Url $CDNLibraryName - ...
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : WriteError: (:) [New-PnPList], ServerException
    + FullyQualifiedErrorId : EXCEPTION,SharePointPnP.PowerShell.Commands.Lists.NewList