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.