forcedotcom / cli

Salesforce CLI
https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/
BSD 3-Clause "New" or "Revised" License
493 stars 78 forks source link

Issues to Retrieve Metadata #351

Closed quanlin-guo closed 2 years ago

quanlin-guo commented 4 years ago

I created a new scratch org: https://sandbox-connect-innovation-6455-17108659e75.cs18.force.com/

Here is my project-scratch-def.json { "orgName": "Knowledgebase + Chatbot", "edition": "Enterprise", "hasSampleData": "true", "features": ["ServiceCloud","Chatbot","CPQ","Communities","Knowledge","LiveAgent","LightningServiceConsole","LiveMessage","WavePlatform"], "settings": { "lightningExperienceSettings": { "enableS1DesktopEnabled": true }, "mobileSettings": { "enableS1EncryptedStoragePref2": false }, "communitiesSettings": { "enableNetworksEnabled": true }, "omniChannelSettings": { "enableOmniChannel": true }, "liveAgentSettings": { "enableLiveAgent": true } } }

Then I created a Customer Service Community: CharlieCustomerService Then I want to retrieve the metadata and got errors:

sfdx force:source:pull

We can’t retrieve the specified metadata object: Audience. Certain metadata types, like Audience are not currently supported by the CLI. File a bug here: https://github.com/forcedotcom/cli/issues and provide the name of the unsupported metadata type ERROR running force:source:pull: Entity type 'WaveApplication' is not available in this organization Entity type 'WaveDataflow' is not available in this organization Entity type 'WaveDashboard' is not available in this organization Entity type 'WaveDataset' is not available in this organization Entity type 'WaveXmd' is not available in this organization make: *** [pull] Error 1

rvwatch commented 4 years ago

This is the same issue as #151. Please follow that thread for updates.

amphro commented 4 years ago

This seems like it is more an issue with ERROR running force:source:pull: Entity type 'WaveApplication' is not available in this organization more than the error on Audience type right @quanlin-guo ? I'm removing the duplicate for now.

amphro commented 4 years ago

The audience support is tracked in #470

erocheleau commented 3 years ago

For the specific errors for :

Entity type 'WaveApplication' is not available in this organization
Entity type 'WaveDataflow' is not available in this organization
Entity type 'WaveDashboard' is not available in this organization
Entity type 'WaveDataset' is not available in this organization
Entity type 'WaveXmd' is not available in this organization

I have found that you can add these lines in your .forceignore to tell the sfdx-cli to stop caring about it.

**.wds
**.wapp
**.wdf
**.wdash
**.xmd

These seem to all be the specific extensions for the files of the broken metadata types that are erroring out... Good luck!

nvuillam commented 2 years ago

I have the same issue with sfdx-cli/7.124.0 win32-x64 node-v14.18.0 , on a sandbox with tracking activated

Items are ignored in .forceignore, but the source:pull crashes because of those items anyway

image

Did anyone find a working workaround ?

jparlin339 commented 2 years ago

I'm also still having this issue with this as well...

ERROR running force:source:pull: Entity type 'WaveDataset' is not available in this organization

jparlin339 commented 2 years ago

I have the same issue with sfdx-cli/7.124.0 win32-x64 node-v14.18.0 , on a sandbox with tracking activated

Items are ignored in .forceignore, but the source:pull crashes because of those items anyway

image

Did anyone find a working workaround ?

I fixed it! Make sure you have a Permission Set / Profile permissions setup for Wave Analytics!

shetzel commented 2 years ago

problem in the original post has been fixed for a while now