oak-run recovery on AEM 6.5 mongo 4 fails with Payload document size is larger than maximum | Community
Skip to main content
AndreaB69
Level 3
May 10, 2021
Question

oak-run recovery on AEM 6.5 mongo 4 fails with Payload document size is larger than maximum

  • May 10, 2021
  • 1 reply
  • 1194 views

Hi,

I am trying to run oak-run repair to fix lastRev issues on a AEM 6.5 sp 8 Mongo 4.0 installation.
It fails with
Exception in thread "main" org.bson.BsonMaximumSizeExceededException: Payload document size is larger than maximum of 16777216.
at com.mongodb.internal.connection.BsonWriterHelper.writePayload(BsonWriterHelper.java:67)
Can anyone suggest a workaround on this?
Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Asutosh_Jena_
Community Advisor
Community Advisor
May 10, 2021

Hi @andreab69 

 

As per MongoDB BOL here the maximum BSON document size is 16 megabytes.

AndreaB69
AndreaB69Author
Level 3
May 10, 2021
Hi, I am trying to migrate (also with oak-run) from a previous 6.3 installation on mongo 3, so somehow content with a bigger document size ended up there...