- 
    Type:
Bug
 - 
    Resolution: Fixed
 - 
    Priority:
Major - P3
 - 
    Affects Version/s: 4.0.4
 - 
    Component/s: mongodump, mongoexport
 - 
    None
 
When attempting to dump a local capped collections, mongodump fails with the following message:
Unable to find source-code formatter for language: plain. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
mongodump --db local --collection oplog
2018-12-13T09:15:35.156+0100    writing local.oplog to
2018-12-13T09:15:35.157+0100    Failed: error writing data for collection `local.oplog` to disk: error reading collection: error processing query: ns=local.oplogTree: $and
Sort: {}
Proj: {}
planner returned error: bad hint
(The oplog collection in this example was restored previously from another environment, and is not named rs.oplog on purpose)