Set-SPOWebTemplate

Apr 26, 2015 at 9:08 PM
Hi, Thanks for the time in making this.

I have hit a problem with Set-SPOWebTemplate and the -web will not bind as a system string. I have the module loaded as well.

The error I get is
Set-SPOWebTemplate : Cannot bind parameter 'Web'. Cannot convert the "https://hidingfromreality.sharepoint.com/sites/PSTest6" value of type "System.String" 
to type "Microsoft.SharePoint.Client.Web".
At C:\Users\Joe\Desktop\O365\SPBuild.ps1:43 char:25
+ ... mplate -Web https://hidingfromreality.sharepoint.com/sites/PSTest6 -T ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Set-SPOWebTemplate], ParameterBindingException
    + FullyQualifiedErrorId : CannotConvertArgumentNoMessage,SharePointOnlineCmdlets.SetSPOWebTemplate
My code is
Set-SPOWebTemplate -Web https://hidingfromreality.sharepoint.com/sites/PSTest6 -TemplateId template2.wsp
Any hints in trying to fix this problem ?