Value was either too large or too small for a UInt32: TFS Checkin Error

Tfs

Tfs Problem Overview


When I'm trying to check in some code TFS and below error message is coming.

> Value was either too large or too small for a UInt32.

What is causing this issue and how can I fix this issue?

Tfs Solutions


Solution 1 - Tfs

I have found the solution for this issue.

Solution:

> Save your files before check-in and then initiate check in. This issue > will not come.

Root Cause:

> It seems to be a bug in the dialog (Not sure), but certainly error > message is confusing to user.

Hope this solution will resolve your issue.

Solution 2 - Tfs

As Geeky Ninja mentions, the problem is that not all files are saved. Luckily VS has a handy button for this (ctrl + shift + s):

File > Save All 

Helps me every time

Solution 3 - Tfs

Build and check in. You will not see the problem. It's always good to see your changes are actually compiled with no errors before checking in.

Solution 4 - Tfs

Weird error. In my case it was when I tried to Shelf my code. I just ran the solution to ensure it worked before I created a shelfset. I then tried to create a shelfset in so all the files were saved, I thought.

I did the Save All and actually restarted Visual Studio. Then Chrome hung as Visual Studio was starting ... I was finally able to create my shelfset update.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionGeeky NinjaView Question on Stackoverflow
Solution 1 - TfsGeeky NinjaView Answer on Stackoverflow
Solution 2 - TfsSquazzView Answer on Stackoverflow
Solution 3 - TfsRam PratapView Answer on Stackoverflow
Solution 4 - TfsKeenan StewartView Answer on Stackoverflow