Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs
10 votes
Accepted

VSCode doesn't clear errors even after successfully deploying to org

Take a look at this Github issue. I was affected by this as well, and downgrading my Salesforce-related extensions to v57.15.0 worked for me To downgrade: Open VS Code Extensions Tab Search for '...
user3643040's user avatar
7 votes

Salesforce DX - how to set default devhub if I missed the -d option when connecting to devhub

With the new Salesforce CLI, use this command: sf config set [email protected]
POZ's user avatar
  • 4,374
4 votes
Accepted

Is there a CLI command to find all Test classes associated with a certain Apex class?

No, there is not. About the closest thing we have to that is to run all tests in an org and then query data from the ApexCodeCoverage object in the Tooling API (and also the ApexClass object, so you ...
Derek F's user avatar
  • 62k
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
4 votes

Removing old hub org, or non-scratch org from Salesforce DX org list

Newest sfdx command line: sfdx org list sfdx org logout -o org_alias
Quinto's user avatar
  • 51
4 votes

sfdx is not recognized as an internal or external command

I faced this issue in VS code all of a sudden (on 22/09/23). I tried searching and experimenting with different solutions proposed here and on other forums but nothing worked. A friend of mine told me ...
Mahmood's user avatar
  • 5,944
3 votes

Custom Metadata Type Records Mass Insert

Similar to answer from Chris about the format. I was saving in Excel as CSV UTF-8 and this wasn't working. I tried just saving it using Excel CSV, with no other options, and it worked! I also had this ...
ddeve's user avatar
  • 1,606
3 votes

Not able to delete second generation unlocked package

'Delete Second-Generation Packages' can work OK with the following: User: License: Salesforce Limited Access - Free Profile: Limited Access User Permission Set: User License: Salesforce Limited ...
Matt and Neil's user avatar
2 votes
Accepted

Unable to install lwc local server VS code

Resolved. The signature file had been deleted and is now restored.
Shane McLaughlin's user avatar
2 votes
Accepted

Error while creating a 2G Package version: Insufficient permissions: secure query included inaccessible field

Your unit tests should use System.runAs to run as a test user that is created during the unit test (typically via @testSetup). After this user is created, you can then add a PermissionSetAssignment ...
sfdcfox's user avatar
  • 493k
2 votes
Accepted

sf project deploy preview shows conflicts, but files are identical

Source tracking works by grabbing the last modified time stamp from the file when you do a pull or push, and also tracks the timestamps of the local files. If the last known time stamp on the server ...
sfdcfox's user avatar
  • 493k
2 votes

Issue while Authorize an salesforce org in VS Code failed, due to Invalid request method: OPTION

try this command : sfdx auth:device:login -a dev-sandboxname -r https://test.salesforce.com -s And then enter the code given in the CLI 😉
Rachid RW's user avatar
2 votes
Accepted

Is it possible to deploy by filename using the new CLI?

If you look further down in the documentation on sf project deploy start, it'll go over the individual flags in more detail. Directly quoting that documentation: -d | --source-dir SOURCE-DIR Optional ...
Derek F's user avatar
  • 62k
2 votes
Accepted

updating from sfdx-cli to sf

This will be taken care by sf(v2) as mentioned in the official documentation Move from sfdx (v7) to sf (v2). Once you migrate successfully, both sf and sfdx commands will work as sfdx is now aliased ...
Saroj Bera's user avatar
  • 14.7k
2 votes
Accepted

Account.SalesforceCustomer field missing

As mentioned in comments, Enabling Connection Finder in an org and try to re-deployment should fix the issue.
Vinay's user avatar
  • 3,498
1 vote

Why is Salesforce example for package.xml manifest files referencing http links instead of https links?

XML namespaces were intended to uniquely identify an element as belonging to a certain schema in a document where multiple schemas may exist. The de facto standard for XML and HTML is to use URI-...
sfdcfox's user avatar
  • 493k
1 vote

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

FYI we have tried v59.0 as a workaround, which successfully creates the package version, however is unable to be installed into a subscriber org. Same error message is received
Greg J's user avatar
  • 175
1 vote

Is it possible to deploy by filename using the new CLI?

Yes, the project deploy start command is the approximately equivalent command as force:source:deploy. See the force:source:deploy documentation for the list of differences between the two commands. -p,...
sfdcfox's user avatar
  • 493k
1 vote

Is there a CLI command to find all Test classes associated with a certain Apex class?

In theory, you can query MetadataComponentDependency, as each unit test will depend on the class that it calls, but you may end up with some false positives or negatives, because this object can only ...
sfdcfox's user avatar
  • 493k
1 vote
Accepted

How to retrieve last modification time of files stored in Org?

The metadata retrieve API doesn't include timestamps of the metadata. Use sf org metadata list or sf data query --use-tooling-api if you want this kind of metadata.
sfdcfox's user avatar
  • 493k
1 vote

How to create different kind of scheduled apex jobs

If you do a search for each of these three types, you'll find that "Reporting Notification" jobs are created when a user schedules a report, and the other two are created when a Digital ...
sfdcfox's user avatar
  • 493k
1 vote

how to overcome salesforce CLI slowness?

Both the CLI project and the VS-Code integration have Github repos with public issue trackers, which are monitored by the product teams: cli: repo issue tracker salesforcedx-vscode: repo issue ...
Jason Clark's user avatar
  • 11.9k
1 vote
Accepted

Set Default Page Layout for Record Type in XML File

The default page layout is, unfortunately, in the profile. You'll need to create a system that retrieves each org's profiles, updates the appropriate page layout settings, then deploy those changes.
sfdcfox's user avatar
  • 493k
1 vote
Accepted

Mass insert custom metadata records command 'sf cmdt generate records' throws error The column Name is not found on the custom metadata type

Ok it appears the reason for the error is the encoding of the csv file : mine was in UTF8-BOM, I moved it to UTF8 and it worked like before, with the Name column which does not exist on the Custom ...
Chris's user avatar
  • 336
1 vote
Accepted

How to enable "Share and organize quick text in folders" via SFDX?

Instead of the "macroSettings" in your scratch org definition file (https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_scratch_orgs_def_file.htm) you should ...
Waldemar Liedle's user avatar
1 vote

Custom Metadata Type Records Mass Insert

@Dmns Check the encoding of your csv file, it must be UTF8. I had the exact same error because my csv file was encoded in UTF8-BOM, after conversion in UTF8 it worked !
Chris's user avatar
  • 336
1 vote

SFDX: Authorize an Org failed to run

I was recently experiencing this. I did an sfdx update and then reauthed my org. $ sfdx force:auth:web:login --setalias my-super-awesome-alias --instanceurl https://test.salesforce.com --...
veritascs's user avatar
  • 211
1 vote

Can't open Scratch org via sfdx:org:open or URL

In instances where sfdx force:org:open -u <org-alias> is resulting in the process hanging with a: Waiting to resolve the Lightning Experience-enabled custom domain message, I have found that ...
lemming's user avatar
  • 473
1 vote

How do we deploy an Experience Bundle to a scratch org properly?

I’m late to the party but I want to share that this problem can indeed be solved in an automated fashion using CumulusCI. For anyone who’s interested, you’ll need to configure your cumulusci.yml to: ...
David Bingham's user avatar
1 vote

How can I get the Org Connection info from the org currently used in the command on which a CLI Hook is running?

If you are trying to do this via the @salesforce/core library the API has changed. It would now look something like this: // find alias from project settings const project = await SfProject....
NSjonas's user avatar
  • 10.2k

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