Sharepoint 2013 - Export Import Term Set Navigation

Hi All,

Update on TermSet import/export script, thumbs up to my colleague Mark Spurling in creating the PS script.
This script handles all nodes along with the TargetUrl.



HTH,
Andreas

7 comments

Thanks Andreas... you wrote wonderful code.

Export is worked like a charm. but while importing I got the error at CommitAll

"Failed to read from or write to database. Refresh and try again. If the problem persists, please contact the administrator"

Do you have any idea?

Reply

I figured it out. It was due to the same Guids of Terms on the same server.

Reply

CommitALL Issue occurs when import term store to same SharePoint Server due to repeating Term ID's (GUID)

Reply

To fix duplicated GUID Issue, Replace below line with
$navTermId = if ($xmlTerm.Attributes['Id']) { $xmlTerm.Attributes['Id'].Value } else { [System.Guid]::NewGuid() }
with
$navTermId =[System.Guid]::NewGuid()

Reply
This comment has been removed by the author.

This script is failing while exporting Arabic Term Store, To Fix that, replace
$elem.SetAttribute("Labels", $taxonomyTerm.Labels.Value -join ";")
with
$elem.SetAttribute("Labels", $taxonomyTerm.Labels[0].Value -join ";")

Reply

How do I achieve same thing for SharePoint Online

Reply

Post a Comment