TF400889 Long path error received from TFS

8.1k views Asked by At

Can someone please help me out with this? I tried using long path tool but they want me to pay in order to delete the folder. However I cant find the file the system is complaining about. I went to the folder

Error

C:\Users\Casey\Desktop\Workspace\LegalHoldings\Sprints\Sprint5\Expunctions\LegalHoldings.Expunctions.Service.External\ServiceReferences\FillingReviewMDEService\LegalHoldings.Expunctions.Service.External.FilingReviewMDEService.GetFeesCalculationsResponse.datasource

This file:

FilingReviewMDEService.GetFeesCalculationsResponse.datasource

Does not exist in the folder?!?!?!

I don't know what to do, I have been reading a lot of work-arounds online however most people suggest using long path tool but I remember having this issue in the past but I cant remember how I solved. I believed it was something to do with the Developer Command prompt and resetting some paths.

All help would be greatly appreciated

3

There are 3 answers

1
jessehouwing On BEST ANSWER

Not sure if you're even using the data binding features which the .datasource file is generated for, but turning that off in your service reference configuration by manually editing the .svcmap file would solve your problem.

enter image description here

After editing make sure you use the Update Reference feature to get rid of the unwanted file:

enter image description here

The second step would be to not map $/ to your user profile in your workspace mapping, but $LegalHoldings/Sprints/Sprint5/Expunctions to something like C:\Workspace\Sprint5 specifically that would drastically reduce the path depth required for your project.

If TFS still has a pending change for this file, you can use the tf utility from your workspace folder

C:\Users\Casey\Desktop\Workspace\LegalHoldings> tf undo $LegalHoldings/Sprints/Sprint5/Expunctions/LegalHoldings.Expunctions.Service.External/ServiceReferences/FillingReviewMDEService/LegalHoldings.Expunctions.Service.External.FilingReviewMDEService.GetFeesCalculationsResponse.datasource

to get rid of the pending change.

0
Jason Williams On

Usually these problems can be solved by shortening the paths higher up the tree.

It looks like your local path is the problem, so try mapping your code to a shorter root folder (e.g. C:\code rather than c:\users\Casey\desktop\workspace...)

Alternatively, you may be able to rename some mid level folders in your tfs structure to shorten the paths. But that's more extreme and probably not necessary in this case.

3
ShloEmi On

In VS/TFS 2012, I found this helpful:

[Open TFS Explorer] -> [Right click the root folder] -> Advanced->'Remove Mapping...'

enter image description here

Then, you can change the path:

enter image description here

HTH