Informix Error -26701: User (<username>) was not created because it already exists. </username>
Cause and resolution
User (<username>) was not created because it already exists. </username>
Verify the user name. If you want to create a user, specify a unique user name that is not registered in the database server. If you want to change the properties of a user account, you can use either the DROP USER or RENAME USER statement and then rerun the CREATE USER statement. You can also use the ALTER USER statement to change the properties of an existing user.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-26701 fires when CREATE USER names a user that already exists — per the official
guidance.
- The named user is already registered, per the official guidance — the direct, only cause.
Solutions / Resolution
- Specify a unique user name, per the official guidance, or
DROP USER/RENAME USERthe existing account first, then rerunCREATE USER, per the official guidance, or- Use
ALTER USERto change the existing user's properties instead, per the official guidance.
Examples
N/A
No specific triggering statement is documented beyond creating an already-existing user.
Diagnostic Checks
- Check whether the named user already exists, and use
ALTER USER, orDROP/RENAMEfirst if a fresh create is genuinely intended.
Related Errors / Related Topics
- -26700 — "User (
) was not found." The mirror-image error, on the user not being found rather than already existing. - -26712 — "The default user was not created because it already exists." The same class of already-exists error, for the default user rather than a named user.
CREATE USER named a user that already exists — use ALTER USER, or DROP/RENAME
first.