Skip to content

Bug report: Cannot get term by name if it is a child of another term #4346

@martinlingstuyl

Description

@martinlingstuyl

Description

If I try to get a term by name, it will not find it if the term is a child or grandchild in a hierarchy:

The following will throw an error:

m365 spo term get --termSetName "some-set" --termGroupName "some-group" --name "some-childterm-name"

Error: Specified argument was out of the range of valid values.
Parameter name: index

However, the term does exist and it can be retrieved by id.
The same operation with a top level term will succeed.

Steps to reproduce

Create a taxonomy hierarchy and try to retrieve the top-level and child-level terms by name.

Expected results

It finds the term

Actual results

It does not

Diagnostics

No response

CLI for Microsoft 365 version

6.1 (next)

nodejs version

16

Operating system (environment)

Windows

Shell

PowerShell

cli doctor

No response

Additional Info

No response

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions