Skip to content

Problem with applying templates for HR Hub & Benefits Sites #74

Description

@SteveWedge

During the course of today I've been trying to apply the Benefits & ContosoWorks templates against a couple of sites that have been created in the organizational tenant that I'm responsible for. Although I have previously successfully applied the Benefits template this no longer works and I have seen exactly the same issue with the attempt to apply the ContosoWorks (HR Hub) template.

Below is the cmdlet that I am running, Invoke-PnPSiteTemplate -Path, and as you can see it fails with an invalid Date Time value.

PS C:\Windows\system32> Invoke-PnPSiteTemplate -Path "C:\Users\myacct\client space\Site-Templates - Templates\sp-dev-provisioning-templates-master\tenant\contosoworks\contosoworks.pnp"
Invoke-PnPSiteTemplate : String was not recognized as a valid DateTime.
At line:1 char:1

  • Invoke-PnPSiteTemplate -Path "C:\Users\myacct\client space\Site ...
  •   + CategoryInfo          : WriteError: (:) [Invoke-PnPSiteTemplate], FormatException
      + FullyQualifiedErrorId : EXCEPTION,PnP.PowerShell.Commands.Provisioning.Site.InvokeSiteTemplate
    
    

I'm at a loss as to how to resolve this, I've gone down several rabbit holes, thinking that there must be an issue with the data in the XML template file within the package. Attempting to eliminate that as a cause is only creating further errors, so I'm going to see what the community has in the way of suggested solutions.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions