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
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
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.
What's the source control type do you use? TFVC or Git?
– Andy Li-MSFT
4 hours ago