I can't get the JSON Script of a Sharepoint Online site

Eduardo Alexis Murillo 1 Reputation point
2022-02-04T20:56:49.257+00:00

I am trying in every possible way to copy a custom template from one site and use it on other Sharepoint Online sites, I am using the Get-SPOSiteScriptFromWeb method, but I am getting the following error that the specified site does not exist or cannot be found:

Get-SPOSiteScriptFromWeb : File nos Found.
line: 1 Carácter: 1

  • Get-SPOSiteScriptFromWeb -WebUrl https://*******.sharepoint.com/sites/ ...
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  • CategoryInfo : NotSpecified: (:) [Get-SPOSiteScriptFromWeb], ServerException
  • FullyQualifiedErrorId : Microsoft.SharePoint.Client.ServerException,Microsoft.Online.SharePoint.PowerShell.GetSP
    OSiteScriptFromWeb

****** means that it is the tenant of my organization, and this does not allow me to obtain the script to upload it to another site

Could you help me?

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
35,907 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Dave Patrick 426K Reputation points MVP
    2022-02-04T21:02:31.753+00:00

    Q&A forums are currently English only. I'd try asking for help over here in dedicated forums.
    https://social.msdn.microsoft.com/Forums/es-es/home
    https://social.technet.microsoft.com/Forums/es-es/home
    https://answers.microsoft.com/es-es

    --please don't forget to upvote and Accept as answer if the reply is helpful--


  2. Eduardo Alexis Murillo 1 Reputation point
    2022-02-07T18:06:58.197+00:00

    Hello

    Pass my question to English so you can help me

    0 comments No comments

  3. Misty Miller 1 Reputation point
    2022-04-13T17:18:15.887+00:00

    Have there been any answers here? I have the same issue. I did a Get-SPOSite and it is listed as a site collection.