MuleSoft · Object Store Connector
OS:KEY_ALREADY_EXISTS
Short answer
OS:KEY_ALREADY_EXISTS means an Object Store Store operation with Fail If Present set to true found the key already in the store. Leave Fail If Present at false to update the value, or handle the error when a duplicate is expected.
VerifiedLast verified
01Error text
Error type: OS:KEY_ALREADY_EXISTS02Likely causes
- Fail If Present is
trueon the Store operation and the key already exists in the store.
03How to fix it
- Decide whether an existing key should be updated or should stop the flow.
- To update the existing value, set Fail If Present to
false, which is the default. - To keep the check, handle the failure with an error handler of type
OS:KEY_ALREADY_EXISTS. This is a common way to detect a message that was already processed.
04Official documentation
→Related errors
- OS:KEY_NOT_FOUNDOS:KEY_NOT_FOUND means an Object Store Retrieve or Remove operation asked for a key that has no value in the store. Check that the key exists first with Contains, or give Retrieve a default value.
- OS:NULL_VALUEOS:NULL_VALUE means an Object Store Store operation was given a null value while Fail On Null Value is true, which is the default. Give the value a fallback, or set Fail On Null Value to false to skip the operation.
Test every fix in a non-production environment before you apply it to production. See how entries are verified.
More for MuleSoft work:Open MuleSoft jobsMuleSoft rates and salariesHire a senior MuleSoft developer