web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Request to the Bot fra...
Power Automate
Answered

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

(0) ShareShare
ReportReport
Posted on by 13

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?

Categories:
I have the same question (0)
  • Verified answer
    Jonalink Profile Picture
    13 on at

    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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 237 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 176 Super User 2026 Season 1

#3
Power Platform 1919 Profile Picture

Power Platform 1919 96 Super User 2026 Season 1

Last 30 days Overall leaderboard