locked
Resource exceeds maximum allowed size. Maximum allowed size is 16384 bytes RRS feed

  • Question

  • Hi,

    I get an error while creating a document that is above 16KB.

    Exception: Microsoft.Azure.Documents.RequestEntityTooLargeException, message: {"Errors":["Resource exceeds maximum allowed size. Maximum allowed size is 16384 bytes

    Is there some override that will allow me to get past it?

    Thanks

    Friday, September 12, 2014 6:44 AM

Answers

  • Note that this limit has been increased to 512KB. Please refer to the limits page http://azure.microsoft.com/en-us/documentation/articles/documentdb-limits/ for the most up to date values.

    Edit: bumped up to 512KB from 256KB (from 16KB) now.

    Thursday, October 2, 2014 11:24 PM

All replies

  • I am unable to upload documents larger than 16kb. If I upload ~20KB, I get the following exception in the .NET client:

    Microsoft.Azure.Documents.RequestEntityTooLargeException, message: {"Errors":["Resource exceeds maximum allowed size. Maximum allowed size is 16384 bytes. Actual size is 20081 bytes."]}

    According to DocumentsDB Limits the "Maximum request size of document, attachment, stored procedure, trigger and UDF" is 16KB.

    Am I understanding this correct that documents larger than 16KB is not supported? The reason I'm not certain is that the page says "Maximum request size of document", rather than "Maximum size of document".

    • Edited by Knafve Saturday, August 23, 2014 4:31 PM
    • Merged by Han, MSFT Friday, April 17, 2015 8:49 PM Same inquiry
    Saturday, August 23, 2014 4:23 PM
  • Hi,

    You are correct. Currently the size of the document is limited to 16 KB.

    If you want to have the size increased in the future, please do provide us a feedback.

    http://feedback.azure.com/forums/263030-documentdb

    Regards,

    Mekh.

    Sunday, August 24, 2014 3:17 PM
  • I've added it here:

    http://feedback.azure.com/forums/263030-documentdb/suggestions/6339464-support-documents-larger-than-16kb

    But what's is the rationale behind this? 16KB is tiny in terms of a single document in a document database.


    Nitramafve

    Sunday, August 24, 2014 3:58 PM
  • Hi,

    This limit as well as others are a pragmatic choice in the first Preview release to avoid unconstrained
    use cases and patterns. We set these limits based on the telemetry data gathered from various 1st party consumer services that have been using DocumentDB for some time now. We looked at how many collections services were creating per unit, the average document size, the maximum document size, page count on the response feeds and so on.

    However, these limits are not intrinsic limitations of the underlying service or technology.
    We intend to change some of these limits based on usage driven telemetry as well as, your feedback.

    Regards,

    Mekh.

    • Proposed as answer by Mekh Subba Sunday, August 24, 2014 5:10 PM
    Sunday, August 24, 2014 5:10 PM
  • At the moment, DocumentDB document size is limited to 16KB. Check here for details. Or check this earlier forum post.

    Or vote for this feedback item if you want larger document sizes.


    Friday, September 12, 2014 10:54 AM
  • Note that this limit has been increased to 512KB. Please refer to the limits page http://azure.microsoft.com/en-us/documentation/articles/documentdb-limits/ for the most up to date values.

    Edit: bumped up to 512KB from 256KB (from 16KB) now.

    Thursday, October 2, 2014 11:24 PM
  • Please note that this limit is now increased to 256KB. For the most up to date limits, please refer to http://azure.microsoft.com/en-us/documentation/articles/documentdb-limits/

    [Edit]This limit is 512KB. 

    • Proposed as answer by Mekh Subba Friday, October 10, 2014 3:14 AM
    • Edited by Han, MSFT Friday, April 17, 2015 8:52 PM Updates
    Thursday, October 2, 2014 11:28 PM