cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
New Member

Request to the Bot framework failed with error on Bot that has been working

I've had a bot that's been working now since April without any major issues. It takes the responses from a form, puts them into an adaptive card, and posts them as Flow to a Teams channel. But on the 14th it stopped working in the evening and I receive this error:

 

Request to the Bot framework failed with error: '{"error":{"code":"BadArgument","message":"Unable to decrypt userId, it is null or agentData is null"}}'.

 

I can't find anything on this, and a different bot that is on the same account works, even though it's almost identical.

 

Anyone familiar with where this error is coming from?

1 ACCEPTED SOLUTION

Accepted Solutions
New Member

Looks like I found the issue. There was code in the adaptive card that was no longer allowed with whatever the recent update of Teams/Automate was.

 

I had this in there:

 

   "msteams": {
        "entities": [
            {
                "type""mention",
                "text""<at>@{body('Get_user_profile_(V2)')?['displayName']}</at>",
                "mentioned": {
                    "id""@{body('Get_user_profile_(V2)')?['id']}",
                    "name""@{body('Get_user_profile_(V2)')?['displayName']}"
                }
            }
        ]
    },
When I was tinkering with getting the @mentions to work, which is now part of the Flow. Removing that fixed my issue.

View solution in original post

1 REPLY 1
New Member

Looks like I found the issue. There was code in the adaptive card that was no longer allowed with whatever the recent update of Teams/Automate was.

 

I had this in there:

 

   "msteams": {
        "entities": [
            {
                "type""mention",
                "text""<at>@{body('Get_user_profile_(V2)')?['displayName']}</at>",
                "mentioned": {
                    "id""@{body('Get_user_profile_(V2)')?['id']}",
                    "name""@{body('Get_user_profile_(V2)')?['displayName']}"
                }
            }
        ]
    },
When I was tinkering with getting the @mentions to work, which is now part of the Flow. Removing that fixed my issue.

View solution in original post

Helpful resources

Announcements
PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

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!

Users online (5,682)