{"action":"created","issue":{"url":"https://api.github.com/repos/OfficeDev/PnP-PowerShell/issues/210","labels_url":"https://api.github.com/repos/OfficeDev/PnP-PowerShell/issues/210/labels{/name}","comments_url":"https://api.github.com/repos/OfficeDev/PnP-PowerShell/issues/210/comments","events_url":"https://api.github.com/repos/OfficeDev/PnP-PowerShell/issues/210/events","html_url":"https://github.com/OfficeDev/PnP-PowerShell/issues/210","id":127933233,"number":210,"title":"Get-SPOProvisioningTemplate results in exception","user":{"login":"bclevering","id":8439274,"avatar_url":"https://avatars.githubusercontent.com/u/8439274?v=3","gravatar_id":"","url":"https://api.github.com/users/bclevering","html_url":"https://github.com/bclevering","followers_url":"https://api.github.com/users/bclevering/followers","following_url":"https://api.github.com/users/bclevering/following{/other_user}","gists_url":"https://api.github.com/users/bclevering/gists{/gist_id}","starred_url":"https://api.github.com/users/bclevering/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bclevering/subscriptions","organizations_url":"https://api.github.com/users/bclevering/orgs","repos_url":"https://api.github.com/users/bclevering/repos","events_url":"https://api.github.com/users/bclevering/events{/privacy}","received_events_url":"https://api.github.com/users/bclevering/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-01-21T14:17:10Z","updated_at":"2016-02-01T14:54:55Z","closed_at":null,"body":"When trying to get a provisioning template out of SharePoint Online i get the following error:\r\n\r\nGet-SPOProvisioningTemplate -out teamsitetemplate.xml:\r\n\r\nGet-SPOProvisioningTemplate : Specified argument was out of the range of valid values.\r\nParameter name: controlId\r\nAt line:1 char:1\r\n+ Get-SPOProvisioningTemplate -out teamsitetemplate.xml\r\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n    + CategoryInfo          : WriteError: (:) [Get-SPOProvisioningTemplate], ServerException\r\n    + FullyQualifiedErrorId : EXCEPTION,OfficeDevPnP.PowerShell.Commands.Branding.GetProvisioningTemplate\r\n\r\n$error[0].Exception.Stacktrace:\r\n\r\n   at Microsoft.SharePoint.Client.ClientRequest.ProcessResponseStream(Stream responseStream)\r\n   at Microsoft.SharePoint.Client.ClientRequest.ProcessResponse()\r\n   at Microsoft.SharePoint.Client.ClientContextExtensions.ExecuteQueryImplementation(ClientRuntimeContext clientContext\r\n, Int32 retryCount, Int32 delay)\r\n   at OfficeDevPnP.Core.Framework.Provisioning.ObjectHandlers.ObjectPageContents.ExtractObjects(Web web, ProvisioningTe\r\nmplate template, ProvisioningTemplateCreationInformation creationInfo)\r\n   at OfficeDevPnP.Core.Framework.Provisioning.ObjectHandlers.SiteToTemplateConversion.GetRemoteTemplate(Web web, Provi\r\nsioningTemplateCreationInformation creationInfo)\r\n   at OfficeDevPnP.PowerShell.Commands.Branding.GetProvisioningTemplate.GetProvisioningTemplateXML(XMLPnPSchemaVersion\r\nschema, String path)\r\n   at OfficeDevPnP.PowerShell.Commands.Branding.GetProvisioningTemplate.ExecuteCmdlet()\r\n   at OfficeDevPnP.PowerShell.Commands.SPOCmdlet.ProcessRecord()\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/OfficeDev/PnP-PowerShell/issues/comments/178002435","html_url":"https://github.com/OfficeDev/PnP-PowerShell/issues/210#issuecomment-178002435","issue_url":"https://api.github.com/repos/OfficeDev/PnP-PowerShell/issues/210","id":178002435,"user":{"login":"kilasuit","id":6355225,"avatar_url":"https://avatars.githubusercontent.com/u/6355225?v=3","gravatar_id":"","url":"https://api.github.com/users/kilasuit","html_url":"https://github.com/kilasuit","followers_url":"https://api.github.com/users/kilasuit/followers","following_url":"https://api.github.com/users/kilasuit/following{/other_user}","gists_url":"https://api.github.com/users/kilasuit/gists{/gist_id}","starred_url":"https://api.github.com/users/kilasuit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kilasuit/subscriptions","organizations_url":"https://api.github.com/users/kilasuit/orgs","repos_url":"https://api.github.com/users/kilasuit/repos","events_url":"https://api.github.com/users/kilasuit/events{/privacy}","received_events_url":"https://api.github.com/users/kilasuit/received_events","type":"User","site_admin":false},"created_at":"2016-02-01T14:54:55Z","updated_at":"2016-02-01T14:54:55Z","body":"@bclevering its Odd that the Version of the Module is showing as 0.0.0.0 whereas I would expect it to show 2.0.1601.0 for the latest version of the PnP modules - unless there was a version released with no details (unlikely)\r\n\r\nCan you try running in an Administration PowerShell Window\r\n```powershell\r\nUninstall-Module OfficeDevPnP.PowerShell.V16.Commands\r\nInstall-Module OfficeDevPnP.PowerShell.V16.Commands -force\r\nGet-Module OfficeDevPnP.PowerShell.V16.Commands -ListAvailable -Refresh\r\n```\r\nSee if that fixes it and if not then post back what the above brings out"}}