The Plugin is not able to connect to the org.


Question

I can connect to other sandboxes without issues, but when trying to connect to Production, I receive the following error:

[12:15:22.262] Connecting to staging using SFDX force:org:display ...
[12:15:30.534] Successfully connected to staging.
[12:15:31.290] Connecting to prod using SFDX force:org:display ...
[12:15:33.342][ERROR] Command initialization error: Attempt to connect to prod failed. Please, try to refresh your local SFDX CLI connection.

The result of sf force org display shows the org is connected:

{
  "status": 0,
  "result": {
    "id": "00D1U000000xKhkUAF",
    "accessToken": "accessToken",
    "instanceUrl": "https://obscured-company-name.my.salesforce.com",
    "username": "obscured.username@company.com",
    "clientId": "PlatformCLI",
    "connectedStatus": "Connected",
    "alias": "prod"
  }
}

Answer

This issue may stem from a corrupted SFDX CLI configuration.

As a resolution, consider completely reinstalling the SFDX CLI and the SFDMU Plugin. If the problem persists, further debug the issue locally.

For more information, see the related GitHub issue: SFDX-Data-Move-Utility Issue #487.

Last updated on 15th Apr 2024