Not able to retrieve metadata from org

211 views
Skip to first unread message

Nishant Khandelwal

unread,
Sep 26, 2023, 10:26:11 AM9/26/23
to Illuminated Cloud Q&A
I am unable to retrieve metadata from my salesforce org.

I am getting the following error whenever i am trying to retrieve something - 

Error
=====
(node:33480) Warning: Deprecated environment variable: SFDX_AUTOUPDATE_DISABLE. Please use SF_AUTOUPDATE_DISABLE instead.(Use `node --trace-warnings ...` to show where the warning was created)(node:33480) Warning: Deprecated environment variable: SFDX_JSON_TO_STDOUT. Please use SF_JSON_TO_STDOUT instead.

Scott

unread,
Sep 26, 2023, 10:35:13 AM9/26/23
to Illuminated Cloud Q&A, Nishant Khandelwal
Hi. That message would indicate that you're on an older version of IC2 as those deprecation messages were scrubbed from the CLI's response starting in 2.2.6.8 which is from May 18, 2023:


Please make sure that both IC2 and the underlying JetBrains IDE are up-to-date--and the Salesforce CLI itself while you're updating components--then if this issue still exists, I'll likely need to get a debug log from you.

Regards,
Scott Wells

Nishant Khandelwal

unread,
Sep 26, 2023, 5:17:11 PM9/26/23
to Illuminated Cloud Q&A, Scott, Nishant Khandelwal
Hi Scott,
Thanks for response.
I updated the IC2 and Intellij and also Salesforce CLI.
But now I am seeing the following when trying to retrieve new components (not present in the repo) -- 

Command line
============
C:/Program Files (x86)/sf/bin/sf.cmd force:source:retrieve -u [userName] -x C:/Users/NishantKhandewal/AppData/Local/JetBrains/IdeaIC2023.2/tmp/salesforce_crm-lumicks_dev4-retrieve/tmp/manifest/salesforce_crm-lumicks_dev4-package.xml --json

Working directory
=================
C:/Users/NishantKhandewal/AppData/Local/JetBrains/IdeaIC2023.2/tmp/salesforce_crm-lumicks_dev4-retrieve/tmp

Environment variables
=====================
SFDX_TOOL = IlluminatedCloud
SF_JSON_TO_STDOUT = true
SFDX_AUTOUPDATE_DISABLE = true
SF_AUTOUPDATE_DISABLE = true
SFDX_JSON_TO_STDOUT = true
SF_TOOL = IlluminatedCloud

Duration
========
8 s 193 ms

Exit code
=========
-1073740791

Output
======


Error
=====



That is nothing is being shown in the error. - 

ic2 error.PNG

Scott

unread,
Sep 26, 2023, 5:30:48 PM9/26/23
to Illuminated Cloud Q&A, Nishant Khandelwal, Scott
I can see that it's trying to run the CLI using "sf" instead of "sfdx". Because everything is set up as aliases now, that should be fine, but just in case, please change that to the use "sfdx.cmd" instead of "sf.cmd", ideally even just picking it up the path from the system execution path, e.g.:

sfdx_executable_config.png

If it's still failing after doing that, please see if you can run the exact same command directly from the command-line because, at least in the output you just provided, the CLI itself is failing with a non-zero exit code and empty stdout/stderr.

Regards,
Scott Wells

Scott

unread,
Sep 26, 2023, 5:32:47 PM9/26/23
to Illuminated Cloud Q&A, Scott, Nishant Khandelwal
Also, I'm concerned about the install location of the CLI in what you've provided as it's not what would be used for a recent install. Have you done a full scorched earth uninstall/reinstall of the CLI since the introduction of the v2 CLI? If not, please do so as upgraded v1 installs are subject to all kinds of issues at this point as indicated by Salesforce here:


Regards,
Scott Wells

Reply all
Reply to author
Forward
0 new messages