Send Slack message fails with error code 202 rate limit

Why does this error "[202] Message: Ratelimited Ok:False On UiPath.Slack.Activities " appear after sending few API calls to send Slack messages per minute? Higher limit is required.

Root Cause: In the Slack activities properties are 2 ways of giving the channel where a message should be posted:

  • Name
  • Channel Id


If the name of the slack channel is given then for every API call the conversation.list is called in order to find the channel ID from the given name. This way the rate limits can be hit as too many requests are made to the endpoint conversations.list in a minute. This method is a Tier 2 method, indicating that it is allowed to make 20 requests per minute, and occasional bursting is allowed.



Resolution:
  • Use the "Channel ID" property of the activity instead of the "Channel name" property.
Read more on the Send Slack message page.

The slack channel ID can be found in the slack app under Channel / About section, or it could be seen in the Locals panel, looking at the API call that was made using the Name setting.


A post was split to a new topic: Slack API - Error Code: [202] Message: not_in_channel Ok: False