Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - General Discussion
Unanswered

Copying comments from one DevOps workitem to another fails when a person is mentioned in that comment

(1) ShareShare
ReportReport
Posted on by 33

Hi all,

 

We're building a few flows which sync workitems from one Azure DevOps project to another.

Also comments on a certain workitem should automatically be posted under the corresponding workitem. This has been working fine using the 'Send an HTTP request to Azure DevOps' action, until we were trying to mention/tag people in a comment.

For an unknown reason, this action keeps on throwing a 400 BadRequest error whenever we try to mention someone in a comment.

 

The error message itself is not very clear:

 

{
  "status"400,
  "message""TF400898: An Internal Error Occurred. Activity Id: d0824e80-e606-4b66-868f-cd2610ec8139.\r\nAzure DevOps ActivityId: d0824e80-e606-4b66-868f-cd2610ec8139\r\nDetails: {\"$id\":\"1\",\"innerException\":null,\"message\":\"TF400898: An Internal Error Occurred. Activity Id: d0824e80-e606-4b66-868f-cd2610ec8139.\",\"typeName\":\"Newtonsoft.Json.JsonReaderException, Newtonsoft.Json\",\"typeKey\":\"JsonReaderException\",\"errorCode\":0,\"eventId\":0}\r\nclientRequestId: d22987e9-b16b-409c-b2f8-064985951faf",
  "error": {
    "message""TF400898: An Internal Error Occurred. Activity Id: d0824e80-e606-4b66-868f-cd2610ec8139.\r\nAzure DevOps ActivityId: d0824e80-e606-4b66-868f-cd2610ec8139\r\nDetails: {\"$id\":\"1\",\"innerException\":null,\"message\":\"TF400898: An Internal Error Occurred. Activity Id: d0824e80-e606-4b66-868f-cd2610ec8139.\",\"typeName\":\"Newtonsoft.Json.JsonReaderException, Newtonsoft.Json\",\"typeKey\":\"JsonReaderException\",\"errorCode\":0,\"eventId\":0}"
  },
  "source""vsts-we.azconn-we-002.p.azurewebsites.net"
}

 

This is the body of our comment:

 

{

"text": "<div><a href="#" data-vss-mention="version:2.0,[userid]">[name of mentioned user]</a> </div>"

}

 

I've got the impression that Power Automate can't properly read this html text and convert it into a comment..

 

Any ideas how to solve this?

Thx!

 

  • JN-02062227-0 Profile Picture
    2 on at
    Copying comments from one DevOps workitem to another fails when a person is mentioned in that comment
    I get the same issue when the comment contains a URL or any kind of folder mapping "Folder_a/Folder_b/somedoc.txt"   I also get this same error when just creating a comment with "Send an HTTP request to Azure DevOps"  that contains a URL or a / in it  that comes in as a variable or a dynamic pram.   Typed text seems to work.

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >