Online Archive, Insufficient Indexes Alert

I configured an online archive for one of my database namespaces. The data was successfully moved to the online archive, but I encountered an error related to indexes when it finished. The error message states, “Online Archive, Insufficient Indexes Alert”. Upon further investigation, I realized that including “_id” as one of my partition fields (indexes) was likely causing the issue.

I don’t believe partition fields/indexes can be modified for an online archive. What would be the best approach to resolve this?

I’m guessing I need to get that data back into the cluster and then delete the archive? I attempted to use the $merge operation to bring the records back into the cluster. However, this process mistakenly placed the records back into the archived collection, resulting in duplication of records. Should I include additional information in the aggregate operation to specify the cluster location accurately? Here’s my aggregate. db.evaluatecollection.aggregate([
’ {
’ $sort: {
’ “_id”: 1,
’ “released”: 1,
’ }
’ },
’ {
’ “$merge”: {
’ “into”: {
’ “atlas”: {
’ “clusterName”: “isi-mongodb-testproject”,
’ “db”: “ISI”,
’ “coll”: “evaluatecollection”
’ }
’ },
’ “on”: [ “behId”, “beGrpCd” ],
’ “whenMatched”: “keepExisting”,
’ “whenNotMatched”: “insert”
’ }
’ }
'])