Forum Discussion
kaz01
May 03, 2023Brass Contributor
Error retrieving this channel's SharePoint URL
Hi Community,
Any ideas how I can fix this error message? I wasn't able to find anything in the discussion threads.
I added 3 channels to an existing team in MS Teams. Team has a SharePoint site.
- CrypticNickCopper Contributor
kaz01I was just able to solve this without the use of Power Automate or Graph API. I had an end user submit a ticket saying they created 5 channels for their team. All channels were created the same way, yet only one of them was allowing file uploads through the Teams app. When I checked the SharePoint site, all 4 that weren't allowing file uploads had the red exclamation and said "There was an error retrieving this channel's SharePoint URL". Here's how I fixed it:
- Go to the SharePoint Admin Center and sign in as a global admin
- In the left menu, click on Sites, then Active Sites. Search for the site (team) that contains the channels you are having issues with.
- In the list that populates, look for the Site name (team name). It should have a hyperlink under the Channel sites column. First, click on the name of the main site (team). This brings up a menu. one of the tabs on the menu is Membership. Go there and add yourself as an Owner and an Admin of the team. Once finished, press X in the top right of the team menu to get back to the list of team sites.
- Click on the hyperlink that shows how many sites there are. It'll say "3 sites" or "6 sites" or however many channels are in this particular team.
- You'll now see a similar menu, but it shows the channels instead of the teams. Click on the channel that shows the URL error you are seeing in the SharePoint site. Add yourself as both an Owner and an Admin. Do this for each channel that is having the issue.
- Now, go to the Teams app and find the channel with the issue. Click on the File tab at the top of the channel. It will take a few seconds but eventually it will populate the screen. This is because it was creating the site. Do this for each channel with the issue.
- You should now be able to upload files in any of the channels. Refresh the SharePoint page listing the Documents for each channel and the red exclamation should be gone.
- Reverse the steps above to remove your Admin and Owner rights.
- jcrooks75Copper Contributor
Good day,
We just had the same issue with a Teams Channel/SharePoint folder. Investigation found that the channel had been created with a trailing space which appears to create an issue with the channel email creation and subsequently the SharePoint folder associated.
Example Team
Steps to correct:
1. Remove the trailing space
2. In teams get the channel email address
- ivan_nikolov_diewerkbankCopper Contributor
This was exactly our case. Thank you!
- luunkCopper ContributorWhat we have discovered during our testing is that when you create at private channel with GraphAPI. The permissions of the SharePoint site does not populate automatically. What happens is that when a user presses the "file tab" in Teams of the newly created private channel, the MS backend some how starts to create the SharePoint site for the private channel. The thing is, and here it gets tricky, is that if it's NOT the owner of the private channel who clicks on the file tab in teams. The creation of the private SharePoint area fails because the backend is trying to use the owner permissions to create it. (Is my theory at least).
So when a normal member presses the file tab the first time, the backend tries to use the owners permissions (the owner on top of the owner list in teams) to create the file area. And since the normal member is not the same person as the top owner, the creation fails. This will also fail if there are multiple owners of the private channel. And if it's not the owner at the top of the list that presses the file tab first then it will fail in the same way.
How we have solved it is that when a private channel is created by Graph API we only assign one owner to the team and no one else. When the owner get the file area working (by just pressing the file tab) they starts to invite the other persons who should be part of the team.- Billyn20Copper Contributor
There are a cmdlets for both Graph and PnP mentioned here: https://github.com/pnp/powershell/discussions/2021 that will initialise the private channel library.
I have tested with the PnP cmdlet and my Team sites created through the API no longer get this error.
- keamargCopper ContributorSame issue here. Also using graphAPI through Power Automate...
- DMW1981Copper ContributorHello, our organization is facing the same issue over specific channels. For channels that were empty, the workaround was to delete and recreate the channel and this seemed to work, but there are channels already with information that cannot be deleted so we are still stuck in the same problem. Opened a ticket with MS through the admin center, but the tech was not able to resolve it and we ended up in this article as "solution".
- nbercasio2024Copper ContributorWe are experiencing the same issue for 2 days now. Any resolution? Any of the tips below did not work.
- luunkCopper Contributor
Just adding I´m seeing same type of error. Does not help to get the mail address. Get a HTTP 403 Forbidden error when I´m trying to access the file area in teams or get the mail address.
And yes, I´m both owner of the team and the private channel.- andrewfeehanCopper Contributor
So here is the fix that should work for you.
Rename the channel you are having an issue with. I just edited the channel and renamed the channel by adding a "2" to the name of the channel.
I then created a new private channel with the original name of the channel name I wanted.
Give it about 2 minutes after you create this new channel just to be safe.
You should now be able to get to the Files section and upload what is needed to the channel.
- luunkCopper Contributor
andrewfeehan
Thanks, that might work. The thing is that we create teams with an automation which uses GraphAPI to create new teams on a regular basis. They are "short-lived" teams for collaborating with external users in different projects. when the project is done the team is archived.
"Fixing" each new team created with the rename and create new channel from the app is not really a solution in our case since we sometimes create 10 or more teams each week.
It have been working previously, but lately all new team created have the issue where the sharepoint site is not created for a private channel in the teams team.
The strange part is that it works when you create a channel from the app, but not when the channel is created with the GraphAPI. It should be the same backend, right?
Or is it just that Team creation is not meant to be automated? 🙂
Hello kaz01
i don't see the error before.
Have you done anything to the channel? renamed it, for example?
Is this error only on this channel folder or also on others?
Regards, Dave
- kaz01Brass ContributorHi David,
No I haven't renamed the channel at all. Same error message for all 3 new channels.
I'm thinking at this point to delete the channels and add them back. Thoughts?- RonaldKriegeCopper Contributor