Skip to main content
Community site session details

Community site session details

Session Id : gZ+uQzVNv6Vh5Rm8Dv77ki
Power Automate - Building Flows
Unanswered

Updating work item in Azure Devops fails. TF26071

Like (0) ShareShare
ReportReport
Posted on 17 Mar 2021 00:13:47 by 42

I have some Flows that update a work item in Azure Devops by adding a comment.  I am using the Send HTTP Request to Azure Devops action with this request https://docs.microsoft.com/en-us/rest/api/azure/devops/wit/comments/add?view=azure-devops-rest-5.1

 

Occasionally it fails with error "TF26071: This work item has been changed by someone else since you opened it.  You will need to refresh it and discard your changes."

 

Is there any way I can prevent or handle this error?

 

  • mpatelNYMetro Profile Picture
    2 on 01 May 2023 at 19:57:31
    Re: Updating work item in Azure Devops fails. TF26071

    I am running into the same problem error.

     

    Was there any solution to this OR did your mentioned workaround "subsequent on-fail action to retry the same update" work?

     

    Don't think the delay or pause would work.

     

    Also, not sure how this can be reproduced.

  • chrissahagun Profile Picture
    197 on 17 Mar 2021 at 23:24:04
    Re: Updating work item in Azure Devops fails. TF26071

    As I was reading your response, I thought of suggesting a retry on error.  And then I got to your last line!

     

    I think you should try it! like a "configure run after" thing on a condition, right?

  • dmorland Profile Picture
    42 on 17 Mar 2021 at 19:13:26
    Re: Updating work item in Azure Devops fails. TF26071

    There are no preceeding steps that make any update to the work item.  I suspect it is some kind of conflict with a change that is being made to the work item by another user in the Azure DevOps GUI.  As far as I am aware, concurrent changes to the item are merged on each save unless the changes are to the same field which might result in a conflict.  But if I run my Flow which adds a comment while I also have it open in the GUI adding a comment I don't get this error.  The error is only happening once in every hundred or so runs.

    This update is the last action in the Flow so I am thinking one option might be to add a subsequent on-fail action to retry the same update

  • chrissahagun Profile Picture
    197 on 17 Mar 2021 at 06:38:02
    Re: Updating work item in Azure Devops fails. TF26071

    Your previous steps on the same work item might still be in process as the HTTP request is sent?  Try using the Delay step and have your flow pause for a couple of seconds.

     

    chrissahagun_0-1615963027621.png

     

    🤞

     

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Loading complete