com.mongodb.WriteConcernException: Write failed with error code 16836 and error message 'Cannot apply $pull to a non-array value'

Stack Overflow | aarish | 5 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Mongodb update query returns 'Cannot apply $pull to a non-array value'

    Stack Overflow | 5 months ago | aarish
    com.mongodb.WriteConcernException: Write failed with error code 16836 and error message 'Cannot apply $pull to a non-array value'
  2. 0

    GitHub comment 365#209966986

    GitHub | 11 months ago | Davilink
    com.mongodb.WriteConcernException: Write failed with error code 16837 and error message 'cannot use the part (recipients of recipients.address) to traverse the element ({recipients: [ { address: "hij@example.com", name: "Bessie Theresa Harmon", _id: ObjectId('570fa6be9aea6dd83337d634') } ]})'
  3. 0

    Issue in data insertion mongodb error

    Stack Overflow | 9 months ago | kiranramannaiyer
    com.mongodb.WriteConcernException: Write failed with error code 8 and error message 'assertion src/mongo/db/storage/mmap_v1/extent.h:81'
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.mongodb.WriteConcernException

      Write failed with error code 16836 and error message 'Cannot apply $pull to a non-array value'

      at com.mongodb.operation.BaseWriteOperation.convertBulkWriteException()
    2. MongoDB Java Driver
      BaseWriteOperation.convertBulkWriteException
      1. com.mongodb.operation.BaseWriteOperation.convertBulkWriteException(BaseWriteOperation.java:239)
      1 frame