Closed mottish closed 5 years ago
@mottish not sure if I completely get what you tried to describe above.
1) are you using mongodb as a source and sink?
2) do you mean that there are documents in the collection you are reading from which might have null
as the _id
field?
3) by design/definition of mongodb itself, the _id
field has to be unique so even if there is a document which is really using null
for the _id
then you may only ever have one such document per collection otherwise it would immediately violate the uniqueness property and lead to a duplicate key error on writes
@mottish since I haven't heard back so far I assume you found a way to mitigate your problem described above. will close this for now. feel free to re-open if necessary.
Hi @hpgrahsl,
I have a new issue where the MongoDB Sink connector fails with exception "key _id can not be null".
I have a MongoDB with collections contains millions of documents and it seems that some may have NULL objectId.
Is it possible to skip them and not to fail the entire Sink connector?
My config:
The full exception the connector displays: