Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import-PnPTermGroupFromXml command not updating Term Name even when UpdateBehavior is set to Overwrite #1008

Open
deepikaedakkoth opened this issue Apr 9, 2024 · 0 comments

Comments

@deepikaedakkoth
Copy link

Category
[x] Bug
[ ] Enhancement

Environment
[x] Office 365 / SharePoint Online

Reporting an Issue
Import-PnPTermGroupFromXml to update the name of term group and term, on a daily basis. Even when the attribute is set UpdateBehavior="Overwrite" in termgroup, the command does not update the Term Name, even if you have the same Term ID.

Expected or Desired Behavior
The Term Name should update based on the xml if the Term ID is matched.

Observed Behavior
The Term Name is not updated into term store if the Term ID is matched.

Steps to Reproduce
Create a sample XML file called test.xml:
<pnp:TermGroups xmlns:pnp="http://schemas.dev.office.com/PnP/2022/09/ProvisioningSchema">
<pnp:TermGroup Name="Test" ID="cd61a4d5-6fad-493b-81e2-958e3f3e6f21" Description="Test 123" UpdateBehavior="Overwrite">
pnp:TermSets
<pnp:TermSet Name="Type Level 1" Description="Test" Language="1033" ID="aa044f8f-874a-4b36-ad7f-fd21f815a36b">
<pnp:Terms />
</pnp:TermSet>
</pnp:TermSets>
</pnp:TermGroup>
</pnp:TermGroups>
Import it using command Import-PnPTermGroupFromXml -Path "test.xml"
Change the name of TermGroup and TermName
Import once again it using command Import-PnPTermGroupFromXml -Path "test.xml"

New Names are not updating

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant