cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
New Member

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

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
Highlighted
New Member

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

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Users online (1,759)