Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove-PnPTeamsChannel throws an exception, the team channel is deleted though #4035

Closed
frbori opened this issue Jun 19, 2024 · 3 comments · Fixed by #4036
Closed

Remove-PnPTeamsChannel throws an exception, the team channel is deleted though #4035

frbori opened this issue Jun 19, 2024 · 3 comments · Fixed by #4036
Assignees
Labels
bug Something isn't working

Comments

@frbori
Copy link

frbori commented Jun 19, 2024

Reporting an Issue or Missing Feature

Issue about cmdlet "Remove-PnPTeamsChannel".

Expected behavior

The team channel to be removed, without throwing any exceptions.

Actual behavior

The team channel is actually removed, but the cmdlet returns an exception:
"Remove-PnPTeamsChannel: Channel not found".

Steps to reproduce behavior

Remove-PnPTeamsChannel -Team $team.GroupId -Identity $channel.Id

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

2.4.0

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

  • Windows
@frbori frbori added the bug Something isn't working label Jun 19, 2024
@jackpoz
Copy link
Contributor

jackpoz commented Jun 20, 2024

I'll open a PR to fix this, the message "Channel not found" is shown when the channel has been deleted successfully, so you can ignore that error for the time being.

@frbori
Copy link
Author

frbori commented Jun 20, 2024

Great! Thanks for your help.

@gautamdsheth
Copy link
Collaborator

@frbori - this issue has been fixed by @jackpoz , will be available in tomorrow's nightly builds as well as the next major release.

Thanks for raising this and thanks for fixing it :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants