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: https://issues.couchbase.com/browse/NCBC-2038

Which version of the SDK are you using?

-Jeff

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: https://www.nuget.org/packages/CouchbaseNetClient/2.7.24

-Jeff

1 Like