Client Reset - Java SDK: Automatic recovery from client reset failed

Hi, we are using the Realm Java SDK with flexible sync in our Android app. We are trying to implement RecoverUnsyncedChangesStrategy as our client reset handling strategy. The issue that we are facing is, the automatic recovery is failing with the following error:

CLIENT_RESET(realm::app::CustomError:7) : Automatic recovery from client reset failed

Is there any documentation on why the automatic recovery is failing?

Here’s a code snippet:

private val recoverUnsyncedChangesStrategy = object : RecoverUnsyncedChangesStrategy {
        override fun onBeforeReset(realm: Realm) {
            Log.d(TAG, "attempting to automatically recover unsynced changes")

        override fun onManualResetFallback(session: SyncSession, error: ClientResetRequiredError) {
            Log.d(TAG, "manual reset required")
            handleManualReset(session, error)

        override fun onAfterReset(before: Realm, after: Realm) {
            Log.d(TAG, "successfully recovered all unsynced changes")


The onBeforeReset and onAfterReset functions are never triggered, onManualResetFallback is triggered with the failure message mentioned above.

Would really appreciate some help. Thanks!