Not able to retrieve metadate due to surveys
-
IC:
- Version 2.0.5.9
- Build 20190426122712
-
IntelliJ:
- IntelliJ IDEA 2019.1.1 (Community Edition)
Build #IC-191.6707.61, built on April 16, 2019
JRE: 1.8.0_202-release-1483-b44 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
- IntelliJ IDEA 2019.1.1 (Community Edition)
-
Affected Component: Retrieval
- Description:
When trying to retrieve/refresh metadata from the Sandbox, I get the error as shown in the screenshot. Reached out to Salesforce Support and they pointed out that it had something to do with Surveys (" You don't have access to view or run flows of type Survey." ). After searching in Setup, I enabled Surveys, after which it was possible to retrieve again. When disabling it, the retrieval fails again.
Salesforce thinks the issue is with Illuminated Cloud since I was able to retrieve via ANT. I would like Surveys to be turned off though, so I’m hoping I can find a solution here.
Attached is a log using following categories (based on other tickets I found here; I removed client references):
#com.illuminatedcloud.intellij.builder.ForceComMetadataRetriever
#com.illuminatedcloud.intellij.builder.ForceComBuilderUtil
#com.illuminatedcloud.intellij.builder.ForceComBuilder
#com.illuminatedcloud.intellij.builder.RetrieveAction
Please let me know should you need more information.
Comments (12)
-
reporter -
repo owner Hi, Lucas. I have not taken a close look, but Illuminated Cloud allows you to specify an exact metadata subscription so surveys can be excluded. How is your metadata subscription configured for this project? Have you tried using the same
package.xml
that you use for Ant? -
reporter Hi Scott. Strange thing is that surveys are not added to the metadata subscription. I used the exact same package.xml with ANT as I did with Illuminated Cloud.
-
repo owner Ah, I see, Lucas. The issue is occurring as IC lists metadata from the server, not during the retrieval. No matter what those APIs shouldn't GACK (the
An unexpected error occurred. Please include this ErrorId if you contact support: 267708478-11864 (-885076361)
error you're receiving), but I can make IC more tolerant of such poor behavior. Let me make that change and I'll post a build here to see if it resolves your issue. Give me just a few... -
repo owner One request before I make that change...your stack trace seems to be based on an older build. Can you update to the latest (2.0.6.1 at present) and reproduce the issue, then provide the stack trace from that log so that it aligns with current code? Thanks!
-
Reproduced with the latest version (2.0.6.2), added the log as attachment.
-
repo owner - attached IlluminatedCloud2.zip
Lucas, I spoke with Salesforce about this while at TrailheaDX last week. Evidently this can happen when a feature is enabled in the org but not licensed. According to Salesforce it should not throw an internal server error like this, but it's not surprising to them that it does.
I've attached a test build which should catch and log this error and move on with the operation. Please download it (do not extract it) and install it using Settings / Preferences > Plugins > Install plugin from disk (under the gear drop-down in recent base IDE versions). Let me know if that resolves the issue for you or not. If so, I'll ensure that it's included in the next official build.
-
reporter - attached idea_FixedBuild.log
I'm not getting the error anymore indeed. Should the Refresh button still function with this fix?
-
repo owner Hi, Lucas. Yes, there should be no negative change in functionality with that fix. It just catches the GACK raised by the server and logs it instead of having it stop further processing. Can you elaborate on what other change in behavior that you're seeing?
-
repo owner - changed status to resolved
Delivered in 2.0.6.3.
-
reporter Hi Scott, I do not see any other change of behavior. Thank you for looking into this.
-
repo owner - changed component to Metadata Deployment/Retrieval/Removal
- Log in to comment
Hi, any update on this?