Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
24 views

Salesforce CLI - Husky - Git - 'C:\Program' is not recognized as an internal or external command

I am building a pre commit code that run dry run with the staged files to the target org. Everything was working fine until if there are any spaces in the staged file inside the force-app. pre-commit ...
Charan Kumar's user avatar
1 vote
2 answers
74 views

Performance issues saving and reading into .csv file (1.5 milion lines)

I need to use Powershell to receive a load of data up to 1 500 000 rows, save into as a file (with correct CLRF encoding), and them immidately after use this file with another command. I find it hard ...
zanstaszek9's user avatar
0 votes
0 answers
49 views

Warning: LF will be replaced by CRLF

We fetch the discrepencies of our salesforce org and our bitbucket repository and add commits with differences for each component type: Steps for automated script: Create a new branch and checkout to ...
Ritvik Bhomia's user avatar
0 votes
0 answers
212 views

I am getting an error "Bad CPU type in executable" on line 44 in node when installing CLI on my MacBook Pro 2018

SFDX Error in macOs: /usr/local/bin/sfdx: line 44: /usr/local/lib/sfdx/bin/node: Bad CPU type in executable when I try the SFDX: Authorize an Org command.I'm on a MACOS, macbook pro-2018. sfdx force:...
moncif aidi's user avatar
-1 votes
1 answer
114 views

Salesforce CLI support CSV data import on Big Objects?

Does Salesforce CLI (SFDX CLI) support big objects. How can we perform data import on big object from CSV file using SFDX CLI ... I am trying to run "sf data upsert bulk" command to import ...
user3040372's user avatar
0 votes
0 answers
94 views

SFDX : Create Salesforce scratch org with Github actions throws a "Value is not a string" error

I am trying to create a simple yml file for a Github Action to create a scratch org. After correctly installing dependencies, authorising dev hubs and executing the sf command sf org create scratch, ...
user23463782's user avatar
3 votes
0 answers
2k views

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 ...
Somya Tiwari's user avatar
2 votes
4 answers
5k views

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 ...
James's user avatar
  • 1,009
0 votes
1 answer
450 views

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 ...
Ely Camara's user avatar
0 votes
1 answer
429 views

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 [email protected]' command to deploy the components to the salesforce using Jenkins. But i am getting 'Error (1): fast_xml_parser_1....
Vinay's user avatar
  • 3
0 votes
1 answer
131 views

LWC Jest Test showing show error in Azure Devops Pipelines

When i running Jest test for LWC in azure pipelines i got strange error Cannot find module 'c/myComponent' from 'force-app/main/default/lwc/myComponent/__tests__/myComponent.test.js' 1 | import { ...
Cezu's user avatar
  • 82
1 vote
0 answers
217 views

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 ...
Sharad Goyal's user avatar
0 votes
0 answers
336 views

Bitbucket Pipelines export into variable using jq and xq causes error

When i running a pipeline in bitbucket i want to export into variable using export APEX_CLASSES=$(xq . < package/package.xml | jq '.Package.types | [.] | flatten | map(select(.name=="...
Cezu's user avatar
  • 82
0 votes
2 answers
1k views

Running PMD in GitLab CI Script doesn't work unless echo command is added after the script runs

This is an interesting issue. I have a GitLab project, and I've created a .gitlab-ci.yml to run a PMD that will scan my code after every commit. The ci.yml file looks like this: image: "node:...
Tyler Edwards's user avatar
0 votes
1 answer
1k 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 ...
bikash_sb's user avatar
0 votes
1 answer
2k views

how to get reference to the element hidden in lwc?

I am learning lwc and I came across this problem. I have the following code. html: <template if:true={showLayout}> <template if:true={showAllTabs}> <div class="tab-...
LoneWolf's user avatar
  • 141
0 votes
1 answer
261 views

How to work with version control on Salesforce & Github?

Scenario: Want to add 2 new features in org. The process: (?) Open a 'Developer org' for each feature. In Github, create 2 new branches (each will connect to relevant Devorg). Then, when were done. ...
Nadav Spier's user avatar
-1 votes
1 answer
91 views

VS Code Regex search to remove references based on containing text in string

I am attempting to remove all references of a managed package that is going to be uninstalled that spans throughout code base in VS Code I have using a query to find the field permissions but am ...
ForrestFairway's user avatar
0 votes
6 answers
11k views

Error Deploying or Retrieving source: The file or directory isn't in sfdx-project.json

All of a sudden I started getting this error everytime I'm trying to deploy or retrieve a file directly (right click on apex file and retrieve). This always worked and now it doesn't for all of my ...
Walker's user avatar
  • 21
0 votes
0 answers
561 views

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 <targetusername> -v <targetdevhubusername>...
Apurva's user avatar
  • 83
0 votes
1 answer
172 views

SSL decryption not generating the begin type correctly

My context is that I am using jwt token flow to connect to SF in bitbucket pipeline. I have been able to correctly generate a certificate and key etc as required. I tested the key it is working fine. ...
vanessen's user avatar
  • 1,260
-1 votes
1 answer
6k views

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 ...
Francesco Ghiselli's user avatar
0 votes
1 answer
199 views

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, ...
JulienG's user avatar
  • 104
0 votes
1 answer
358 views

Reorganize files in Salesforce DX project

We have an existing salesforce 2GP package that follow the default directory layout with components in main/default. I would like to break that up into feature folders, but I am not able to move files ...
Morten Lemvigh's user avatar
0 votes
1 answer
575 views

VS code Hidden folder permission denied

Visual Studio code is not able to open files or folder within hidden folders. If I go to the file within the hidden folder .sfdx and try opening the file sfdx-config.json then Vs code opens with below ...
Suhas Jain's user avatar
0 votes
1 answer
1k views

Unable to Authorize org in VSCode. SystemError: A system error occurred: uv_os_gethostname returned ENOSYS (function not implemented)

Salesforce. Unable to Authorize org in VSCode. SystemError: A system error occurred: uv_os_gethostname returned ENOSYS (function not implemented). sfdx force:auth:web:login --setalias testorg --...
user18586701's user avatar
1 vote
0 answers
740 views

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} --...
Kakada's user avatar
  • 11
0 votes
1 answer
10k views

SFDX Authorize an Org failed to run

When running the VSC>SFDX command "SFDX: Authorize an Org", I am getting the error: "SFDX: Authorize an Org failed to run" (I am using VSC on a Mac). VSC>Terminal>Output ...
Ted's user avatar
  • 185
0 votes
1 answer
178 views

Jenkins Job to run SOQL query

I'm trying to get a Jenkins job to run sfdx force:data:soql:query commands in order to migrate configuration data sets between our production org and our sandboxes after a refresh. Certain ...
Finnster's user avatar
  • 107
0 votes
1 answer
417 views

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 ...
ConorMoore's user avatar
1 vote
1 answer
1k views

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 ...
José C.'s user avatar
0 votes
0 answers
119 views

how to avoid duplicated record while json import+ salesforce sfdx

I would like to import contact records but i see some of the duplicate records are inserting. I know there is a option to avoid the duplicating is "External ID" through importing wizard. But ...
RKCY's user avatar
  • 4,143
1 vote
1 answer
2k views

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 ...
ab1011337's user avatar
4 votes
1 answer
2k views

`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/[email protected] -> @...
Frans's user avatar
  • 4,002