Questions tagged [sfdx-plugin]

A plug-in adds functionality to the Salesforce CLI. Some plug-ins are provided by Salesforce and are installed by default when you install the CLI. Some plug-ins are provided by third parties and can be installed locally. When you have a requirement that an existing plug-in doesn’t meet, you can build your own.

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

sfdx force:source:deploy attempt from explorer fails, then the same command works in terminal window after a couple of tries

This is more annoying that anything, but any suggestions would be useful. I have a correct installation of VS code, Salesforce CLI, and all necessary extensions. loaded LWC sfdx project from Github ...
1
vote
1answer
25 views

Accesing .sfdx/alias.json from an SFDX plug-in

I want to access ~/.sfdx/alias.json from an SFDX plug-in. (I know I can use sfdx force:alias for this; it's just an example.) I'm having a very hard time figuring out what the docs at https://...
1
vote
2answers
31 views

Cannot pull from scratch org after discard changes in visual studio code

I use git and sfdx with vs code. I have a scratch org where I made changes to the roles. I did sfdx pull source from scratch org. But I discarded the changes thinking I can pull them again from ...
0
votes
0answers
22 views

Problem While pushing into Scratch Org

When I trying to push into my Scratch Org from CLI, using the command sfdx force:source:push -u TestScratchOrg -f then I'm encountering the error Unhandled rejection TypeError: Cannot read property '...
2
votes
1answer
52 views

How to properly install the preview release salesforcedx core plugin

On every release I run into some sort of trouble with this testing phase and having the preview CLI core plugin installed. The instructions are short and clear HERE That said, those instructions don'...
1
vote
1answer
18 views

Issue with Salesforce Package directories

While Creating a new package version, I have to keep all the components in the same folder otherwise it is giving me errors. Even though the component exists in other directory. So,There are 2 use ...
0
votes
0answers
8 views

Errors for external object in unlocked packages

how to add external objects and external data sources in an unlocked package? Is there any particular feature/setting needs to be enable? I have added the datasources also. But getting errors like ...
2
votes
3answers
85 views

How to diff metadata from Github with my managed package

SFDX looks promising for this, but I'm confused and am running out of time. Your help is appreciated. It seems this could do what I need... sfdx force:source:diff But it appears to only work on ...
0
votes
0answers
21 views

SFDX error for external objects

I have added external object in an unlocked package. This object is getting call from apex classes. I have added the datasources also. But getting errors like below: 1. Invalid type: Schema....
1
vote
1answer
27 views

SFDX error for LiveChatTranscript object

I have added LiveChatTranscript object in my unlocked package but while versioning getting error LiveChatTranscript: Invalid fullName, must end in a custom suffix ( for ex. __c ) Can anyone help me ...
1
vote
1answer
59 views

Sfdx Auth Url is getting expired after certain time

For CI pipeline for authentication I am using "sfdx force:Org:Display --targetusername ProductionHub --verbose" command to get Sfdx Auth Url. Then by using "sfdx force:auth:Sfdxurl:Store -f ...
0
votes
1answer
9 views

List of components which can be deployed as a part of unlocked package

In sandbox 1 created one object and fields. Then changed the FLS(field level security) for one field. Added this object in a unlocked package then after versioning installed it in sandbox 2. FLS did ...
2
votes
1answer
34 views

Unable to navigate code path for a specific project in VS Code

I am having trouble with navigate the code path by using "Go to definition" / "Peek Preview" for one project. I also don't see any SFDX commands on Command palette. The project has below structure. (I ...
0
votes
1answer
46 views

Cannot find “Custom Settings” in Org Browser (Visual Studio Code, SFDX) [duplicate]

I creating a Custom Setting in a sandbox, called Global Settings (Global_Settings__c). I am trying to pull the Custom Setting into my SFDX project via Visual Studio Code, but "Custom Settings" does ...
1
vote
1answer
34 views

Unlocked package name changed or package delete option

I have below questions: Can we change the name of a created unlocked package? Also can we delete any unlock package which is already created? Please provide solution if available.
1
vote
1answer
95 views

Cannot retrieve WorkflowAlert, WorkflowFieldUpdate, WorkflowRule from package.xml through sfdx cmd

I want to retrieve all my WorkflowAlert, WorkflowFieldUpdate, WorkflowRule from my sandbox and deploy them to another one. Here is my package.xml file : <?xml version="1.0" encoding="UTF-8" ...
0
votes
1answer
32 views

ERROR force:data:tree:import CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY entity type cannot be inserted

My issue is whenever I am trying to sfdx import user records to another org I get this error: ERROR running force:data:tree:import: {"hasErrors":true,"results":[{"referenceId":"ProfileRef1","errors":...
1
vote
3answers
127 views

Determine if authorized org with SalesforceDX is Developer or Production

I'm struggling to determine the type of environment of authorized orgs using the SalesforceDX auth commands. Once you've registered an org if you run sfdx force:org:list --json The output results ...
1
vote
1answer
144 views

invalid fullname must end in a custom suffix(for ex. _c)

Added AccountContactRelation object inside my DX unlocked package but while versioning getting error invalid fullname must end in a custom suffix(for ex. _c)” What is the issue for this?please advice....
4
votes
1answer
71 views

Parsing Jest response and fail Bitbucket Pipeline

This is an extension to Lean and reusable DX Bitbucket Pipeline for PR checks. Similar to Apex tests I also want to run all JEST tests when a scratch org is created using my shell scripts AND from ...
2
votes
0answers
30 views

SFDX versioning error for leadsource field

I have account,contact, opportunity,case and lead in my unlocked package. For case entitlements,multicurrency fields (ex. currencyisocode, slastartdate, entitlementid etc.) I have added ""features": [...
1
vote
1answer
25 views

SFDX error after adding manage package dependency

After adding manage package subscriber id in the sfdx-project.json file I am getting below error ERROR at Row:1:Column:125 sObject type 'Package2VersionCreateRequest' is not supported. If you are ...
0
votes
1answer
33 views

SFDX auth commands getting frozen

When I try to execute sfdx force:auth:web:login -r https://test.salesforce.com command it starts to run endlessly without any output. Happens both in cmd and VS Code. I've already tried updating the ...
0
votes
1answer
31 views

Ternary operator in class property throws error

I'm going insane here with the non-specific error messages of sfdx. <div class="item slds-col slds-size_{! v.itemsPerRow == 1 ? '12' : '4' }-of-12"> produces the error Cannot mix expression ...
0
votes
1answer
32 views

Possible to code a component (Aura or LWC) and see it in local?

So far, while coding a component (Aura, or LWC), we need everytime to deploy to the org to see modifications, is there a way to code in my local machine ? (localhost like) ? In Angular for example ...
1
vote
1answer
107 views

SFDX unlocked package version component list

I have created one unlocked package for deployment purpose.Now I am adding new components to the package and doing versioning. How can I check the which version contains what metadata. EX. suppose my ...
0
votes
0answers
187 views

ERROR_HTTP_414 - <h1>Bad Message 414</h1><pre>reason: URI Too Long</pre> on VS Code

I am trying to push the code to my scratch org through VS Code using following command - sfdx force:source:push --json --loglevel fatal But getting following error on VS Code. ERROR_HTTP_414" - "...
0
votes
0answers
1k views

SFDX: Create Project failed to run

Facing problem to complete this trailhead trail ( https://trailhead.salesforce.com/content/learn/projects/quick-start-lightning-web-components/set-up-visual-studio-code) I have installed Salesforce ...
3
votes
1answer
72 views

Difference between create-lwc-app and SFDX cli

Hello Salesforce community, I'm not sure where to ask the question so I'll ask it here. I'm beginner with LWC and Salesforce (but senior as frontend developer). Can you explain me the difference ...
0
votes
0answers
86 views

sfdx force:auth:web:login freezes

When I try to authenticate to the org by going to "VSCode" and clicking on "No Default Org Set" then Select the environment and then I type alias name. The spinner comes at the bottom right of the "...
1
vote
1answer
27 views

sfdx package versioning error for BillingCountryCode and MailingCountryCode field

I have one class where contact MailingCountryCode and account BillingCountryCode is used. I have added both objects in project but still I am getting error while versioning the package. Error message>>...
0
votes
1answer
214 views

Unable to create scratch org successfully in Visual Studio Code

I have authorized dev hub org successfully and now trying to create default scratch org using visual studio code but getting following error: sfdx force:org:create -f config\project-scratch-def.json -...
0
votes
3answers
235 views

sfdx' is not recognized as an internal or external command, operable program or batch file

Unable to get past this error when Creating the Hello World Lightning Web Component I checked the path variable as described here
2
votes
2answers
294 views

Error parsing file: LWC Metadata Xml Parser: Unexpected element: runtimeNamespace

I am trying to deploy an LWC and get this error : "Error parsing file: LWC Metadata Xml Parser: Unexpected element: runtimeNamespace". Here is the code of my js-meta.xml <?xml version="1.0" ...
0
votes
0answers
10 views

java set up for Lighting web component

i download and install jdk-11.0.5+10.I also set variable path and saleforce vscode-apex-apex > java:home.but its still give me error.
0
votes
1answer
133 views

Automating scratch org with sfdx plugins

I have been looking to automate the process of creating a scratch org, pushing source (metadata), assigning the permission sets, resetting the password, open the org and much more. After doing some R&...
1
vote
1answer
59 views

Sfdx:create project… project is not creating

I have issue while creating project using command Sfdx:create project or with manifest in Command palette everything are fine but the problem is Nothing happen. its not creating project. I also set ...
2
votes
1answer
222 views

Automating setup of scratch orgs

I want to write a script preferably in Node.js to automate sfdx force:org:create, sfdx force:user:password:generate, sfdx:org:push and, sfdx force:user:permset:assign. The script should take ...
1
vote
1answer
169 views

Unable To Install SFDX Plugin

I installed an SFDX plugin to help with data loading, but the version installed with sfdx plugins:install etcopydata installs an older version with some missing functionality. Running sfdx plugins:...
0
votes
1answer
48 views

deployment error for Entilement object

I'm trying to deploy entitlement object meta data, layouts, and fields through ant tool. However, I keep getting an error: Invalid fullName, must end in a custom suffix ( for ex. __c ) Anybody ...
0
votes
0answers
39 views

SFDX error for case recordtype

Facing two issues during DX package versioning: 1.I am facing error in case object while versioning the package. Error : "Case.Recordtypename: duplicate value found: is a duplicate of the value in ...
1
vote
1answer
58 views

SFDX plugin to generate Apex classes from Swagger file is failing to install

I'm trying to install this plugin https://github.com/muenzpraeger/sfdx-plugin , due to some reason it is failing. Please let me know if there is any other way that i can generate classes using swagger ...
0
votes
0answers
71 views

Case popup on inbound calls using open CTI

I am trying to integrate Purecloud with Salesforce, Its has two option 1. Standard CTI Soft phone 2. Embedded framework In Standard we can leverage the standard phone functionality, we can't ...
2
votes
2answers
457 views

Warning: force:lightning:lwc:start is not a sfdx command

I am trying to use the new LWC Local Development Server. I've run command: sfdx update So I know I am using the latest version of the CLI. And I've installed the plugin: sfdx plugins:install @...
7
votes
2answers
731 views

ERROR running force:source:pull: Entity of type 'Workflow' named 'Workflow' cannot be found

I am having issues when pulling Workflows using SFDX with VS Code. The error that I get when pulling in the Workflow (sfdx force:source:pull) is: ERROR running force:source:pull: Entity of type '...
5
votes
1answer
616 views

Downgrading sfdx-cli

I'm wondering whether it's possible to downgrade sfdx-cli to use an earlier version? I'm trying to debug an issue with using it in pipeline scripts. When I run sfdx version --core I get sfdx-cli 7....
1
vote
1answer
238 views

SFDX CLI - Unknown error when pushing code to Scratch

I created a new scratch and trying to push the code I received an uknow error: { "status": 1, "result": [ { "error": "Unknown" } ], "name": "DeployFailed", ...
2
votes
1answer
61 views

How to launch node debugging session when developing custom sfdx plugin

Working with a friend on some pretty cool sfdx plugins. Challenge seems to be if something goes wrong I get a pretty generic error, no stack trace, and it's a real challenging tracing things back to ...
2
votes
0answers
36 views

SFDX occasionally fails decryption on all my authorized orgs, causing me to re-auth them all

I have been using SFDX for the last couple years as a way to log into seperate orgs easier. Every once and a while, I will load up terminal and try to log into an org, only to get this error: ERROR ...
1
vote
0answers
34 views

Testing custom salesforce plugin

I am currently trying to test a custom salesforce plugin which deploys a payload to a specific org. The plugin itself is coded in typescript and the unit tests are using mocha/chai. I am running ...