Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[BUG] Pnp-term commands on pinned terms issue

Aperta
#4,941 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
csharp, powershell
Ambito
cli, tooling

Direzione di ricerca

Inizia riproducendo i comandi Move-PnPTerm e Set-PnPTerm su un termine aggiunto a un altro gruppo di termini, confrontando il tenant in cui si verifica l’errore con i tenant in cui funzionano. Traccia i punti di ingresso dei comandi e la gestione della risposta “operation is not valid on the pinned term”; il lavoro è completato quando entrambi i comandi supportano i casi segnalati relativi ai termini aggiunti senza interrompere il comportamento esistente.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug
Reporting an Issue or Missing Feature

Issue

Expected behavior

Move-PnpTerm on a term that is pinned in another termgroup should move the term to the destination
Set-PnpTerm -deprecate should set the term to deprecated

Actual behavior

got an error message : The operation is not valid on the pinned term

Steps to reproduce behavior

Pinned manually a term to another termgroup and try to use the following command:
Move-PnPTerm -Identity -TargetTerm -MoveToTerm
Set-PnPTerm -Identity -Name -TermSet -TermGroup -Deprecated $true

What is the version of the Cmdlet module you are running?

I tried 2.2, 2.12 3.1

Which operating system/environment are you running PnP PowerShell on?
  • Windows
  • Linux
  • MacOS
  • Azure Cloud Shell
  • Azure Functions
  • Other : please specify

I’ve many terms in a Termgroup that are pinned to another termgroup. Using PnP cmds on those pinned terms result to an error message: The operation is not valid on the pinned term
I can understand this limitation, but this behaviour is exclusive to one of my 3 tenants and seems to imply we basically cannot do anything an a term at the moment it's pinned somewhere else.

Authentication method : interactive or by apps & certificate
When I remove the ‘link' to the terms from the secondary termgroup, it’s working as expected.
When I recreate pin, the issue come back.
Structure of terms, Ids, Name, creation method, pinned method are aligned on all 3 tenants.
Doing it via graphical interface is working well

I would like to ask for any help or similar experience related to it in order to identify the cause and avoid the same behavior to be propagate in my others tenants

Thank you in advance,

Lingua principale
C#
Stelle
905
Fork
409
Merge medio
2g 9h
PR unite (30g)
10

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di pnp/powershell

Tutte le issue di pnp/powershell

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.