Questions tagged [salesforcedx-cli]

Questions relating to the `sfdx` binary that is supplied as part of the tools suite for Salesforce DX.

Filter by
Sorted by
Tagged with
4
votes
1answer
148 views

How to push source to Scratch org if project code exceeds 50mb limit?

I have a managed application which I'm now trying to move to DX platform of development, but I'm getting an error of exceeding maximum storage: Maximum size of request reached. Maximum size of request ...
0
votes
0answers
24 views

Validating deleted files on deployment using CLI

I am working on trying to build a deployment pipeline at my company using the Salesforce CLI. The barrier I am running in to is how to validate deleting files from higher environments on deployments. ...
1
vote
2answers
112 views

While creating scratch orgs getting this error “DML operation Delete not allowed on List<AccountShare>”

I am trying to create a scratch org. My codebase is having a class which is doing a dml on accountshare record. For deployment of this class we need to have account's OWD as private. (As well as of ...
2
votes
1answer
183 views

Access parent controller attribute from Visual force component

I have one Visualforce page and one Visualforce controller. I have different attributes defined in the controller of Visualforce page as shown below public boolean firstPanel{get;set;} public ...
0
votes
0answers
18 views

DX - Getting Metadata Without Eclipse Package.xml

Is there no built-in way within the DX CLI to retrieve all available metadata components from a target org (in my case sandbox), without generating a package.xml via Eclipse w/Force IDE? I'm well ...
0
votes
0answers
268 views

Force code extention not opening salesforce login page

I downloaded force code extension for visual studio code. When I'm trying to connect to specific org he doesn't open salesforce login screen in order to log in to the org. Is there any permission ...
0
votes
1answer
12 views

Reassign a namespace in the same dev org

Can you reassign the namespace in a developer org to another package? I currently have a manage package and in that package I've assigned my namespace. I created a Beta version for now. Ultimately I ...
0
votes
1answer
315 views

Jenkins + Sfdx Auth issue

I am trying to use Jenkins for my project CI. I followed the salesforce document and a few blogs for the setup. Here is my Jenkinsfile: #!groovy import groovy.json.JsonSlurperClassic node { def ...
0
votes
1answer
352 views

What are the correct steps to create Scratch Orgs with custom objects

I am trying to create a scratch org based on existing DEV sandbox. The problem is that I get a bunch of errors when trying to push the code into the scratch org: Invalid type: Quote (13:9) Invalid ...
1
vote
1answer
120 views

SFDX FORCE:DATA:TREE:EXPORT Nested __r Relationship Query

I am attempting to export data using the FORCE:DATA:TREE:EXPORT CLI command, using a nested query like the following (for use in our Scratch-Orgs): SELECT ...,(SELECT ... FROM My_Custom_Object__r) ...
1
vote
1answer
41 views

Package hosting options

There are two commands: sfdx force:package:create --name "MyApp" --description "MyApp" --packagetype Unlocked -r force-app sfdx force:package:version:create --package MyApp --installationkey ...
1
vote
1answer
59 views

How to retrieve new meta from the org

I have new classes, pages, etc in the my Salesforce org. Is it possible to update the project with all new files?
1
vote
2answers
485 views

VSCode Lists Erroneous Apex Problems

I'm using VSCode with Github and Deploying to a Sandbox. When I save my classes, VSCode lists problems which don't exist and which don't clear when the class is deployed successfully. For example, all ...
1
vote
1answer
103 views

Analysis for SFDX Apex || sonarqube Community Edition

Is there a way to support SFDX Apex Analysis with sonarqube Community Edition version 7.2 or above. If not then is there any previous Community version which may support it ? Many thanks in advance.
3
votes
1answer
53 views

Automatically close Output window in vsc running salesforce CLI

I have switched from Sublime to VSCode. I have found ways to make most of VSCode work the way I want. The main thing I wish I could do is when I deploy to the org if it is successful I would like ...
4
votes
1answer
105 views

SFDX - file symbolic link error

