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

[BUG] Import-PnPTermGroupFromXml command not updating Term Name even when UpdateBehavior is set to Overwrite #3752

Open
deepikaedakkoth opened this issue Feb 14, 2024 · 2 comments · May be fixed by pnp/pnpframework#1077
Labels
bug Something isn't working

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

@deepikaedakkoth deepikaedakkoth added the bug Something isn't working label Feb 14, 2024
@deepikaedakkoth
Copy link
Author

Any updates on this issue?

@koskila
Copy link
Contributor

koskila commented Oct 27, 2024

I don't think renaming terms was implemented. Working on it now in this PR in PnP Framework: pnp/pnpframework#1077

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants