- edited description
"Entity type 'DigitalExperience' is not available in this api version"
While retrieving 'DigitalExperience' folder, I am getting this error message "Entity type 'DigitalExperience' is not available in this api version"
IntelliJ IDEA 2023.1 (Ultimate Edition)
Build #IU-231.8109.175, built on March 28, 2023
Runtime version: 17.0.6+10-b829.5 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 10.0
Non-Bundled Plugins:
com.illuminatedcloud2.intellij (2.2.6.1)
I remember couple of years ago, we used illuminated cloud to retrieve Digital Experience files from org and push it to Github. Is there something broken now?
2023-04-14 12:06:50,895 [14819270] INFO - #com.illuminatedcloud.intellij.builder.RetrieveAction - Retrieving metadata from requested connection fsdemoorg into module fsDemoOrg
2023-04-14 12:06:50,907 [14819282] INFO - #com.illuminatedcloud.intellij.builder.ForceComSfdxMetadataRetriever - Using the Salesforce CLI to retrieve metadata for project 'fsDemoOrg' from connection 'fsdemoorg'.
2023-04-14 12:06:59,017 [14827392] INFO - #com.illuminatedcloud.intellij.builder.ForceComSfdxMetadataRetriever - Retrieve completed in 8 s 79 ms.
2023-04-14 12:06:59,492 [14827867] INFO - #com.illuminatedcloud.intellij.builder.ForceComSfdxMetadataRetriever - Retrieved 0/1 components from fsdemoorg in 8 s 597 ms with status SUCCEEDED.
2023-04-14 12:06:59,492 [14827867] INFO - #com.illuminatedcloud.intellij.builder.ForceComSfdxMetadataRetriever - Retrieve details:
{
"done": true,
"fileProperties": [
{
"createdDate": 0,
"fullName": "",
"lastModifiedDate": 0,
"type": ""
}
],
"messages": [
{
"fileName": "unpackaged/package.xml",
"problem": "Entity type \u0027DigitalExperience\u0027 is not available in this api version"
}
],
"status": "SUCCEEDED",
"success": true
}
2023-04-14 12:07:00,681 [14829056] INFO - #c.i.w.i.i.j.s.JpsGlobalModelSynchronizerImpl - Saving global entities to files
I have followed this too. But somehow even here it says:
Failures
- package.xml: Entity of type 'ExperienceBundle' named 'resumedisplay1' cannot be found
- package.xml: Entity type 'DigitalExperience' is not available in this api version
Only Sites and Network is being retrieved.
Comments (12)
-
reporter -
repo owner What API version do you have configured in your
package.xml
file? I believe it must be 48.0 or higher for that metadata type. -
reporter Its
57.0
{ "packageDirectories": [ { "path": "force-app", "default": true } ], "name": "fsDemoOrg", "namespace": "", "sfdcLoginUrl": "https://login.salesforce.com", "sourceApiVersion": "57.0" }
-
repo owner Hi. That’s the API version in
sfdx-project.json
. You likely have amanifest/package.xml
as well with a different API version, and that’s the one being used by the deployment. Note that IC2 now has a feature to help you find and align the various project API versions. See the details about#2242here:https://illuminatedcloud.blogspot.com/2023/03/2259-release-notes.html
-
reporter Yeah even there its
57.0
<version>57.0</version> </Package>
Because I have set the API version on connections to 57
-
repo owner Let’s see how it’s making the retrieval request. Please enable debug logging for Metadata Retrieval, reproduce the behavior, and attach or email the resulting
idea.log
. Note that I’m stepping away for a few hours and will likely be unable to respond again until later this afternoon, but it’s possible/likely that the log will also tell you clearly where it’s picking up the API version that’s being used. It’s worth pointing out that the response is referencingunpackaged/package.xml
, so it might be worth looking to see if you have such a file and the API version in it. That could just be something that the CLI uses for its own execution offorce:source:retrieve
, though. -
reporter - attached idea.log
I have no idea how did it work but as soon as I enabled debug logs, it and did the same retrieve operation, it fetched all the files
-
repo owner That’s strange. Here’s the relevant portion from the log:
2023-04-14 19:22:11,533 [25956973] INFO - #com.illuminatedcloud.intellij.builder.ForceComSfdxMetadataRetriever - Using the Salesforce CLI to retrieve metadata for project 'fsDemoOrg' from connection 'fsdemoorg'. 2023-04-14 19:22:11,533 [25956973] FINE - #com.illuminatedcloud.intellij.builder.ForceComSfdxMetadataRetriever - Attempting to create a temporary package.xml file for selective retrieval or missing package.xml file. 2023-04-14 19:22:11,554 [25956994] FINE - #com.illuminatedcloud.intellij.builder.ForceComSfdxMetadataUtil - Created temporary package.xml file for selective deployment/retrieval: <?xml version="1.0" encoding="UTF-8"?> <Package xmlns="http://soap.sforce.com/2006/04/metadata"> <types> ... <name>DigitalExperience</name> </types> <types> <members>resumedisplay1</members> <name>ExperienceBundle</name> </types> <version>57.0</version> </Package>
And you didn’t make any changes other than enabling debug logging?
-
reporter Yes, that is what is surprising me. Anyways you can close the ticket for now.
-
repo owner - changed status to open
-
repo owner - changed status to resolved
Looks like this should have been resolved a bit back.
-
repo owner - changed component to Metadata Deployment/Retrieval/Removal
- Log in to comment