File Symbolic links are no longer working, at least they are not when using any version newer than salesforce-cli v46.6.0. Unexpected errors are presented when pushing code to scratch orgs (sfdx ...
0
votes
1answer
252 views

timed out error in salesforce dx when on office network

When I am using my office network I am not able to deploy code to any sandbox using salesforce dx it shows the timed out error and when I use sfdx force:org:list in CLI it shows all org's connected ...
0
votes
0answers
22 views

Transaction Security || Condition Builder || Notifications for Attachment Download

I am trying to build up a Transaction Security Policy via Condition Builder that will trigger for the Attachment Downloads within my Org. However, I am not able to write the Condition Builder Logic ...
9
votes
3answers
4k views

How can I fix sfdx error: “The \”path\“ argument must be of type string. Received type undefined”

I'm getting an error similar to this post and I've checked to see if I could resolve it in the same way, but it appears to be a different issue. Whenever I try to push, deploy or convert to metadata, ...
5
votes
1answer
75 views

Standardized Production to Scratch-Org Approach

We are currently in the process of moving from using Welkin Suite and Classic to SalesforceDX/VS Code/Scratch-Orgs. Is there a standardized approach or automated process for making a Scratch-Org look ...
3
votes
2answers
284 views

Merge Branch || git diff not including .gitignore files

I have 2 branches in SFDX enabled project. mybranch and develop. I want to merge selected changes from develop and then merge those in mybranch. As a starting point I am trying to use git diff to see ...
2
votes
1answer
523 views

Issue to push static resource (single files and zip) using SFDX

have any of you faced issues to push static resources to scratch orgs using SFDX v46.8.0? Asking because I faced this issue and had to revert back salesforcedx plugin to 46.6.0. path\singleFile....
3
votes
0answers
73 views

Is Anyone Else Seeing sfdx force:apex:log:tail Only Using The SFDC_DevConsole DebugLevel Regardless of Setting --debuglevel Flag

Okay so I've read the answer here How do I set the log levels for force:apex:log:tail? as well I have read all the documentation I can find for the sfdx force:apex:log:tail command. And everything I ...
1
vote
2answers
1k views

ERROR running force:auth:web:login: unable to get local issuer certificate - When Authorizing an Org in VS code

I have installed VS code and Salesforce CLI in my system.Now when I try to Authorize an Org using SFDC:Authorize an Org, It take me to the login page and also logs in and redirects to localhost:1717. ...
0
votes
1answer
2k views

command 'sfdx.force.project.create' not found?

I have installed Visual Studio code and Salesforce CLI(I confirmed in CMD by typing sfdx) but when I start new project in it says"command 'sfdx.force.project.create' not found".
3
votes
1answer
640 views

can't create scratch org (fatal ended with exit code 0 no error description)

I gather that this question has been asked before but so far I haven't found anyone with the same error (or lack thereof) since the VS code status says SFDX: Create a Default Scratch Org... ...
2
votes
2answers
427 views

FlowDefinition isn’t supported

I have an up to date SFDX and plugins. I continue to get the flow definition error when pushing with Illuminated Cloud to my scratch org. I am not sure what the next steps should be as I have followed ...
0
votes
0answers
246 views

Unable to deploy platform events from one sandbox to other

Trying to deploy platform events from one sandbox to another using jenkins. On plat form event we have trigger as well. While deploying it is throwing following error even though the package version ...
1
vote
1answer
754 views

Can Not Update SFDX

I am running into an error when I am trying to update my SFDX version in my cli and I am unsure what it means. Olivias-MacBook-Pro:test op$ sfdx update › Warning: Use "npm update --global sfdx-...
0
votes
0answers
9 views

Dashboard/Report on Salesforce/Outlook Integration Status

I have a requirement to create the Dashboard which will reflect the Salesforce-Outlook Integration Status of any specific User in Salesforce... Any ideas on how can we achieve it ? Thanks & ...
1
vote
2answers
1k views

Error while deployment through SFDX

I took the complete org backup from one org and trying to deploy it in another org. While deployment through the SFDX, I am getting the following errors: Invalid fullName, must end in a custom suffix ...
0
votes
1answer
71 views

Is this workaround would be helpful while getting UNABLE_TO_LOCK_ROW salesforce?

I'm getting UNABLE_TO_LOCK_ROW excpetion and tried couple of solutions like "FOR Update" in SOQL. Changed normal upsert statement to database.upsert & tried to catch,save failed records using ...
3
votes
1answer
2k views

SFDX cli force:source vs force:mdapi? [closed]

I have been reading some mixed comments about the difference between force:source vs force:mdapi. So far my assumption is that force:source is used for scratch org and force:mdapi is used for sandbox/...
0
votes
1answer
975 views

Jenkinsfile: Scope of Variables in Groovy

I need to segregate Target Environment based on JobName... Any idea what I may be doing wrong: Jenkinsfile #!groovy import groovy.json.JsonSlurperClassic node { def BUILD_NUMBER=env.BUILD_NUMBER ...
0
votes
0answers
681 views

VS code : Authorize Org failed

I am new to lightning web component. I have installed VS Code, salesforce extension pack inside VS code, Salesforce CLI and set environment variable C:\Program Files\Salesforce CLI in my system. When ...
2
votes
1answer
78 views

is it possible to pull code from expired scratch org in salesforce

I need to pull some of my code form scratch org but scratch org just expired and i did not take the pull of of my code.
1
vote
1answer
271 views

Connected app JWT authorization failed in Circle Ci

I have been trying to set up Circle ci with GitHub for continuous integration and continuous delivery(CI/CD) in salesforce dx project using this refernce link, but I'm facing an issue with the ...
2
votes
1answer
247 views

Salesforce DX authentication URL Expiration date

I have been going through this link Sfdx authorization for org and find out to check org information via salesforce cli we have to use this command below sfdx force:org:display --targetusername <...
2
votes
2answers
241 views

Enable ProfileSkillEndorsement/ProfileSkillUser/ProfileSkill for Scratch Org

Any idea how to get Custom Objects like ProfileSkillEndorsement, ProfileSkill & ProfileSkillUser in my Scratch Org. I have created a Scratch Org but during my metadata deploy I am getting the ...
1
vote
1answer
484 views

ERROR running force:source:delete - The delete operation failed in the org. Review the error messages below

I am trying to delete an Aura Component by right clicking on the file contents and selecting: SFDX: Delete This from Project and Org But it's not working... I get this message in the output panel:...
3
votes
1answer
537 views

DX is throwing an error while deploying to production

After running sfdx force:mdapi:deploy -d directory -u Production, It runs successfully and queue the deployment and gives the below message To check the status of this deployment, run "sfdx force:...
1
vote
1answer
3k views

ERROR running force:source:push: Push failed

I have been working on some classes using VS code and SFDX. I created a scratch org and pushed code to it using: sfdx force:source:push -u MY_ORG_ALIAS The push was successful. I continued ...
0
votes
0answers
46 views

Salesforce CLI Installation error - The Requested Operation requires elevation

I downloaded salesforce CLI from here However when i run the .exe file, I get the error I searched for solutions online, and tried all options as suggested but unable to get past this error. If ...
0
votes
0answers
501 views

sfdx force:source:deploy fails with UNKNOWN_EXCEPTION

Yesterday it worked, but when I deploy my DX projects to my Sandbox using sfdx force:source:deploy -p ./force-app -l RunLocalTests -u TargetOrg -w 15 it fails with: === Component Failures [1] TYPE ...
5
votes
2answers
4k views

Run specific apex tests during “sfdx force:source:deploy”

Since summer 19, sfdx force:source:deploy allows us to push source format meta-data into static orgs and production. The Commands are introduced here However when I check the help of sfdx force:...
4
votes
1answer
601 views

VS Code Salesforce plugin deploy does not provide an error message

VS Code plugin for salesforce seems to be broken yesterday, It does not provide proper error message in case of failure. Tried this in a developer org as well as scratch org. Neither deploy code or ...
3
votes
0answers
376 views

DX Orgs and Custom Settings

I ran into an issue whereby I created a hierarchy custom setting in my DX scratch org but when I used the SDFX CLI to pull down the metadata it was ignored. I had used list custom settings before and ...
2
votes
1answer
112 views

How to add ignore managed package components in forceignore file?

How to ignore packaged components in forceignore file? I tried with below but not working. can you please look and suggest to me. **/*CloudingoAgent__* *CloudingoAgent__* package namespace start ...
0
votes
1answer
253 views

How to check deployment history in production org

In production org when I click on the deployment status, it shows a list of passed and failed deployments like below image if it is deployed from a changeset then in name section it shows the name ...
2
votes
1answer
121 views

How is this possible to use the Salesforce CLI after changing my user's password?

Couple of days ago, when logging in to the Org via browser, I was prompted to update my password. Last time I used Salesforce CLI was 2 weeks ago and today I had to do it again. However, no password ...

1 2 3
4
5
9