ERROR running force:source:retrieve: Cannot read property 'getWorkspaceElements' of undefined
See original GitHub issueSummary
Created a project with manifest and tried to retrieve Wave (Einstein Analytics) components in order to setup source control and CI/CD with them, however, I’m receiving an error in the output.
I am using the sample Developer Edition org provided in Trailhead, so the issue should be easy to reproduce.
Steps To Reproduce:
- Create a new Developer Edition org with Einstein Analytics enabled - https://developer.salesforce.com/promotions/orgs/analytics-de
SFDX: Create Project with Manifest
SFDX: Authorize an Org
from step 1.- Change the
manifest/package.xml
content with below - Right click on
package.xml
and executeSFDX: Retrieve Source in Manifest from Org
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<types>
<members>*</members>
<name>WaveApplication</name>
</types>
<types>
<members>*</members>
<name>WaveDashboard</name>
</types>
<types>
<members>*</members>
<name>WaveDataflow</name>
</types>
<types>
<members>*</members>
<name>WaveDataset</name>
</types>
<types>
<members>*</members>
<name>WaveLens</name>
</types>
<types>
<members>*</members>
<name>WaveRecipe</name>
</types>
<types>
<members>*</members>
<name>WaveXmd</name>
</types>
<types>
<members>*</members>
<name>WaveTemplateBundle</name>
</types>
<version>45.0</version>
</Package>
Expected result
All Wave*
components from the org should have been retrieved, and the command should exit with code 0 (i.e. without any errors).
Actual result
Some (or all? Not sure how to verify.) wave components get retrieved into force-app/main/default/wave
and force-app/main/default/waveTemplates
folders, the command exits with code 1 and the below error is reported in the output:
14:50:36.562 sfdx force:source:retrieve --manifest f:\SF\test\manifest\package.xml
ERROR running force:source:retrieve: Cannot read property 'getWorkspaceElements' of undefined
14:50:50.842 sfdx force:source:retrieve --manifest f:\SF\test\manifest\package.xml ended with exit code 1
VS Code Version:
Version: 1.33.0 (system setup) Commit: 0dd516dd412d42323fc3464531b1c715d51c4c1a Date: 2019-04-04T15:14:28.026Z Electron: 3.1.6 Chrome: 66.0.3359.181 Node.js: 10.2.0 V8: 6.6.346.32 OS: Windows_NT x64 10.0.17763
SFDX CLI Version:
bash-4.3$ sfdx -v
sfdx-cli/7.3.0-94ecf2d5ee win32-x64 node-v10.15.3
OS and version:
Microsoft Windows 10 Pro 10.0.17763
Issue Analytics
- State:
- Created 4 years ago
- Comments:32
Top GitHub Comments
if you have this in your package.xml it does n’t work
but it was working…
I am also getting the same error while running sfdx force:source:retrieve -x Package.xml