Skip to main content
19 votes
Accepted

SFDX: exports.getOrgApiVersion is not a function

The issue appears to relate to the update to the Salesforce CLI Integration extension released 6/21/2023, version 58.3.0. I rolled back to version 58.2.0 and the issue has disappeared. You can do this ...
Gabriel Rholl's user avatar
15 votes

Deploy source to org fails with "No authorization information found"

I had the same issue. I restarted Vscode and after that it worked.
Jojosfdc's user avatar
  • 467
15 votes

SFDX Error in macOs Big Sur

I'm going to assume you're on a newer Mac using the Apple M1 chip. There's already an open issue on the CLI github regarding this error. It seems they're waiting for Nodejs to release a version that ...
Kris Goncalves's user avatar
9 votes

SFDX create package version throws plugin packaging error

The problem occurs when SF CLI (from the @salesforce/cli npm-repository, not the former Salesforce CLI known as sfdx, or sfdx-cli) tries to download the necessary plugin sources to perform the job of ...
Johannes Heinen's user avatar
9 votes
Accepted

Test class in managed package is failing with Internal Salesforce Error: 415122577-6508 (-1655455180) (-1655455180)

I've checked this GACK ID in internal logs and it points to Java.lang.IllegalStateException: commits are not allowed because someone called setCommitAllowed(false), justification: ApexTestSetupRunner-...
Swetha Maddali's user avatar
5 votes
Accepted

<deprecated>false</deprecated> Where is it documented, Where does it come from?

<deprecated>false</deprecated> Where is it documented, Where does it come from? It's not really used at the moment, as far as I can tell, but the intent is, if you upgrade an Unlocked or ...
sfdcfox's user avatar
  • 495k
4 votes

SFDX Error in macOs Big Sur

