Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SFDX: Refresh SObject Definitions fails with "Cannot read property 'forEach' of undefined" on newest plugin version #3056

Closed
anders-norgaard opened this issue Mar 11, 2021 · 5 comments

Comments

@anders-norgaard
Copy link

Summary

Everytime the SFDX: Refresh SObject Definitions command is run, it fails with the message "ended with error Failure performing sObject describe Cannot read property 'forEach' of undefined".
This has been testet on multiple devices, and is happening on all refresh types (All, Custom and Standard SObjects).

Steps To Reproduce:

  1. Open command palette
  2. Select command SFDX: Refresh SObject Definitions
  3. Choose one of the three options

Expected result

Expected SObject definitions to be fetched

Actual result

The command fails with error "ended with error Failure performing sObject describe Cannot read property 'forEach' of undefined"

Additional information

Salesforce CLI console output
image

VSCode console output
image

VS Code Version: 1.54.1

SFDX CLI Version: 7.90.2-b8f9206a5c

SFDX CLI Integration Plugin Version: v51.4.0

OS and version: Windows 10 20H2

@uip-robot-zz
Copy link

This issue has been linked to a new work item: W-9007196

@lcampos
Copy link
Contributor

lcampos commented Mar 15, 2021

Hi @jardorr thanks for opening this issue. I haven't been able to replicate this on any of my orgs but I created a tests that could replicate the error on the area I think it might be happening for you. I'm thinking the problem is that the describe calls the feature does against your org are returning no results, can you confirm if you have access to sobjects in the org you are using ?

@anders-norgaard
Copy link
Author

Hi @lcampos.
I have the System Administrator profile in the org, and I have full sObject access in the Org Browser.
I do believe the you are correct that the org is returning no results. I suspect this to be due to company policy network restrictions (VPN connection due to WFH). Curiously enough, everything else (Org browser, deploy/retrieve from org, authorize org etc.) works as expected.

@jeffb-sfdc
Copy link
Contributor

jeffb-sfdc commented Apr 1, 2022

@jardorr I wasn't able to reproduce this. We've made a number of enhancements to the Org Browser, so I suspect this issue was fixed and doesn't exist anymore. If you are still able to reproduce this, please let us know, and let us know the repro steps you are performing.

@jeffb-sfdc jeffb-sfdc reopened this Apr 1, 2022
@jeffb-sfdc jeffb-sfdc removed the status:in review pr/issue is being reviewed label Apr 1, 2022
@jeffb-sfdc jeffb-sfdc removed their assignment Apr 1, 2022
@no-response
Copy link

no-response bot commented Apr 8, 2022

This issue has been automatically closed because there has been no response to our request for more information from the original author. Currently, there is not enough information provided for us to take action. Please reply and reopen this issue if you need additional assistance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants