TFS Checkout issue TF400898

Had an issue today with one of our CD pipelines in Thoughtsworks GO!  where it was throwing the following error:

[cruise] Start updating WorkItemSource at revision 5555 from http://mytfsserver1p:8080/tfs
Failed while checking out into Working Folder: pipelines\AcmeTracker\AcmeSource, Project Path: $/Group/Services/acme.svc/Main, Workspace: d3f98ee96fd565s4f65s4fdsd564wer6b292b74, Username: SVCUser, Domain: MyDomain,
Root Cause: com.microsoft.tfs.core.exceptions.TECoreException: TF400898: An Internal Error Occurred. Activity Id: 111cc569-f6fa-4f55-8b9c-b6d3de7741b5.

Not very much information to go on but if you connect to the event viewer for the TFS server you will see more errors that correlate to the same time.  In my case, I had the following:

Exception Message: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. (type PathTooLongException)
Exception Stack Trace:    at Microsoft.TeamFoundation.VersionControl.Common.VersionControlUtil.CheckLocalItem(String item, String parameterName, Boolean allowNull, Boolean allowWildcards, Boolean allow8Dot3Paths, Boolean checkReservedCharacters)

This is far more helpful and indicates the TFS source path is too long and hitting the 248 character maximum. 

TF400898 is a general error which could wrap almost any kind of server-side TFS error.  Check the event log to find the real issue.

Leave a Reply