Questions tagged [salesforcedx]

Salesforce DX is a broad reaching project touching a number of different features including: Salesforce CLI, Force.com IDE 2.0, support of standard developer toolsets, and Packaging 2.0. Since fixing unsupported Metadata API types is also a part, some MDAPI posts could be tagged, too.

Filter by
Sorted by
Tagged with
0
votes
0answers
10 views

Git pull not showing latest components added remotely salesforce

I am unable to see a new aura component that is created in remote git repository , by git pull command. So, the problem is that I created my feature branch from master. And In my feature branch, I ...
2
votes
1answer
24 views

2GP dependent managed package creation failing with null explanation message

I have an sfdx-project.json of this form that worked about week ago to create an unpublished version of a package that depends on another package: { "packageDirectories": [ { ...
1
vote
1answer
32 views

SFDX Test Code Coverage on deployment - CICD

I am trying to set up a CICD validation which needs to check if the test code coverage is going below 85% on a Pull Request. I am using the below SFDX deploy command but it doesn't give me code ...
-1
votes
1answer
22 views

Allow-list IP on salesforce environment automation / Programatically

I have scenario, Need to allow-list IP address in Salesforce from a CI pipeline (Azure DevOps pipeline), IP address is azure DevOps Microsoft hosted agent. Is there a way to achieve this using SFDX ...
0
votes
1answer
10 views

How to add a Person detail page on the community builder

How do we add a detail page for person Account object from the community builder, when I click on add page and select Salesforce object I don't see Person Account being listed there.
0
votes
1answer
24 views

sfdx force:apex:log:tail command is not working anymore

Can anyone pls advise if the tailing the log option has been removed in any recent upgrade of SFDX cli. This is used to work earlier, recently I am seeing not working anymore. Thought ? sfdx --...
0
votes
0answers
19 views

Error: value too long for field: source maximum length is:131072 [duplicate]

Error: value too long for field: source maximum length is:131072 Getting above error while deploying Lwc through VScode. Little help would be great. Thanks
0
votes
0answers
12 views

Issues with Retrieving Inactive version of flow and deploying Custom Notifications [closed]

I have 2 issues. I want the flow to be retrieved from sandbox to VScode. Is there a way to retrieve the inactive version of the flow to the VScode? The latest version of the flow in sandbox is ...
1
vote
1answer
19 views

SFDX: is there a command to retrieve an inbound change set?

There is an SFDX command to retrieve outbound change sets from an org. This command works great for that: sfdx force:mdapi:retrieve -s -r ./desiredDirectory -u <username> -p <change set name&...
1
vote
1answer
24 views

Issues with 2GP managed packages and connected apps

I've been unable to create a package due to this following error: : An unexpected error occurred. Please include this ErrorId if you contact support: 1290395039-462760 (-600457350) This occurs when ...
0
votes
1answer
25 views

Error during LWC component connect phase: [Maximum call stack size exceeded]

I am trying to assign value to a property of my parent component's constructor method. Below is the html code: <template> {welcomes} <c-testfile></c-testfile> </template&...
1
vote
0answers
22 views

Apex Log manager needed, or way how to filter big amount of logs

I'm looking for some tool, or extension for managing/ searching Apex logs. My main problem is I can produce very easily, a lot of logs by myself and ofc I'm not alone. Basically, when I reload one ...
0
votes
0answers
17 views

SFDX retrieve source from org doesn't retrieve new flow

I can retrieve source, but I don't see the updated files. I doubt existing files are updated too. Some posts I read suggests to deploy it to make a connection before retrieving, but wouldn't that ...
0
votes
1answer
41 views

LWC build Title component [closed]

In the process of developing an lwc component that can accept values such as Title, font size and icon name during LWC configuration and the padding and margins should be same as Salesforce out of the ...
2
votes
0answers
12 views

How does objectTranslation files work for renaming standard fields

We are working with salesforce dx. When I try to relabel a standard field in Salesforce and retrieve that change into dx, the change goes to objectTranslation files. However, by looking at the file ...
0
votes
0answers
32 views

How to fix access/refresh token issue? [closed]

I'm using VS code to work with Salesforce. I've already connected to my sandbox org and have already done some work last week. But, today, almost every 10 minutes, I have to reauthenticate because it ...
0
votes
1answer
33 views

Do I need to update ApexClass?

We have an ApexClass that references the SourceSystemID field (FinServ__SourceSystemId__c)) on Account. The Source System ID field (FinServ__SourceSystemId__c) is a Managed text field, 100 characters ...
0
votes
1answer
27 views

Salesforce Git Pipeline not recognizing sfdx

I am setting up my CI/CD pipelines and when i am running the pipeline , it fails with the below error. /bin/bash: line 129: sfdx: command not found Below is my sample .yml file #######################...
1
vote
1answer
23 views

How can I determine the exit status of an sfdx command in a shell script? [closed]

I am running my sfdx deploy command in a shell script as part of a Github action. Currently, the script is reporting success even if the sfdx command fails. This means the build is succeeding even ...
-3
votes
2answers
55 views

What is the recommended tool to start CI/CD for Salesforce development? [closed]

I'm new to this subject, but trying to start on the right foot. What are the recommended tools to start CI/CD for Salesforce development source version control and SFDX context?
0
votes
1answer
44 views

force:package:version:promote in CI script not finding package Alias: Subscriber Package Version Id not defined in sfdx-project.json

I am in the process of creating a CI script that uses GitHub actions for the creation and promotion of new package versions. For this I have created a shell script that is run after test classes have ...
0
votes
1answer
32 views

Deployment error - The AppMenu called 'AppSwitcher' is standard and cannot be deleted on pushing to scratch org

I am trying to do a simple push of my vscode to my scratch org using sfdx force:source:push -u test-zqrn4ol3ypft@example.com and I run into this error Type Project Path Problem Error force-app\main\...
0
votes
0answers
29 views

SFDX: Issue with 'sfdx force:source:retrieve -n <package name>' command while trying to retrieve unlocked package

I am trying to retrieve an unlocked package from the sandbox. When I try to use 'sfdx force:source:retrieve -n <package name>' command it is throwing below issue ERROR running force:source:...
1
vote
0answers
51 views

Unexpected file found in package directory lwc\jsconfig.json

On 12/13/2021, I attempted to run sfdx force:source:push -f to a scratch org. Since then I have been getting this 'Unexpected file found in package directory lwc\jsconfig.json' error every single time ...
3
votes
1answer
258 views

SFDX: how can I use a GitHub action script to deploy ONLY what was changed instead of ALL the metadata?

I've set up GitHub actions in my Salesforce repository on GitHub. They're working fine, except they deploy all the metadata on the repository instead of only what was changed. I'm guessing I can ...
0
votes
1answer
17 views

How to remove inexistent objects when deploying metadata

How do I make sure that the packaging org is building the managed package only based on the files that I have in my source control system? We recently moved to SFDX and part of the deployment process ...
3
votes
1answer
64 views

Need Suggestion : Release/Branching Strategy using bitbucket CI/CD [closed]

We follow hybrid agile methodology in our project where we have Main release at every month end. We also have Fast track release on First Week of every month. Purpose of Fast Track release is to make ...
7
votes
1answer
126 views

What is the best practice regarding organizing Apex code

I am just curious of what is the best practice, it seems that if I create folders in force-app/main/default/classes and put my classes there everything seems to work fine. Is this in any manner bad or ...
3
votes
1answer
83 views

Cannot read properties of null (reading 'Username') while running sfdx force:package:version:list?

I am getting following error Error: Cannot read properties of null (reading 'Username') while running sfdx force:package:version:list command? I am using sfdx-cli/7.132.0 win32-x64 node-v16.13.1 ...
0
votes
1answer
24 views

:Missing matching tag for <lightning-record-view-form> this lWC getting error i don't know what's wrong

<lightning-accordion-section name="ProductDetails" label="Product details "> <div class="slds-grid"> <div class="slds-col ...
0
votes
1answer
42 views

Error Running sfdx force:org:package commands

I am having issues running any of the package related commands through the command line. This came up kind of randomly after it was working a few weeks ago. I have deleted my .sfdx folder in my users ...
0
votes
1answer
252 views

Workbench Errors. Is anyone else having an issue?

Anyone else having workbench issues? Since yesterday whenever I try to do something I get redirected to a Heroku Error screen.
0
votes
0answers
30 views

Process Builder fails to deploy - field integrity exception

I am trying to deploy a process builder using sfdx into production I use this command to get the component: sfdx force:source:retrieve -m Flow:myFlow And use this command to deploy: sfdx force:source:...
3
votes
1answer
39 views

SFDX Scratch Org Creation - queueRoutingConfigs - Not Available for Deployment to your organisation

I'm attempting to create scratch orgs via GitLab pipeline which includes LiveAgent, Omni-channel and skills. Looking at the Metadata Coverage report I can see that queueRoutingConfig is supported. And ...
3
votes
1answer
69 views

SFDX force:source:diff not in Documentation

More than two months ago, the VS Code command SFDX Diff File Against Org stopped working for SObject related metadata (see issue #3586 in GitHub). Wondering what might delay a much needed fix, I have ...
3
votes
1answer
70 views

How do I set "enableHistory" to "true" on a managed object in a scratch org?

I'm trying to run the following code: cci task run deploy --path force-app\main\default\objects\ExpensivePackage__Their_Custom_Object__c --org my_scratch_org_alias Against an ...
1
vote
0answers
33 views

Percent of Code in DX versus not in DX

Query for DX Components: SELECT SubscriberPackage.Name PackageName, count(SubjectId)cmptotal FROM Package2Member WHERE CurrentPackageVersionId IN (SELECT SubscriberPackageVersionId FROM ...
0
votes
0answers
87 views

ERROR running force:org:create: Unrecognized option: cookiesAllowAllPaths

When trying to create a scratch org via SFDX in vsCode, I am getting the following error: ERROR running force:org:create: Unrecognized option: cookiesAllowAllPaths I wish I could give more context as ...
1
vote
0answers
32 views

sfdx.exe deploy approval process fails with "The approver null has an invalid type. Replace PreviousApprover with a valid enumeration value."

I am working with sfdx Trying to deploy a changed approval process from my sandbox to production I am getting the approval process with no problems with this command: sfdx force:source:retrieve -m ...
0
votes
1answer
49 views

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

I am working with sfdx Trying to deploy a changed workflow from my sandbox to production I am getting the workflow with no problems with this command: sfdx force:source:retrieve -m WorkflowRule:...
0
votes
0answers
40 views

Ways to upload code and other metadata to Production

What are the best options to deploy metadata from Sandbox to Production? Our installation consists of many installed managed packages, custom objects, fields and a lot of Apex code. We had used ...
0
votes
0answers
33 views

unlink Custom Label from Unlocked Package

I have a similar issue as the author of this post : Unlocked package component overridden metadata components in the org Basically, I generated an unlocked package version (org dependent) that wrongly ...
0
votes
2answers
24 views

SFDX push to playground/specific org

Hi Stack Exchange community, right now I'm learning to code with SF but I'm stuck with a very specific problem, I was trying to add LWCC (https://salesforcelabs.github.io/LightningWebChartJS/) to use ...
1
vote
1answer
78 views

Any way to fix this out of memory error installing @salesforce/sfdx-scanner?

We run our CI (Continuous Integration) build for our app using GitHub actions and part of that is to install and run the Salesforce CLI Scanner. We run on ubuntu-latest that is documented to have &...
0
votes
1answer
59 views

CLI Unification: Is there an 'sf' equivalent of 'sfdx' --dev-debug?

I run into an issue authenticating a Salesforce org with the new sf executable. Using sf login org -a myAlias giving me an this error: JsonParseError: Unexpected end of JSON input For sfdx it was ...
5
votes
1answer
195 views

Github Workflow for Package Development

To better maintain my OSS repositories I am looking for a simple but elegant Github workflow that covers all steps of a DX development process that ends with a package version (unlocked/managed): ...
0
votes
2answers
98 views

I cannot delete a scratch org by running sfdx force:org:delete cmd

I cannot run the sfdx force:org:delete cmd to delete a scratch org. $ sfdx force:org:delete -u scratchOrgAlias -p ERROR running force:org:delete: Cannot read properties of undefined (reading '...
1
vote
1answer
51 views

navService used with lightning:navigation does not work as expected : no redirection is made and no error is shown

Summary I work on a SFDX project with one package, and within my aura component, I'm currently having problems with the lightning:navigation element. I followed the docs from Aura Component - ...
0
votes
1answer
25 views

Missing Organization Feature: MultiCurrency error when trying to create a package version

So, when I'm trying to create a package version, sfdx fails with: ERROR running force:package:version:create: An error occurred while trying to install a package dependency, ID 04XXXXXXXXXX: Missing ...
0
votes
0answers
16 views

Is it possible to deploy profiles and permission sets and skip the not found dependencies?

My question is: Is it possible to deploy profiles and permission sets and skip the not found dependencies? Problem: The profiles and permission sets that I want to deploy are quite big and they always ...

1
2 3 4 5
48