โ03-02-2021 06:58 PM
We started getting channel_not_found when inviting users with the Slack action to private conversations. We are using the new (non-deprecated) slack actions. This was working fine until last night.
โ03-02-2021 07:05 PM
Will and I have been trying to figure it out and managed to identify its the same behavior for both Private and Public channel
โ03-02-2021 07:08 PM
What's interesting is if you do a custom API call conversations.list with limit of 999 and types private_channel - the newly channel doesn't even show up. Even though (in our case) the user created the channel (and is obviously a member).
โ03-02-2021 07:40 PM
Occasionally when you add a new member to a private slack channel, Slack will create a brand new channel id and the original connection will be lost, even if you were referencing the channel by name. Slack must still keep the original channel somewhere but not allow it to be accessible.
Because of this, I always reference the channel id for slack rather than the channel name. I get the channel id by opening Slack in the browser and copying it from the url. I store IDs for my channels in a lookup table so that if this happens, it's easy to update the ID in any recipe/process that references that channel.
Interestingly, if you tag users in slack threads, and a user has changed their handle, a similar issue occurs - the ID seems to change in the background so user lookups via slack api don't always give the info you need.
โ03-02-2021 09:10 PM
Amanda Wong FYI
โ03-02-2021 10:18 PM
you may also be able to fix this by reinviting the slack bot to the channel.