Questions tagged [sfdx-plugin]

A plug-in adds functionality to the Salesforce CLI. Some plug-ins are provided by Salesforce and are installed by default when you install the CLI. Some plug-ins are provided by third parties and can be installed locally. When you have a requirement that an existing plug-in doesn’t meet, you can build your own.

Filter by
Sorted by
Tagged with
0 votes
1 answer
283 views

Issue while Authorizing Org to VS Code though two of my org are already connected to VS Code

Can anyone please help?! I am unable to do Authorize org with VS Code. I have two orgs that are already authorized with VS Code, but I am not able to authorize a new org. It's throwing an error though ...
Puja's user avatar
  • 1
6 votes
2 answers
798 views

sfdx push Error - Custom Index - property 'booleanIndexedValue' not valid in version 56.0

When we try to push our existing code into the scratch org we are getting below error, =============================================================================== ──────────────────────────────────...
Sagar Thoriya's user avatar
0 votes
0 answers
78 views

Unable to Deploy or Retrieve source from any ORG

I'm facing an issue while trying to retrieve source code from a package.xml file within our organization. This problem has persisted since last year, despite my attempts to resolve it by both ...
GraNeMM's user avatar
  • 11
0 votes
0 answers
198 views

VS Code - Authorize An Org - Failing on SFDX command

I recently started getting an error when trying to authorize an org using the Salesforce extension in VS Code. This is the error I am getting: sfdx org:login:web --alias PackagingOrg --instance-url ...
James's user avatar
  • 329
0 votes
0 answers
106 views

VS Code sfdx-scanner installation error related to SSL

I am trying to install Salesforce sfdx-scanner for VS code on my office laptop as per the below guideline Install and Update Salesforce Code Analyzer. I checked some of the issues related to sfdx-...
Rachit's user avatar
  • 177
0 votes
0 answers
445 views

I encountered an error with Apex PMD while using VS Code

Static Analysis Failed. Error Details: PMD Command Failed! Enable "Show StdErr" setting for more info. I already enable this setting inside vs code but still getting same error
Rohit Kumar's user avatar
0 votes
2 answers
296 views

sfdx scanner - Install problem

I have installed:- Visual Studio Code Version 1.80.1 on Windows 11 "C:\Program Files\Java" with directories: jdk-17.0.5 jdk-20 and jre-1.8 VS Terminal Command: sfdx update completed ...
Stoicorum's user avatar
0 votes
0 answers
61 views

Jenkins sfdx jwt login issue

So we're using Jenkins to integrate between our Salesforce environments and having an issue with one job in particular. The job copies the code base from our production environment and sends the ...
Finnster's user avatar
0 votes
1 answer
265 views

How to retrieve Enhanced list metadata using sfdx?

We can handle the default related list to the enhanced list using the Lightning app builder page but I want to make it dynamically using metadata so no need to change manually every time in each ...
Rohit Kumar's user avatar
0 votes
0 answers
50 views

unpackagedMetadata setting in sfdx-project.json not being respected

