Skip to content

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

@deepikaedakkoth

Description

@deepikaedakkoth

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions