java.lang.IllegalArgumentException: Update document keys must start with $: _id

Google Groups | Vivek YS | 2 years ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to poroszd . Or join the community to write better ones.
  1. 0

    Best way to create bulk upsert

    Google Groups | 2 years ago | miki haiat
    java.lang.IllegalArgumentException: Update
  2. 0

    Bulk upsert

    Google Groups | 2 years ago | Vivek YS
    java.lang.IllegalArgumentException: Update document keys must start with $: _id
  3. 0

    How to use Mongo Bulk Update using its Java Driver?

    Stack Overflow | 2 years ago
    java.lang.IllegalArgumentException: Update document keys must start with $: _id
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    Current Spark-Mongodb does not support 3.x mongo drivers. Use long instead of Date until it is upgraded.
  6. 0
    samebug tip
    Current Spark-Mongodb does not support 3.x mongo drivers. Use long instead of Date until it is upgraded.
    via GitHub by pmadrigal

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Update document keys must start with $: _id

      at com.mongodb.DBCollectionImpl$Run.executeUpdates()
    2. MongoDB Java Driver
      BulkWriteOperation.execute
      1. com.mongodb.DBCollectionImpl$Run.executeUpdates(DBCollectionImpl.java:769)
      2. com.mongodb.DBCollectionImpl$Run.execute(DBCollectionImpl.java:734)
      3. com.mongodb.DBCollectionImpl.executeBulkWriteOperation(DBCollectionImpl.java:149)
      4. com.mongodb.DBCollection.executeBulkWriteOperation(DBCollection.java:1737)
      5. com.mongodb.DBCollection.executeBulkWriteOperation(DBCollection.java:1733)
      6. com.mongodb.BulkWriteOperation.execute(BulkWriteOperation.java:93)
      6 frames
    3. casbah-core
      BulkWriteOperation$$anonfun$1.apply
      1. com.mongodb.casbah.BulkWriteOperation$$anonfun$1.apply(BulkWriteOperation.scala:71)
      2. com.mongodb.casbah.BulkWriteOperation$$anonfun$1.apply(BulkWriteOperation.scala:71)
      2 frames
    4. Scala
      Try$.apply
      1. scala.util.Try$.apply(Try.scala:161)
      1 frame
    5. casbah-core
      BulkWriteOperation.execute
      1. com.mongodb.casbah.BulkWriteOperation.execute(BulkWriteOperation.scala:71)
      1 frame