I am using : My sfdx-project.json: "packageDirectories": [ { "path": "source", "default": true, "package": "complaints&...
Strong Like Bull's user avatar
0 votes
1 answer
122 views

Add specified tests in sfdx deploy command

I want to use specified test classes available in my repository with sfdx force deploy command. I can include it using -l RunSpecifiedTests -r TestClass1,TestClass2. However, I had to manually write ...
Kushagra Srivastava's user avatar
0 votes
1 answer
487 views

sfdx force:source:push -u globalschema --ignore warnings --forceoverwrite

I am used to using this command: sfdx force:source:push -u globalschema --ignore warnings --forceoverwrite Now I am getting this error Warning: We plan to deprecate this command in the future. Try ...
sdfxconfuseduser's user avatar
0 votes
0 answers
26 views

Obtaining Flow ID from a Bash script

I need assistance with my Bash script for creating a link to a flow in Flow Builder that I want to open. I am encountering an issue where I am getting a null value from the $response variable. I would ...
elvi's user avatar
  • 1
4 votes
1 answer
1k views

VS Code SFDX Unit Tests: Cannot see "Run Test" or "Run All Tests"

At some point in the last week I found that I can no longer see the following prompts at the top of already working unit tests in VS Code Run All Tests Run Test | Debug Test While this is absolutely ...
VaroutSP's user avatar
  • 311
0 votes
0 answers
198 views

sfdx update stopped

I am try to fix the 'Component conversion failed. Directory does not contain a valid dx project' error. I was told to try to update the sfdx cli. I ran the sfdx update command in vs code and now it ...
Zdev's user avatar
  • 11
1 vote
1 answer
97 views

Why would SFDX interpret Customfields as EmailServicesFunctions (project deploy preview on a scratch org)?

I created a scratch org, and I plan to deploy a basic schema to it. Being rather new to sfdx, I first run a sfdx project deploy preview, and the cli outputs me the weirdest thing: it seems to ...
Werlin's user avatar
  • 13
3 votes
1 answer
48 views

I'm only allowed to use certain fields in SOQL run through sfdx

I'm working on a MacBook Pro, so I log into production via a browser, then I open a Terminal window and I authenticate: sfdx auth:device:login -r https://blue.my.salesforce.com I type in the code and ...
charlottesville's user avatar
0 votes
0 answers
66 views

Validating for N number of components for a delta deployment jenkins pipeline

I was trying to achieve delta deployment using sfdx-git-delta plug-in. I can install the plugin in run time and plug-in was able to compare the two commit i'ds which i have mentioned in the command ...
sai rohith's user avatar
0 votes
1 answer
265 views

Salesforce CLI - How to disable warnings?

Since the last Salesforce CLI Update 7.193.2 I've been seeing this warnings in the "Problems" tab in Visual Studio Code. Does anyone know how to disable them? It makes my code unreadable, ...
Jovan's user avatar
  • 1
-1 votes
1 answer
191 views

How can I store SGD delta package with bitbucket pipeline

I'm using SGD for my salesforce deployment using Bitbucket pipeline. sfdx sgd:source:delta --to HEAD --from HEAD^ It is working however I want to store/see content(package) of metadata to be deployed. ...
Akshay's user avatar
  • 1
2 votes
1 answer
200 views

Assert not available in VSCODE

The Assert class does not appear to be available in VSCODE with extensions installed. While I can still use the class and its methods with no errors on Push , the editor complains about it and there ...
Ricardo da Silva's user avatar
0 votes
0 answers
182 views

Every SOQL query I run through sfdx is getting an error, including 'field doesn't exist' on fields that clearly exist

I'm just getting setup on my Mac, to work with my organization. I wanted to be able to open the Terminal and use sfdx to run SOQL queries but I think perhaps I missed some crucial step? I was ...
charlottesville's user avatar
0 votes
0 answers
116 views

SFDMU use for cpq objects

I'm trying to use sfdmu to migrate some cpq data, and i have two major problems: the order of files beeing processed (for example for pricebookentry, the ones related to the standard pricebook should ...
Meryam's user avatar
  • 11
4 votes
1 answer
2k views

SFDX create package version throws plugin packaging error

I am trying to create a package version using sfdx command - sfdx package create -n secondPackageRety -d "Second package retry" -r secondPackage -t Unlocked Now, it throws an error ...
SEuser's user avatar
  • 1,835
3 votes
1 answer
2k views

package is not a sf command?

Salesforce has recently deprecated the sfdx force:package:version:create command. sfdx asks us to use the package version create command instead. Running sf package version create, however, also ...
dev4life's user avatar
  • 372
0 votes
1 answer
492 views

Get the URL of an organization from its Org ID with sfdx?

I've seen similar questions asked but none of the answers provide an SFDX solution and I'm really hoping there is one. I have an organization ID, but I work with several orgs. I cannot for my life ...
ewhiting's user avatar
  • 101
0 votes
0 answers
71 views

Evaluate package/package.xml for any components

I'm looking for guidance regarding a method to check the package/package.xml before deploying. My sgd command is as follows: sh """ $NODE_BIN_PATH/sfdx sgd:source:delta \ --to $...
Jklotzle's user avatar
0 votes
4 answers
1k views

SFDX plugin to retrieve metadata from org

I am looking for a SFDX plugin which can retrieve all the metadata available in an org. In most of the approaches, I see that you need to create package.xml first, and then issue a retrieve call. Is ...
nica's user avatar
  • 1,350
0 votes
0 answers
133 views

Running sfdx force:apex:execute result in error

I am trying to run the below script on my sandbox- sfdx force:apex:execute -u SandboxName -f fileName.apex.cls and I get this error - Error: Line: 1, Column: 5 Error: Unexpected token '<'. File ...
sumchans's user avatar
  • 643
0 votes
0 answers
314 views

SFDX retrieve source in Manifest from org is missing

I just installed the SF Extension Pack for VSCode. Everything run smooth until I need to sync and retrieve all metadata from my org. If I go onto the package.xml file and right click on it, only ...
beppe95's user avatar
  • 23
0 votes
1 answer
351 views

How to retrieve active flow via sfdx without creating new flow file

I am trying to retrieve the active version (version 18) of a flow using the following sfdx command : sfdx force:source:retrieve -m Flow:CreateProPM-18 According to the documentation : For Metadata ...
vanessen's user avatar
  • 2,555
0 votes
0 answers
86 views

Error deploying or retrieving source

I am facing this issue: "Error deploying or retrieving source: The file or directory that you tried to deploy or retrieve isn't in a package directory that's specified in your sfdx-project.json ...
GraNeMM's user avatar
  • 11
0 votes
1 answer
127 views

Is there a way to generate sfdx auth url for scratch org if devhub is authorized using the jwt bearer flow?

In our CICD pipelines, we used to authorize devhub first using sfdx auth url and then create scratch orgs using same devhub. We use the command "sfdx force:org:display --verbose" to get the ...
Sarang123's user avatar
1 vote
1 answer
318 views

Avoid duplicates in SFDMU Insert

I'm currently using SFDMU to deploy data in an automated way in a pipeline. Until now, the pipeline always used the Upsert operation in our export.json file. I.e { "objects": [ { ...
Manuel Moya's user avatar
0 votes
0 answers
874 views

Error when validating the deployment 'We couldn't retrieve the design time component information for component'

I am trying to validate Salesforce metadata deployment and getting the following error. Github actions trigger the deployment validation when a PR is raised. We couldn't retrieve the design time ...
SanJay's user avatar
  • 11
1 vote
1 answer
75 views

Salesforce Org Shape Error authentication

I'm passsing for this error, when i run the command sfdx force:org:shape:list ERROR running force:org:shape:list: Error authenticating with the refresh token due to: expired access/refresh token I ...
Matheus Coelho Campos's user avatar
1 vote
1 answer
534 views

Authentication using sfdxAuthUrl

Trying to authenticate via file, I was running into this error: { "status": 1, "name": "Syntax", "message": "./authFile.json: Unexpected token � in ...
SkyAnthrax94's user avatar
0 votes
1 answer
182 views

Is field in Salesforce considered as metadata ? Can I deploy via Sfdx

Want to create a mass field on custom object. Is field in Salesforce considered metadata.xml Can I deploy them via sfdc
Dharti's user avatar
  • 1
3 votes
3 answers
4k views

Error while Authorizing an ORG using VS Code Cannot read properties of undefined (reading 'setContentsFromObject')

Created a New Project in vs code SFDX- Create Project SFDX-Authorize Org when i try to i get error Cannot read properties of undefined (reading 'setContentsFromObject') This is most likely not an ...
Naveen's user avatar
  • 65
0 votes
1 answer
126 views

Error retrieve from manifest in Visual Studio

I am trying to Retrieve Source from Org and I get this error: UNSUPPORTED_API_VERSION: Invalid Api version specified on URL In package.xml, it shows me: <version>54.0</version> With this ...
Willy Kelly's user avatar
1 vote
2 answers
763 views

sfdx auth:jwt:grant: Unexpected arguments: -f

I am trying to connect Jenkins to the SF sandbox. I am stuck on the auth step, where I receive this kind of error: ERROR running auth:jwt:grant: Unexpected argument: Pipeline@tmp/secretFiles/e56a52e6-...
Oleksandr Honcharuk's user avatar
0 votes
1 answer
334 views

One of my scratch org environments suddenly expired. Is there a way to renew expired scratch org or at least renew the expired data?

Just already passed 30 days from the creation my scratch org Is there a way to rescue that scratch org or at least (in the future) to extend the time for above 30 days or to create a copy of that ...
Fgh999's user avatar
  • 35
0 votes
1 answer
381 views

Retrieving all groups using SFDX

I'm just wondering if there are any considerations when retrieving groups / queues using SFDX. The problem which I'm currently facing is that I'm unable to retrieve all queues using SFDX. There are ...
Rechu's user avatar
  • 450
0 votes
1 answer
493 views

Not able to find .sfdx path to delete the user name in MAC

From my visual studio code I authorized my org some three months before. So the user name and token will be stored in alias.json file in the .sfdx folder. Not my org password got changed. So when I ...
SFDC buddy's user avatar
3 votes
2 answers
2k views

ERROR running auth:sfdxurl:store: Cannot read properties of undefined (reading 'id')

How to Replicate: Running this command sfdx auth:sfdxurl:store -f ./SFDX_TMP_URL.txt -s -a integration to authenticate via sfdxAuthUrl. SFDX_TMP_URL.txt contains the sfdxAuthUrl value. Error: After ...
chanpelayo's user avatar
1 vote
1 answer
661 views

sfdx sgd-git-delta plugin not recognized in Jenkins pipeline [closed]

I have installed sfdx git delta plugin on my system. It works perfectly well when I execute locally on Git Bash / CMD / Visual Studio Code. But when I trigger the Jenkins pipeline, I see that sfdx ...
Swapnil Shrishrimal's user avatar
2 votes
1 answer
474 views

sfdx plugins are not getting installed via docker

We are using below script to install sfdx plugins on top of Jenkins via below docker file. FROM jenkins/jenkins:2.263.3 USER root RUN mkdir /.cache /.sf RUN chown jenkins.jenkins /.cache -R RUN ...
Rajendra Singh Nagar's user avatar
4 votes
0 answers
51 views

@salesforce/core ConfigAggregator resolving config file from VSCode root folder

I'm writing a simple VSCode extension to interact with Salesforce Orgs and I want to leverage @salesforce/core v3 features. From what I read from ConfigAggregator documentation: Aggregate global and ...
PCar's user avatar
  • 41
2 votes
0 answers
160 views

sfdx-cli convert - SyntaxError: Unexpected token '.' post rollback

today I updated the sfdx-cli from version 7.143.0 to version 7.149.1; then I had to revert back (I performed an npm install --global [email protected]) because of some node dependencie s- atm I cannot ...
calibro22's user avatar
0 votes
0 answers
3k views

Error authenticating with auth code due to: self signed certificate in certificate chain

I am getting below error when try to authorize any org in the VS code. Error authenticating with auth code due to: self signed certificate in certificate chain After spending significant amount of ...
gs650x's user avatar
  • 2,600

1
2 3 4 5