Troubleshooting
Problem
API's are case sensitive in API Connect. If you create a draft API named "xyz:1.0.0" and then try to import another API with the same name, but different capitalization, for example "Xyz:1.0.0" it will throw an error and you cannot import the API.
Similarly, if multiple products within the same namespace refer to an API using different capitalization for the API name, it will cause errors and prevent you from publishing the second product.
Note: Namespace refers to the same provider organization, catalog, and space(if applicable).
Note: Namespace refers to the same provider organization, catalog, and space(if applicable).
For example, if product A references the API “xyz:1.0.0” and publishes successfully, a user cannot publish product B if it references the API “Xyz:1.0.0”. The system throws an error that prevents product B from publishing because Product A already uses an API with the same name, but different capitalization.
Symptom
Within the apim pod logs users might see errors like the following:
For Draft API:
For Draft API:
YYYY-MM-DDTHH:MM:SS.144Z bhendi:error [GUID] [-1763276271] lib/db::execute failed, Code='23505', Message='duplicate key value violates unique constraint "draft_api_lower_namespace_lower1_idx"': duplicate key value violates unique constraint "draft_api_lower_namespace_lower1_idx", stack: error: duplicate key value violates unique constraint "draft_api_lower_namespace_lower1_idx"
For multiple products referencing an API with different capitalization
YYYY-MM-DDTHH:MM:SS.332Z bhendi:error [GUID] [-1955051459] lib/db::execute failed, Code='23505', Message='duplicate key value violates unique constraint "api_lower_namespace_lower1_idx"': duplicate key value violates unique constraint "api_lower_namespace_lower1_idx", stack: error: duplicate key value violates unique constraint "api_lower_namespace_lower1_idx"
Document Location
Worldwide
[{"Type":"MASTER","Line of Business":{"code":"LOB77","label":"Automation Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSMNED","label":"IBM API Connect"},"ARM Category":[{"code":"a8mKe000000CaZLIA0","label":"API Connect-\u003EAPIC Admin"}],"ARM Case Number":"TS017402322","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions"}]
Log InLog in to view more of this document
This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.
Was this topic helpful?
Document Information
Modified date:
31 October 2024
UID
ibm17171884