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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Stack Overflow by aarish
, 1 year ago
Write failed with error code 16836 and error message 'Cannot apply $pull to a non-array value'
via Stack Overflow by kiranramannaiyer
, 1 year ago
Write failed with error code 8 and error message 'assertion src/mongo/db/storage/mmap_v1/extent.h:81'
via GitHub by Davilink
, 1 year ago
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') } ]})'
com.mongodb.WriteConcernException: Write failed with error code 16836 and error message 'Cannot apply $pull to a non-array value'

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.