You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Export-PnPTermGroupToXml produces an empty string when used on term groups in the "site local" term store.
This behavior came up on a customer's live tenant and could be reproduced on a current test tenant.
Term groups in the "global" term store are exported to XML as expected.
Using pnp/pwershell 1.12.0.
Please refer to the discussion cited below.
Originally posted by mfxits April 7, 2023
Hi,
I'm using PnP.Powershell 1.12.0 and want to export a term group from the "site collection term store" of the root site collection.
Let's say the group is named "ABC". It's the only group in the "site local" terms store.
Get-PnpTermGroup lists all groups from the global term store including the local "ABC".
For any global group piped to Export-PnPTermGroupToXml the result is as expected:
@KoenZomers seems like the issue is that local term groups are named {sitecollectiontermgroupname} and ID is set to 00000000-0000-0000-0000-000000000000 when Site Template is extracted, so the code fails to match on ID and name for that reason.
Discussed in #2988
Export-PnPTermGroupToXml
produces an empty string when used on term groups in the "site local" term store.This behavior came up on a customer's live tenant and could be reproduced on a current test tenant.
Term groups in the "global" term store are exported to XML as expected.
Using pnp/pwershell 1.12.0.
Please refer to the discussion cited below.
Originally posted by mfxits April 7, 2023
Hi,
I'm using PnP.Powershell 1.12.0 and want to export a term group from the "site collection term store" of the root site collection.
Let's say the group is named "ABC". It's the only group in the "site local" terms store.
Get-PnpTermGroup
lists all groups from the global term store including the local "ABC".For any global group piped to Export-PnPTermGroupToXml the result is as expected:
Get-PnpTermGroup -Identity "XYZ" | Export-PnPTermGroupToXml
But when I do the same with "ABC", the result is empty. It doesn't matter if I use the ID or name as parameter for "Identity".
Get-PnpTermGroup -Identity "ABC" | Export-PnPTermGroupToXml
Both groups returned from
Get-PnpTermGroup
have the type "Microsoft.SharePoint.Client.Taxonomy.TermGroup" and I can't see any difference between them.I also played with
Get-PnPSiteCollectionTermStore
, but that command just returns the same term group object.I searched for the topic but found nothing. Can anyone help please?
The text was updated successfully, but these errors were encountered: