Error when clicking changeset : TF203034: The administrator has set a limit of 64 inputs for this operation. Verify the parameters of your operation and try again
Opened this issue · 4 comments
Don't know what exactly triggers this, but happens more often than not.
TF203034: The administrator has set a limit of 64 inputs for this operation. Verify the parameters of your operation and try again
Parameter name: targetItems
I work in a fairly large company and don't have access to the TFS settings. Is there any workaround for this maybe ?
Screenshot:
https://i.imgur.com/fz6caaM.png
We also seen that problem on some projects. But other teams works fine on the same server.
There are some information: https://social.msdn.microsoft.com/Forums/sqlserver/en-US/95995aa6-617c-4f55-ad91-3279cb827470/tf247003-the-administrator-has-set-a-limit-of-64-inputs-for-this-operation?forum=tfsversioncontrol
Looks like it depends on how many plausible target branches for selected changeset.
That could very well explain why it happens only sometimes. Maybe exclude certain branches that I know are obsolete ? Is that possible with the current code ?
So to fix temporarily for me:
I changed the GetMergesRelationships (BranchesViewModel.cs) to exclude the branches that I know are obsolete. Target branch count went from around 160 to 22 which resolved my issue.
Another option would be to batch the versionControl.TrackMerges (BranchesViewModel.cs) 64 at a time (or make it configurable) and merge the results.
to batch ... 64 at a time
I like that one!