Cause
A document cannot contain more than 2^28 (268435456) memorywords, which are used to encode atom IDs. This translates to roughly 200 million text nodes, depending on how big the text nodes are. This limit is for a document constructed in memory; when you save a document to the database, the limit is 512MB per fragment.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.