Apply-SPOProvisioningTemplate : This operation is invalid in the HashTags term set.

%3CLINGO-SUB%20id%3D%22lingo-sub-14794%22%20slang%3D%22en-US%22%3EApply-SPOProvisioningTemplate%20%3A%20This%20operation%20is%20invalid%20in%20the%20HashTags%20term%20set.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-14794%22%20slang%3D%22en-US%22%3E%3CP%3EI'm%20using%20Get-SPOProvisioningTemplate%20to%20export%20my%20site%20and%20I'm%20including%20all%20termgroups.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20export%20is%20workign%20fine.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20I'm%20applying%20the%20template%20I'm%20getting%20this%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EApply-SPOProvisioningTemplate%20%3A%20This%20operation%20is%20invalid%20in%20the%20HashTags%20term%20set.%20The%20operation%20failed.%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethe%20Hastags%20termset%20is%20refering%20to%20the%20Hashtags%20shown%20in%20the%20below%20screen%20shot%20(under%20the%20System%20Terms).%20This%20comes%20with%20the%20default%20contoso%20sites%20(as%20created%20with%20an%20Office%20365%20demo%20from%20demos.microsoft.com).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Hashtags.png%22%20style%3D%22width%3A%20273px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F4563i779BF61AEB4891FA%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Hashtags.png%22%20alt%3D%22Hashtags.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%EF%81%80%3C%2FP%3E%3CP%3EShould%20PnP%20be%20able%20handle%20(maybe%20even%20ignore)%20these%20hashtags%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F369%22%20target%3D%22_blank%22%3E%40Vesa%20Juvonen%3C%2FA%3E%2C%20What%20is%20the%20recommended%20approach%20for%20this%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20trying%20to%20use%20the%20.pnp%20file%20format%20but%20I%20can't%20easily%20edit%20this.%20Or%20should%20I%20switch%20over%20to%20the%20.xml%20format%20where%20I%20can%20manually%20edit%20and%20remove%20the%20terms%20that%20I%20don't%20want%20to%20import.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%EF%81%80%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-14794%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EPnP%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-42470%22%20slang%3D%22en-US%22%3ERe%3A%20Apply-SPOProvisioningTemplate%20%3A%20This%20operation%20is%20invalid%20in%20the%20HashTags%20term%20set.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-42470%22%20slang%3D%22en-US%22%3E%3CP%3EI%20just%20ran%20into%20this%20issue%20again.%20The%20HashTags%20term%20set%20as%20it%20is%20confgiured%20on%20a%20Microsoft%20demo%20tenant%20seems%20to%20cause%20trouble%20with%20PnP.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHas%20anybody%20else%20seen%20this%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-14804%22%20slang%3D%22en-US%22%3ERe%3A%20Apply-SPOProvisioningTemplate%20%3A%20This%20operation%20is%20invalid%20in%20the%20HashTags%20term%20set.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-14804%22%20slang%3D%22en-US%22%3E%3CP%3EThat%20is%20true%20Pieter%20did%20not%20think%20of%20that%20one.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-14801%22%20slang%3D%22en-US%22%3ERe%3A%20Apply-SPOProvisioningTemplate%20%3A%20This%20operation%20is%20invalid%20in%20the%20HashTags%20term%20set.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-14801%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20%40Deleted%2C%20I'm%20not%20sure%20if%20it%20is%20the%20invalid%20characters.%20I%20noticed%20that%20when%20I%20go%20the%20admin%20center%20there%20'termgroups'%20don't%20seem%20to%20be%20normal%20termgroups.%20So%20it%20could%20also%20simply%20be%20that%20an%20operation%20doesn't%20exist%20on%20this%20type%20of%20term%20group.%3C%2FP%3E%3CP%3EI'm%20guessing%20that%20-ExcludeSystemTerms%20would%20be%20a%20good%20option%20to%20add%20to%20the%20ProvisioingTemplate%20CmdLets.%20Or%20maybe%20even%20-ExcludeTermGroup%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-14800%22%20slang%3D%22en-US%22%3ERe%3A%20Apply-SPOProvisioningTemplate%20%3A%20This%20operation%20is%20invalid%20in%20the%20HashTags%20term%20set.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-14800%22%20slang%3D%22en-US%22%3E%3CP%3EI%20think%20it%20is%20a%20issue%20in%20the%20illigal%20chars%20of%20the%20termgroups.%20can%20you%20also%20post%20your%20export%20to%20take%20a%20look.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
MVP

I'm using Get-SPOProvisioningTemplate to export my site and I'm including all termgroups.

 

The export is workign fine.

 

When I'm applying the template I'm getting this:

 

Apply-SPOProvisioningTemplate : This operation is invalid in the HashTags term set. The operation failed.

 

 

the Hastags termset is refering to the Hashtags shown in the below screen shot (under the System Terms). This comes with the default contoso sites (as created with an Office 365 demo from demos.microsoft.com).

 

 Hashtags.png

 

Should PnP be able handle (maybe even ignore) these hashtags?

 

@Vesa Juvonen, What is the recommended approach for this?

 

I'm trying to use the .pnp file format but I can't easily edit this. Or should I switch over to the .xml format where I can manually edit and remove the terms that I don't want to import.

 

 

 

4 Replies
Highlighted

I think it is a issue in the illigal chars of the termgroups. can you also post your export to take a look.

Highlighted

Hi @Deleted, I'm not sure if it is the invalid characters. I noticed that when I go the admin center there 'termgroups' don't seem to be normal termgroups. So it could also simply be that an operation doesn't exist on this type of term group.

I'm guessing that -ExcludeSystemTerms would be a good option to add to the ProvisioingTemplate CmdLets. Or maybe even -ExcludeTermGroup

Highlighted

That is true Pieter did not think of that one.

Highlighted

I just ran into this issue again. The HashTags term set as it is confgiured on a Microsoft demo tenant seems to cause trouble with PnP.

 

Has anybody else seen this?