forcedotcom / devops-center-feedback

61 stars 2 forks source link

Cannot deploy connected app #256

Open jaapvandermolen opened 1 year ago

jaapvandermolen commented 1 year ago

Describe the bug I created a Connected App with OAuth enabled. This cannot be deployed becasue of the following error: " of Type ConnectedApp failed to deploy due to The consumer key is already taken."

To Reproduce Steps to reproduce the behavior:

  1. Create a new Connected App and check the "Enable OAuth Settings" checkbox
  2. Populate the required fields. Afterwards, client credentials should be generated (consumer key and secret)
  3. Add this to a WorkItem, commit and deploy.
  4. Deploying fails with above error.

Additional context Known issue with deploying connected apps: https://salesforce.stackexchange.com/questions/180747/migrating-connected-app-ant-deployment-error

Workaround Manually creating on all orgs and ignoring in .forceignore. Needs to be done in all DevOps orgs because otherwise profiles might give errors (they have references to Connected Apps)