Skip to content

Connected App consumer key can not be written

Detection

  • String: Connected apps must have a unique 'consumerKey'

Examples

  • Error My_Integration Connected apps must have a unique 'consumerKey', and once set this value is not writable.

Resolution

Each org generates the consumer key of its Connected Apps, and a deployment can not overwrite it.
- Remove <consumerKey> from the .connectedApp-meta.xml file
- List the Connected Apps in manifest/package-no-overwrite.xml: CI/CD creates them once, then never overwrites the ones that exist (https://sfdx-hardis.cloudity.com/salesforce-devops-config-overwrite/)

Comments