SFDX CLI ships with node 12 which does not support M1 chips. Basically, you should just delete it and link a recent version of nodejs to its directory using the commands below (assuming you have ...
touzoku's user avatar
  • 189
4 votes

SFDX issue: authorized dev sandbox, yet get 'expired access/refresh token' when attempting deploy or retrieve

This is a bug/feature of a recent change to the Salesforce CLI to use REST by default (whereas it previously used SOAP to deploy/retrieve). You can avoid this issue for now while they (the sf cli team)...
Derek F's user avatar
  • 62.3k
4 votes
Accepted

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

This was reported by a few other users too as a problem in the project with custom indexes with versions 55-58, on winter 24 patch 11. We have an investigation #W-14361697, Bug #W-14365107 filed with ...
Swetha Maddali's user avatar
3 votes

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

Try going to the .sfdx folder under Users/[name]/.sfdx and delete everything in there. I had the same problem and this fixed it.
Tyler's user avatar
  • 31
3 votes
Accepted

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

I have faced the same issue when our sandboxes migrated to the next release and Enhanced Domain feature was enabled. I have opened SF Support case to find an answer to this. The issue should affect ...
Patlatus's user avatar
  • 17.2k
3 votes
Accepted

SFDX source push failing on Duplicate picklist value

I created a ticket on the SFDX CLI repo here. Adding a comment may help to increase visibility: https://github.com/forcedotcom/cli/issues/1605 Here are additional links to places this issue is being ...
Jason Walke's user avatar
3 votes
Accepted

SFDX commands not working in VS Code

This is an issue that's been reported. For now, potential solutions include downgrading to an older version or using the Node version (npm install sfdx-cli). Either way, try uninstalling and ...
sfdcfox's user avatar
  • 495k
3 votes
Accepted

Can't deploy global value set using SFDX?

The "zipped directory" thing is just how deployments happen. The contents of whatever directory you set as the path are converted in to a zip file before being uploaded. The system is ...
sfdcfox's user avatar
  • 495k
3 votes

Authorize an org failed in VS code

This is a problem in the installer in windows operating system. I recommend you first uninstall the Salesforce CLI installed on your machine using windows installer. The instructions to uninstall are ...
Mohith Shrivastava's user avatar
2 votes

sfdx update fails, Error: EPERM: operation not permitted

I was facing the same error right now. I added the location to environment variables and its working fine now. For those who didn't understand anything I said above, What I did was, I went to the ...
Vishnu Santhosh's user avatar
2 votes
Accepted

SFDX issue: authorized dev sandbox, yet get 'expired access/refresh token' when attempting deploy or retrieve

OK, looks like my issue was very basic. I authorized the org, but I didn't set it as my default org. Once I ran sfdx force:config:set defaultusername=aliasName I stopped getting authorization errors. ...
smohyee's user avatar
  • 3,846
2 votes

When running sfdx force:apex:test:run we get the error "Your request exceeded the time limit for processing. connection was cancelled here"

Yes, we've had this problem in our packages. It happens when too many large unit tests try to run at once. The primary solution is to set @isTest(isParallel=false) to all of your test classes. This ...
sfdcfox's user avatar
  • 495k
2 votes
Accepted

Help with SFDX 2GP release version error: "You cannot install an unlocked package without a namespace into an org with a namespace."

The issue is due to the Namespace collision rule criteria discussed here. I am assuming that you are building a namespaced Unlocked package that has the dependencies on the non-Namespaced Unlocked ...
Mohith Shrivastava's user avatar
2 votes
Accepted

sfdx.exe deploy WorkflowRule fails with "not found in zipped directory"

Because of how WorkflowRule files are constructed, you can't deploy just one rule at a time. I'm not sure if it's a bug or a limitation, but I can say that you need to deploy all the workflow rules ...
sfdcfox's user avatar
  • 495k
2 votes
Accepted

Deploying with sfdx but no component is deployed with no errors

Got to solve the issue. It was related to the zip file. I generate the zip file as follows : tar.exe -a -c -f deployment.zip deployment I cannot explain why generating a zip file like this will ...
vanessen's user avatar
  • 2,705
2 votes

Deploying with sfdx but no component is deployed with no errors

Uncovering the actual GACK error from internal Salesforce logs, java.lang.IllegalArgumentException: malformed input off : 35, length : 1 This is a known issue with the metadata API if you have ...
Mohith Shrivastava's user avatar
2 votes
Accepted

SFDX CLI: apex tests execution is failing with Time out error. Increasing wait parameter doesn't help

The Salesforce product team is aware of this error scenario and has filed an issue on Github and internal Investigation #W-12446679.Please consider adding repro details on the Git issue. According to ...
Swetha Maddali's user avatar
2 votes

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

It's not an error, it's a warning. You are being advised to use project deploy start. That looks like this: sfdx project deploy start Or sf project deploy start Note that sf is now the preferred ...
sfdcfox's user avatar
  • 495k
1 vote
Accepted

Error creating a scratch org: This command requires a dev hub org username set either with a flag or by default in the config

Your pipeline isn't persisting the location where SFDX stores authentication details, and each command is running in a completely separate container. salesforce: .env docker-compose -f $(...
David Reed's user avatar
  • 93.2k
1 vote

Salesforce Org Shape Error authentication

The solution was clean all the organizations with error in my sfdx force:org:list command, one by one, after that the command runned perfect.
Matheus Coelho Campos's user avatar
1 vote

Deploy source to org fails with "No authorization information found"

I am facing this kind of error a lot recently. For me none of these update sfdx or restarting VScode works. In my case, when I execute SFDX: Authorize an Org and then execute sfdx force:org:list, ...
mkzyk's user avatar
  • 55
1 vote

Error authenticating with VS code

ECONNRESET is a Node.js usually happens when there is no response from the server within 2 minutes of wait time. In your case, it could be there is a network issue or a lost connection. CLI team has ...
Mohith Shrivastava's user avatar
1 vote
Accepted

Problem's are returning errors linking to incorrect file locations giving "The editor could not be opened because the file was not found"

This issue was solved in a recent release https://github.com/forcedotcom/salesforcedx-vscode/pull/4246 https://github.com/forcedotcom/salesforcedx-vscode/pull/4241
Javier F's user avatar
1 vote

How can I update my Github Actions CI script to install sfdx?

You may also want to leverage the official SFDX Docker image in your GitHub Action as well. Here is my sample GitHub Action file: https://github.com/banderson5144/funcondemo/blob/master/.github/...
Bryan Anderson's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible