azure-devops-dotnet-samples icon indicating copy to clipboard operation
azure-devops-dotnet-samples copied to clipboard

CreateChangesetAsync cause a "The maximum request size of 26214400 bytes was exceeded." error with a 13mb file

Open Sl1ckR1ck opened this issue 7 years ago • 3 comments

Hi,

i just created a tool to checkin changes from a given folder to TFS using the CreateChangesetAsync method.

Im my tests, i found that trying to checkin a 13mb file will generate the following error: "The maximum request size of 26214400 bytes was exceeded."

Why is that? First the file is 13mb but the message suggests that it exceeding 26mb? why is it doubled?

Also, why is there any file size limit? What should i do to avoid this?

Sl1ckR1ck avatar Oct 16 '18 19:10 Sl1ckR1ck

I have the same issue? Is there anyone who solved that?

fahrettinozturk avatar Jul 18 '19 17:07 fahrettinozturk

I'm hitting this same problem, though I'm seeing about 19 MB as the practical limit (due to the base64 encoding of the file contents). We previously used the old Microsoft.TeamFoundationServer.ExtendedClient (SOAP-based) SDK to upload larger files without problem. Why is the REST API file size limit so low? The SOAP-based API is not supported on .NET Core so this is blocking our update off the .NET Framework.

mvarblow avatar Jul 28 '20 12:07 mvarblow

I was told by MS support that this is a known limitation of the service. I created a feature request. Please upvote if this limitation is problematic for you. https://developercommunity.visualstudio.com/idea/1130401/allow-creating-large-tfvc-changesets-via-the-api.html

If you're using Azure DevOps Server (on-prem) then you could try using the workaround described here: https://stackoverflow.com/questions/59649105/large-azure-devops-and-azure-devops-server-2019-changesets-fail-with-request

mvarblow avatar Jul 29 '20 22:07 mvarblow