Questions tagged [sfdx]

41 questions
4
votes
1 answer

`fake-timers` 7.1.x compile error "Cannot find name 'queueMicrotask'."

I'm trying to compile a Salesforce sfdx plugin which is a node project with (among others) the following dependency chain that ultimately leads to fake-timers@^7.1.0: @salesforce/command@2.2.0 -> @oclif/test@^1.2.4 -> fancy-test@^1.4.3 ->…
Frans
  • 3,670
  • 1
  • 31
  • 29
2
votes
2 answers

VSCode / Salesforce - Deploy Source to Org very slow to complete, although actual deployment is fast?

I don't know when this started working, but my deployments are horifically slow now and I'm not sure why... I change a single apex class, right-click the file and pick SFDX:Deploy Source to Org, and it's taking well over 5 minutes for the…
James
  • 999
  • 2
  • 11
  • 22
1
vote
0 answers

How to set the output of shell script in a variable in yaml?

I am pretty new in yaml and I wanted to put the output value of shell script in a variable. This below command is written in groovy language and I wanted to convert it into yaml rpackval= sh returnstdout: true, script: "some sfdx command" In yaml I…
1
vote
0 answers

Jenkins Pipeline terminated after sh returnStdout exit code nonzero

I have a groovy function to fetch the code coverage after apex run test execution. def jsonResult = sh returnStdout: true, script: "sfdx force:apex:test:report --testrunid ${testRunId} --resultformat json --targetusername ${username}…
Kakada
  • 11
  • 2
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
1
vote
0 answers

Salesforce CLI destructive changes (sfdx sgd:source:delta) not showing difference in branches using GItHub Actions

I am using the Salesforce destructive changes mentioned here. However, sfdx sgd:source:delta --to "HEAD" --from "HEAD^" --output . --generate-delta command is not showing any destructive changes, it generates a destructiveChanges.xml without any…
ab1011337
  • 11
  • 2
0
votes
0 answers

I am getting error when trying to install sfpowerkit in my mac machine

Ran the command sfdx plugins:install sfpowerkit, I see sfpowerkit installation is failed with errors as › Error: EACCES: permission denied, mkdir. I have tried using sudo command as well sudo sfdx plugins:install sfpowerkit but seeing error…
0
votes
0 answers

sfdx scanner:run dont understand User Mode

I try to use the new User Mode DML Operation as describe here => https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_enforce_usermode.htm The code can be deploy successfully. Upsert As User Events; However when i…
mokh223
  • 544
  • 3
  • 5
  • 14
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…
0
votes
0 answers

What API do source commands use in SFDX CLI?

Using the SFDX mdapi commands the CLI deploys using metadata API for files in MDAPI format. I get that. Using SFDX source commands uses what API? I know it is source format and you can do deployments without package.xml etc, but behind the scene…
Strong Like Bull
  • 11,155
  • 36
  • 98
  • 169
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…
0
votes
0 answers

Error(1): component conversion failed: fast_xml_parser_1.XMLBuilder is not a constructor

Erorr(1): component conversion failed: fast_xml_parser_1.XMLBuilder is not a constructor. Jenkins job using SFDx Cli for deployment purpose. but it is getting fail on the same validation or check-only stage. Earlier jobs were getting successfully…
0
votes
1 answer

try to run soql query

runing this query sfdx force:data:soql:query -q "SELECT MemberName, MemberType, ChangedBy, RevisionCounter FROM SourceMember" -t -u vscodeOrg i got this error sObject type 'SourceMember' is not supported. If you are attempting to use a custom…
0
votes
0 answers

Packaging 2gp org

I am currently encountered an issue while attempting to create a patch version in their 2GP package. While I have not been able to reproduce the issue myself as we need partner org to create patches, I am hoping that you may be able to provide some…
0
votes
1 answer

Getting 'Error (1): fast_xml_parser_1.XMLParser is not a constructor' whenever I am building the job on Jenkins

I am using 'sfdx force:source:deploy -x manifest/package.xml -u xyz@mail.test' command to deploy the components to the salesforce using Jenkins. But i am getting 'Error (1): fast_xml_parser_1.XMLParser is not a constructor' whenever I am building…
Vinay
  • 1
1
2 3