cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

Teams - Post message as the Flow Bot not working

I want to post message on Teams when a new Task is created in Planner.

I am able to do that using a Flow, but the problem is, it posts as my own user.

 

For Teams action, I have two options:

  1. Post a message
  2. Post a message as the Flow bot to a channel

The second option keeps throwing 404 error.

 

{
  "error": {
    "code": "BotRequestFailed",
    "message": "Request to the Bot framework failed with error: '{\"error\":{\"code\":\"BadArgument\",\"message\":\"Unknown cloud 'in-client-ss.msg'\"}}'."
  }
}
52 REPLIES 52
Anonymous
Not applicable

me too

 

Request to the Bot framework failed with error: '{"error":{"code":"BotDisabledByAdmin","message":"The tenant admin disabled this bot"}}'.

New Member

Same here, everythign worked last week.

 

{
  "error": {
    "code": "BotRequestFailed",
    "message": "Request to the Bot framework failed with error: '{\"error\":{\"code\":\"BotDisabledByAdmin\",\"message\":\"The tenant admin disabled this bot\"}}'."
  }
}

Same Here

Worked fine on Aug 31st but broken on Sept 1st with no chnages made

 

Forbidden. The request failed. Error code: 'BotRequestFailed'. Error Message: 'Request to the Bot framework failed with error: '{"error":{"code":"BotDisabledByAdmin","message":"The tenant admin disabled this bot"}}'.'.

Regular Visitor

Everything was working fine. No Changes made.

 

Today get the following error:

 

Request to the Bot framework failed with error: '{\"error\":{\"code\":\"BotDisabledByAdmin\",\"message\":\"The tenant admin disabled this bot\"



We have escalated this to the Teams/Bot API owners, as these errors are coming from the Bot Framework when we attempt to post. We will post an update here once we have more information

Any update on this? We facilitate some standup type of meetings with this specific setup and they've been failing since Friday.

New Member

We too are having the same issue. Starting Friday 8/30/19 to present. 

 

Error:

Request to the Bot framework failed with error: '{"error":{"code":"BotDisabledByAdmin","message":"The tenant admin disabled this bot"}}'.

Teams developers are currently investigating the issue. I'll post back here when they have an update. 

Teams has identified the issue and is working on a mitigation now.

According to their oncalls, the fix has mostly rolled out already, and should be done by this evening.

We monitored this overnight and the problem appears to have been fully resolved. Please let me know if anyone is still seeing this where you *really* don't expect it to be blocked by an admin.

Hi,

 

I've tried today to use the Post a message as the Flow bot to a channel action and I am getting the same error:

 

Request to the Bot framework failed with error: '{"error":{"code":"BotDisabledByAdmin","message":"The tenant admin disabled this bot"}}'.

 

Can you advise on what was done to rollout the fix?


@dblyth wrote:

We monitored this overnight and the problem appears to have been fully resolved. Please let me know if anyone is still seeing this where you *really* don't expect it to be blocked by an admin.


 

I'm getting mixed results I have a flow with 5 different routes. all same bot it just works on of the scenarios.

 

The other scenarios they fail

 

Here is the Fail Message.

 

{
"error": {
"code": "InvalidJsonInBotAdaptiveCard",
"message": "Microsoft.Azure.ProcessSimple.Data.Entities.Exceptions.ProcessSimpleDataException: The specified Teams flowbot adaptive card request is missing or invalid. The tracking Id is '{0}'. ---> Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: P. Path '', line 0, position 0.\r\n at Newtonsoft.Json.JsonTextReader.ParseValue()\r\n at Newtonsoft.Json.Linq.JObject.Load(JsonReader reader, JsonLoadSettings settings)\r\n at Newtonsoft.Json.Linq.JObject.Parse(String json, JsonLoadSettings settings)\r\n at Microsoft.Azure.ProcessSimple.Data.Components.AdaptiveCards.AdaptiveCardBuilder.DeserializeAdaptiveCard(String serializedAdaptiveCard, RequestIdentity requestor) in X:\\bt\\1029746\\repo\\src\\processsimple\\Roles\\ProcessSimple.Data\\Components\\AdaptiveCards\\AdaptiveCardBuilder.cs:line 391\r\n --- End of inner exception stack trace ---\r\n at Microsoft.Azure.ProcessSimple.Data.Components.AdaptiveCards.AdaptiveCardBuilder.DeserializeAdaptiveCard(String serializedAdaptiveCard, RequestIdentity requestor) in X:\\bt\\1029746\\repo\\src\\processsimple\\Roles\\ProcessSimple.Data\\Components\\AdaptiveCards\\AdaptiveCardBuilder.cs:line 395\r\n at Microsoft.Azure.ProcessSimple.Web.Common.Validation.BotAdaptiveCard(String card, RequestIdentity senderRequestIdentity) in X:\\bt\\1029746\\repo\\src\\processsimple\\Roles\\ProcessSimple.Web\\Common\\Validation\\BotValidation.cs:line 585"
}
}

I have a Power Automate workflow with posting the result to Teams via a Bot and it worked perfectly until right now. I get the same error message like the others:

 

"body":{"error":{"code":"BotRequestFailed","message":"Request to the Bot framework failed with error: '{\"error\":{\"code\":\"BotDisabledByAdmin\",\"message\":\"The tenant admin disabled this bot\"}}'."}}

Teams app policies are described here, though access to the settings may require a tenant administrator:

https://docs.microsoft.com/en-us/MicrosoftTeams/teams-app-permission-policies

Why would this have to do anything with the App Permission Policies?

Thanks in advance.

Apps and bots are tied together on the Teams platform. So there's a teams app underlying the Flow bot that lets it post messages to users. If apps (or the Flow app) is blocked by policy, the Flow bot actions will fail with this error.

@dblyth Can you please tell me that what are the differences between 1. Post a message (V3) and 2. Post a message as the Flow bot to a channel Also which option will be better to use in which situation? Thanks, Mamun

"Post Message" sends as yourself, and you have full flexibility with an HTML editor to post styled messages, and @ mention users with <at>user@contoso.com</at> syntax. You can also reply to messages with this action. 

 

Posting as the Flow bot lets you send custom adaptive cards as the Flow bot identity. Adaptive cards can't currently @ mention users, though this is something we are working with Teams on. 

I am getting the same error message today (27/04/2020), I have tested this on two separate tenants and get the same error message. 

 

Did anyone ever figure out what this issue is? 

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Top Solution Authors
Top Kudoed Authors
Users online (7,084)