salesforcedx-vscode icon indicating copy to clipboard operation
salesforcedx-vscode copied to clipboard

Refresh SObject Definitions in Trailhead org

Open anthonygiuliano opened this issue 2 years ago • 3 comments

Summary

Refresh SObject Definitions failing for Standard Objects when running against a Trailhead org

Steps To Reproduce:

  1. Create trailhead playground
  2. Create vscode project
  3. Authorize via CLI and set new trailhead playground as default for project
  4. SFDX: Refresh SObject Definitions
  5. Choose Standard Objects (or All Objects)

Expected result

Successfully refresh object definitions

Actual result

Starting SFDX: Refresh SObject Definitions

10:22:12.962 sfdx sobject definitions refresh
Failure performing sObject describe aborted
10:22:22.828 sfdx sobject definitions refresh
 ended with error Failure performing sObject describe aborted

Additional information

Refresh SObject Definitions for Custom Objects works as expected.

Salesforce Extension Version in VS Code:

Name: Salesforce Extension Pack Id: salesforce.salesforcedx-vscode Description: Extensions for developing on the Salesforce Platform Version: 54.11.0 Publisher: Salesforce VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=salesforce.salesforcedx-vscode

SFDX CLI Version:

sfdx-cli/7.149.1 darwin-arm64 node-v16.15.0

OS and version:

MacOS 12.3.1 (21E258)

anthonygiuliano avatar May 09 '22 22:05 anthonygiuliano

Hi @anthonygiuliano - thanks for submitting the issue. I have been unable to repro so far, as I have been able to successfully connect to a Trailhead Playground org and refresh Standard Objects. Do you see anything downloaded to .sfdx/tools/sobjects/standardObjects? Or is that directory empty after getting the "Failure performing sObject describe aborted" error?

klewis-sfdc avatar May 24 '22 23:05 klewis-sfdc

Thanks for the response! This is strange. I was also unable to reproduce this using a new project and a fresh playground (created last night). But I can still reproduce it using a new project and both of the original playgrounds I was using when I submitted this report. One of those was fresh at the time.

I've had all sorts of trouble creating trailhead playgrounds over the past few weeks. Is it possible the same problem was also causing this and has since been resolved? Yesterday was the first day I was able to create a playground without retrying several times. My friend was having the same problem creating playgrounds as of yesterday or Monday morning.

anthonygiuliano avatar May 25 '22 13:05 anthonygiuliano

To answer your question though, there were no changes in .sfdx/tools/sobjects/standardObjects. Just the files that are there when I create a new project

anthonygiuliano avatar May 25 '22 13:05 anthonygiuliano

This issue has not received a response in 7 days. It will auto-close in 7 days unless a response is posted.

github-actions[bot] avatar Oct 20 '22 02:10 github-actions[bot]