Couchbase Server KV Error: “EINVAL” on null Upsert(SDK .Net 2.7, server 6.0.4)

I am trying to multi mutate a document, wherein one value has to be null.

I’m getting the following error: “KV Error: {Name=“EINVAL”, Description=“Invalid packet”, Attributes=“internal,invalid-input”}”.

I see that it’s a bug and has been mentioned here StackOverflow and logged here: NCBC-2640.

However, I couldn’t find a fix for this. Is there a fix available to handle this scenario?

@nehapandey_wu -

I think the the wrong NCBC was referenced, the fix is in this ticket:

Which version of the SDK are you using?


Hi @jmorris,

Thank you for responding.

I’m using SDK 2.7 for .net core.

Hi @jmorris ,

How do we handle this scenario in our code or do we have to update the SDK?

Yes, you will have to update to the latest version of 2.7:


1 Like