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

MuleSoft error
Error type: OS:KEY_ALREADY_EXISTS

02Likely causes

  • Fail If Present is true on the Store operation and the key already exists in the store.

03How to fix it

  1. Decide whether an existing key should be updated or should stop the flow.
  2. To update the existing value, set Fail If Present to false, which is the default.
  3. 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

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

The iPaaS Brief

Subscribe to The iPaaS Brief.

The iPaaS newsletter for the people who run integrations. From iPaaS Group.

Free. You finish on theipaasbrief.com and confirm by email.