Expand my Community achievements bar.

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

Avatar

Level 3

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

Avatar

Community Advisor

Hi @AndreaB69 

 

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

Avatar

Level 3
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...