Articles in this section

Why am I getting a parameter error when using REPLACE with recordExistsAction

Problem Description

When trying to do a write with write policy REPLACE with recordExistsAction, we get error code 4, parameter error.


Explanation

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.


Solution

Try using with write policy UPDATE instead of REPLACE.


Applies To Earliest Version

Pre 4.9

Applies To Latest Version

Current Version
Was this article helpful?
0 out of 0 found this helpful