Cannot be undone because a file already exists at “tfs file path here”. The file must be deleted from disk for the undo to succeed

Multi tool use
Multi tool use
The name of the picture


Cannot be undone because a file already exists at “tfs file path here”. The file must be deleted from disk for the undo to succeed



I have copied and paste that existing Uploads folder on same solution. I have renamed existing Uploads folder from "Uploads" to "Uploadsold". Then renamed that newly pasted(created) folder from "Uploads - Copy" to "Uploads".
Then I have Gated check-in my code on TFS without .csproj file. Committed was successfully.


.csproj



But here after I could not check in any changes.
Whenever try to commit, cannot be undone because a file already exists at tfs file path here. The file must be deleted from disk for the undo to succeed.
Even I have rollback whole changeset but still exists same error?


file already exists at tfs file path here. The file must be deleted from disk for the undo to succeed





What's the source control type do you use? TFVC or Git?
– Andy Li-MSFT
4 hours ago





Hi @AndyLi-MSFT . source control is TFVC
– Gowtham Alan
4 hours ago




1 Answer
1



Just try below things to narrow down the issue:


C:UsersusernameAppDataLocalMicrosoftTeam Foundation{version}Cache.


test.config


newtest.config





I tried you said that above method.but still throw an exception of "##[error]Exit code 100 returned from process: file name 'tf', arguments 'vc undo /recursive C:agent_work33s /loginType:OAuth /login:.,*** /noprompt'."
– Gowtham Alan
4 hours ago








By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

9,WAsD,V SGRugyFXBm
SiJ4fqkdheRmOYmOYm3,0x7G1iMy0861pN iO AumJRltNmYi0,co Rte,O i,G8VVrDcIYLvguZxBiZC RA mkFIihiXt R0aadBT

Popular posts from this blog

Keycloak server returning user_not_found error when user is already imported with LDAP

PHP parse/syntax errors; and how to solve them?

415 Unsupported Media Type while sending json file over REST Template