Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

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

AndreaB69
Level 2
Level 2

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

2 Replies
Asutosh_Jena_
Community Advisor
Community Advisor

Hi @AndreaB69 

 

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

AndreaB69
Level 2
Level 2
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...