Questions tagged [salesforce-sfdx]
12 questions
1
vote
1 answer
Deleting Salesforce Scratch Orgs that do not appear in force:org:list
I'm bumping into the maximum number of active Scratch Orgs:
ERROR running force:org:create: The signup request failed because this organization has reached its active scratch org limit
But I only see 02 active Scratch Orgs:
sfdx…

José C.
- 11
- 3
0
votes
0 answers
Facing deployment & diff issues with VSCode SFDX CLI
When I am trying to deploy any file, I am getting Connection has no instanceUrl. Although In the JSON file I checked the instanceUrl is there, also I am facing issues with the diff which is taking longer than expected.
12:06:54.465 sfdx…

Somya Tiwari
- 145
- 3
- 8
0
votes
0 answers
Visual Source code SFDX not working on Mac
After having all extensions installed and linking up with my Bitbucket and Sourcetree I am unable to use sfdx commands as it comes up with “zsh: command not found: sfdx” as well as “zsh: command not found: list”.
Any assistance on this is…

MrEnigma
- 1
0
votes
0 answers
AWS CodeCommit : How to get current branch package.xml file to deploy only the changes using yaml file
I have created a Branche for AWS CodeCommit repository and am able to add the source code using vscode. My problem here is am not able to get the current branch pakage.xml file or the recent component changes using "sfdx force:source:deploy -x…

Anu
- 1
0
votes
1 answer
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 sfdx auth urls of the scratch orgs which we subsequently…

bikash_sb
- 11
- 2
0
votes
0 answers
Unable to retrieve and deploy package salesforce visual code studio
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 file"
There is another post with this similar error but…

GraNeMM
- 83
- 1
- 5
0
votes
0 answers
Assign role to user in Scratch Org through sfdx command and send email notification to reset the password
I have to create users in scratch org through sfdx cli command and assign profile, role to the user.
The command used is
sfdx force:user:create -u -v Username=testuser1@my.org LastName=testuser1…

Apurva
- 63
- 1
- 6
0
votes
1 answer
sfdx force:auth:web:login - reuse session on cron (MacOS)?
Here is a simple script that detect if I am authenticated
#!/bin/bash
if [[ $(sfdx auth:list | grep -c "my_org.my.salesforce.com") -eq 0 ]]; then
echo "sfdx not authenticated, please run : sfdx force:auth:web:login -s -a orgname"
# echo…

JulienG
- 88
- 5
0
votes
1 answer
Unexpected child metadata error[CustomObjectTranslation]
I am trying to retrieve Apex classes or anything from sandbox Org to my local system with VS code then I am getting follwoing error
Unexpected child metadata…

Excoder
- 23
- 4
0
votes
2 answers
Deploy Salesforce Package Using Visual Studio Code
I am new to developing for Salesforce. I have installed the Salesforce Extension Pack for Visual Studio Code. So far I have been able to create a project, authorize an org and deploy a single Apex class to a Salesforce Trailhead org.
Where I'm stuck…

James
- 523
- 1
- 4
- 20
0
votes
1 answer
Running sfdx force:auth:web:login on jenkins job
I have a Jenkins job to deploy metadata to a given org. This is meant to be used as a first time setup method for new metadata. I have a jenkinsfile that can run the sfdx commands, and I'm trying to run force:auth:web:login.
agent none
…

ConorMoore
- 1
- 1
-1
votes
1 answer
vsCode can't retrieve/deploy anything
Working with Salesforce, org is authorised, everything works fine until it doesn't and there's no error code or anything.
In the morning I retrieved a few files I had to change, 10 minutes later when I needed to retrieve another one, it kept…

Francesco Ghiselli
- 1
- 1
- 1