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
I'm reporting an issue with the Get-PnPTeamsTeam cmdlet failing to parse input correctly.
Expected behavior
The Get-PnPTeamsTeam cmdlet should properly retrieve Teams data when executed, similar to how Get-PnPMicrosoft365Group works.
Actual behavior
The cmdlet returns a parsing error:
Get-PnPTeamsTeam: Input string was not in a correct format. Failure to parse near offset 260. Expected an ASCII digit.
This error occurs consistently when trying to execute the command.
Steps to reproduce behavior
Connect to Microsoft 365 (assumed to be done before this snippet)
Execute the following commands:
# Error occurs$teams=Get-PnPTeamsTeam# This works fine$groups=Get-PnPMicrosoft365Group-IncludeOwners
# Attempting to filter for teams using groups as workaround$teams=$groups|where { $_.HasTeam-eq$true }
What is the version of the Cmdlet module you are running?
Version information needs to be provided by running:
PnP.PowerShell 2.99.93
Which operating system/environment are you running PnP PowerShell on?
Windows
Linux
MacOS
Azure Cloud Shell
Azure Functions
Other : please specify
Additional Context:
The error appears to be consistent and reproducible
A workaround is possible using Get-PnPMicrosoft365Group and filtering for HasTeam property
The error specifically mentions a parsing issue at offset 260, suggesting potential problems with data format handling in the cmdlet
The text was updated successfully, but these errors were encountered:
@YuriySamorodov - can you please uninstall this version and use the latest nightly builds ? I can't repro this in the latest build. A similar issue was fixed in a different cmdlet.
Reporting an Issue or Missing Feature
I'm reporting an issue with the
Get-PnPTeamsTeam
cmdlet failing to parse input correctly.Expected behavior
The
Get-PnPTeamsTeam
cmdlet should properly retrieve Teams data when executed, similar to howGet-PnPMicrosoft365Group
works.Actual behavior
The cmdlet returns a parsing error:
This error occurs consistently when trying to execute the command.
Steps to reproduce behavior
What is the version of the Cmdlet module you are running?
Version information needs to be provided by running:
Which operating system/environment are you running PnP PowerShell on?
Additional Context:
Get-PnPMicrosoft365Group
and filtering for HasTeam propertyThe text was updated successfully, but these errors were encountered: