• NoOrgFound - No org configuration found for name test-s5jmvlwc6kat@example.com

Issue #1024 resolved
Patryk Organa created an issue

When I create new scratch org with username def for first time, it works well, IC recognizes it push source works correctly and other things also.

Then after deletion def scratch org and creating new one with the same username - def - when I try to push source it gives error from Title:

• NoOrgFound - No org configuration found for name test-s5jmvlwc6kat@example.com

Interesting thing is that all other things like, open connection, anonymous apex, soql query editor works well with new def org.

Comments (12)

  1. Scott Wells repo owner

    Patryk, this looks like an error coming back from the CLI. Does the same thing occur if you run the corresponding commands via the CLI? The reason that anonymous Apex, open connection, etc., would work is that those bypass the CLI and instead just use the OAuth access token.

    You can also just run the failing command with debug logging enabled for Salesforce DX as documented here:

    http://www.illuminatedcloud.com/support/debuglogging

    and send me the resulting idea.log. That will show me clearly what the CLI is doing when this failure occurs.

  2. Scott Wells repo owner

    Patryk, thanks for the log. Here's what I see:

    2018-06-07 16:33:57,005 [1961532]   INFO - j.builder.ForceComSfdxDeployer - Using the sfdx CLI to push changes for project 'HappyStaffing' to scratch org 'def' with force=false, background=false. 
    2018-06-07 16:33:57,005 [1961532]  DEBUG - atedcloud.util.CommandLineUtil - Running command line: C:/Program Files/sfdx/bin/sfdx.exe force:source:push -u test-g88loffdtmjp@example.com --json 
    

    If you run sfdx force:org:list from the command-line, what username does it show for the alias def? If it's not test-g88loffdtmjp@example.com, my guess is that IC has cached something more aggressively than it should have. If that's the case, does restarting the IDE resolve the issue?

  3. Patryk Organa reporter

    ALIAS SCRATCH ORG NAME USERNAME ORG ID EXPIRATION DATE ─── ───── ──────────────── ───────────────────────────── ────────────────── ─────────────── (U) def Demo Company test-l6vxghqdvvq6@example.com 00D7E000000DOT2UAO 2018-06-14

  4. Scott Wells repo owner

    Okay, so IC has a stale reference to the old username. Does restarting the IDE resolve the issue? Obviously not ideal, but trying to see if that gives you an effective workaround until I can address the bug.

  5. Patryk Organa reporter

    And also I just thought that would be nice to have possibility to set up push progress bar to run allways in background, without need to click 'Background' on every push or pull

  6. Scott Wells repo owner

    Delivered in 1.8.3.3 and 2.0.2.6. IC should detect when scratch orgs associated with the same alias change as a result of expiration/explicit deletion and subsequent recreation.

  7. Log in to comment