Skip to content

[BUG] Get-PnPTeamsTeam Only works with filters. Error Input string was not in a correct format #4881

Open
@ckravig

Description

@ckravig

Reporting an Issue or Missing Feature

When I run Get-PnPTeamsTeam alone I get an error. But it works when searching for a specific Identity or using a filter.

Expected behavior

When I run "Get-PnPTeamsTeam" I expect to see a list of all teams.

Actual behavior

What I actually get when running "Get-PnPTeamsTeam" is the error: Get-PnPTeamsTeam: Input string was not in a correct format. Failure to parse near offset 260. Expected an ASCII digit.

Image

Running "Get-PnPTeamsTeam -Filter "startswith(mailNickName, 'IT')"" returns the teams, however running the base "Get-PnPTeamsTeam" returns the error.

Steps to reproduce behavior

After I connect I just run "Get-PnPTeamsTeam"

This was working as expected and then after running a few more commands trying to set teams settings, it started returing the above error. Many of the PnP cmdlets are returing this error now.

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

I have tried on 3.0, 3.1 and 3.1.10 nightly

Which operating system/environment are you running PnP PowerShell on?

  • Windows
  • Linux
  • MacOS
  • Azure Cloud Shell
  • Azure Functions
  • Other : please specify

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