3

Trying to implement Hybrid Taxonomy between my local farm and SharePoint Online, I have to (or should) copy the local term store to my online site collection. For that one should use Copy-SPTaxonomyGroups.

I already implemented Hybrid OneDrive & Sites, and Hybrid Search without errors and they are still working.

So I use this script (from the article Configure hybrid SharePoint taxonomy (Preview)):

$credential = Get-Credential

#Copy-SPTaxonomyGroups -LocalTermStoreName "<ManagedMetadataServiceApplicatoin>" -LocalSiteUrl "<OnPremisesSiteURL>" -RemoteSiteUrl "SharePointOnlineSiteURL" -GroupNames "Group1","Group2" -Credential $credential
Copy-SPTaxonomyGroups -LocalTermStoreName "Managed Metadata Service" -LocalSiteUrl "http://localRootSiteCollectionURL" -RemoteSiteUrl "https://tenantName.sharepoint.com/sites/htt" -GroupNames "GroupNameInSiteCollectionTermStore" -Credential $credential

But after five minutes, the script fails

Copy-SPTaxonomyGroups : The remote name could not be resolved:
'tenantName.sharepoint.com'
At C:\script\Copy-SPTaxonomyGroups.ps1:4 char:1
+ Copy-SPTaxonomyGroups -LocalTermStoreName "Managed Metadata Service"
-LocalSiteU ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~
    + CategoryInfo          : InvalidData: (Microsoft.Share...PTaxonomyGroups:
   SPCmdletMigrateSPTaxonomyGroups) [Copy-SPTaxonomyGroups], WebException
    + FullyQualifiedErrorId : Microsoft.SharePoint.Taxonomy.Hybrid.Cmdlet.SPCm
   dletMigrateSPTaxonomyGroups

For the record, ULS doesn't show any records while running the script.

  • 1
    from this link, looks like it is time out issue may be you need to "Re-instantiate the $spoContext object. When running a script in one go, this error shouldn’t pop because the Context will not prematurely expire." jeffreypaarhuis.com/2012/06/07/… – Waqas Sarwar MVP Nov 21 '16 at 14:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.