Troubleshooting
Problem
The following command fails
apic global-policy-prehooks:create --catalog subincatalog1 --configured-gateway-service apigw --org porg1 --server "apim.mgmt.apic.hostname.ibm.com" --scope catalog /home/user/GlobalPolicy.yaml
Error: A resource of type global_policy_prehook already exists. Please update the existing resource.
Resolving The Problem
As per https://www.ibm.com/docs/en/api-connect/10.0.8_lts?topic=applications-working-global-policies:
You can upload as many global policies into a gateway service as you want, but you can designate at most one global policy to be pre-request, one to be post-response, and one to be an error, at any one time.
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":"a8mKe000000CaZVIA0","label":"API Connect-\u003EAPIC Gateway"}],"ARM Case Number":"TS020600503","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"10.0.8"}]
Was this topic helpful?
Document Information
Modified date:
03 November 2025
UID
ibm17250022