4

I am getting the below error when I deploy connected app using ANT. Do you guys have any idea, why this error occurs and whats the solution to migrate via ANT.

Error: The consumer key is already taken

Thanks, Syed

7

According to the ConnectedApp Metadata API documentation, each connected app must have a unique consumerKey value.

One way to deploy your connected app is to remove the consumerKey from the .connectedApp xml file. When this component deploys in the new org, a new consumerKey will be automatically generated.

Another option is to create the connected app in one org (your target org, if possible) and access it from other orgs using its connected app details.

| improve this answer | |
  • Is there documentation on how to access one org's connectedApp in another org so the secret key doesn't change? – paulie4 Feb 19 '18 at 19:16
  • Any update on this how to share connected app in different development orgs? – balinder singh May 17 '18 at 22:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.