Aerospike Exception Error Code 4 Parameter Error when doing a put through java client

Finally. Resolved!

I was using the REPLACE RecordsExistsAction in this case. Any bin with null value will fail in this configuration. Aerospike treats a null value in a bin as equivalent to removing that bin value from the record for a key. Thus REPLACE configuration doesn’t make sense for such an operation, and hence a parameter error - Invalid DB operation.

UPDATE config on the other hand will work perfectly fine.

1 Like