Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
SteveWedge opened this issue Aug 24, 2022 · 0 comments
Open

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

SteveWedge opened this issue Aug 24, 2022 · 0 comments

Comments

@SteveWedge
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant