You are currently reviewing an older revision of this page.
Creating or importing a web API in Appian Designer fails with the following error in the application server log:
webApi <UUID> "<WEBAPI_NAME>": An error occurred while creating webApi [uuid=<UUID>]: org.hibernate.exception.ConstraintViolationException: could not insert: [com.appiancorp.webapi.WebApi] (APNX-1-4071-007)...Caused by: java.sql.SQLException: Duplicate entry '<ENDPOINT NAME>-<HTTP METHOD>-0' for key 'webapi_aliasmethod_idx'
A web API with the same endpoint already exists in the environment. Web API endpoint names are saved to the primary database and must be unique.
Rename the endpoint of the web API to be unique. This can be the endpoint of the web API being created/imported or the existing web API.
This article applies to all versions of Appian.
Last Reviewed: June 2021