We are trying to setup the external credential authorization for an app Fenergo (This uses OAuth2.0). The callback URL has been configured on the app side as well.
However when we try to Authorize the external credential and get redirected to the app and try to Allow Access, it throws an error regarding Existing Link.
We have tried reconfiguring the from scratch but still to no avail.
Has anyone experienced this error before and how can we reset salesforce sandbox if there is any caching that is causing this?
I encountered this today and after a few hours of frustration, did solve this. What worked for me -
- our org uses a Permission Set for the External Credential Principal Access, which is auto-applied to ~15 Permission Set Groups. I'm not sure we fully let those PSGs recalculate after updating this Permission Set.
- our org was having an issue with storage. I don't know why that would impact this, but maybe Salesforce is crippling the org on refresh? Concurrently, the storage issue was fixed in PROD and after matching our full-copy org with the PROD licenses, a little while later this was fixed.
- the real item - get into Workbench and use the Utilities > REST Explorer, run this: /services/data/v62.0/tooling/query/?q=SELECT+Id,ExternalCredentialId,ParameterName,ParameterType+FROM+ExternalCredentialParameter. In my org, that returned 3 rows (which I can't actually explain). I deleted them, again using REST Explorer, re-created the Principal in my External Credential, re-added that to a single Permission Set that I didn't add to the PSGs (only my own User), then was able to successfully auth the Principal. We then added the new PS to the relevant PSGs.