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
2answers
48 views

ERROR running force:source:deploy: This command is required to run from within an SFDX project

I am trying to use GitHub actions to deploy code to my developer org. While running the workflow i am getting error like. I am unable to figure where it is wrong Below is the structure in github. ...
0
votes
0answers
32 views

SFDX: Authorise an Org not working

I am trying to authorise an org using VS Code but keep getting the following sfdx force:auth:web:login --setalias jandev21 --instanceurl https://test.salesforce.com --setdefaultusername Unexpected ...
0
votes
1answer
29 views

ApexPages.currentPage().getParameters() Method does not exist or incorrect signature

I use VS Code with Salesforce Extension Pack. I have this line in my class code: string cId = ApexPages.currentPage().getParameters().get('cId'); It gets a squiggle line under getParameters() and a ...
0
votes
0answers
30 views

Errors in standard object definitions

I use VS Code with Salesforce Extension Pack. I have created SFDX project with manifest; authorized my sandbox org; then refreshed sobject definitions (tools-sobjects-standardObjects). This gives me ...
0
votes
1answer
34 views

Invalid fullName, must end in a custom suffix(for ex. __c) CustomObject[1,1]

I am trying to push the code to my DX project and getting the above error on standard objects like Quote, QuoteLineItem, Recommendation and SignupRequest. I tried adding the solution provided in this ...
0
votes
1answer
19 views

Sfdx vs code Extension causes high cpu load

I used to work on Vs code for lwc development . I am not aware of the previous version but After Updating to version : 1.51.1 . Authorize an Org : Redirecting to Browser but after logining in the ...
3
votes
2answers
220 views

Deploying Profiles and Fields with SFDX in VSCode

We're deploying from Stage to Prod via VSCode and package.xml. We're concerned of overwriting certain existing Profiles on Production. We haven't updated Stage from Prod in too long. We still need to ...
2
votes
1answer
26 views

DX CLI - Plugin Install vs. Plugin Link

I'm able to install a custom plugin globally via npm i -g @somescope/myplugin then change into the directory where the package is globally installed and can run sfdx plugins:link and all my custom ...
1
vote
0answers
91 views

VS Code - SFDX: Retrieve Source From Org > WARNING: Infinite loop detected [closed]

Summary SFDX: Retrieve Source From Org (sfdx force:source:retrieve) throws the error WARNING: Infinite loop detected. Steps To Reproduce: From manifest\package.xml launch SFDX: Retrieve Source From ...
0
votes
0answers
32 views

Running Unit Test from VS Code Got: ERROR running force:apex:test:run: Cannot read property 'message' of undefined

I am facing the following issue when I run a UnitTest using VS Code. For instance: sfdx force:apex:test:run --tests ServiceTest --resultformat human --outputdir /salesforce/.sfdx/tools/testresults/...
0
votes
1answer
37 views

Export records from Salesforce to deploy to another org which are useful for configurations like Custom Settings

I have retrieved the metadata from sandbox to deploy it to the higher org using ANT. ANT have created folders for all the components like objects, classes, etc. But, it did not retrieved many records ...
2
votes
2answers
31 views

Where did the type ahead menu for CSS SLDS classes go?

In VSCode, there used to be a type ahead window with suggestions of SLDS classes when you start to create one. This menu no longer appears for me. For example when I would type <span class="...
1
vote
1answer
24 views

SFDX - Cannot find messages folder on npm run prepack

In my environment we cannot use yarn to do a prepack on a custom dx plugin. So, we are trying to do the equivalent of yarn prepack with npm run prepack In the latter case, the typescript compiler ...
0
votes
0answers
24 views

Vs code Sfdx Authorize org failed after update

I used to work on Vs code for lwc development . I am not aware of the previous version but After Updating to version : 1.50.1 . I'm unable lo authorize to dev hub . I have uninstalled multiple times ...
2
votes
1answer
107 views

SFDX: command to retrieve Compact Layout from Source org to Visual Studio Code

I want to retrieve Compact layout to visual studio code from the source org. Currently I'm using following command. sfdx force:source:retrieve -m "CompactLayout:Lead-English Courses" But ...
1
vote
0answers
62 views

sfdx:force:package:installed:list is throwing TIMEOUT error

Summary force:installed:list command is throwing time out error as Your query request was running for too long. Steps To Reproduce: 1.ScratchOrg is created 2.Installed two packages with packageID ...
0
votes
0answers
36 views

Getting an error while creating unlocked package with --codecoverage option in salesforce

As per the current requirement new versions of packages can be created only buy running the sfdx force:package:version:create with --codecoverage option, however I am getting an exception related to ...
4
votes
4answers
1k views

Error running command sfdx.force.source.retrieve.component: data.forEach is not a function

Not able to download all the classes / triggers / LWC's or anything using the ORG Browser. This is kind of a annoying issue as I cannot keep on downloading only and only the classes I require. Any ...
0
votes
1answer
37 views

Channel Program object is not available in scratch org

I'm creating a Scratch Org. Following is my command. sfdx force:org:create -f config\project-scratch-def.json --setalias My-Scratch-Org --durationdays 30 --setdefaultusername --json But then once the ...
3
votes
0answers
161 views

SFDX: Get Apex Debug Logs returns “undefined”

This is driving me insane - I am no longer receiving full log files when running SFDX: Get Apex Debug Logs via VS Code's command palette. Instead, I get an empty file with the correct file name, but a ...
2
votes
1answer
127 views

SFDX is not recognized as an internal or external command on VS Code

I'm doing some Trailhead challenges that require me to download Salesforce CLI and SF Extension Pack on VSC. I've already downloaded both (as well as Java). I've added Java and SFDX to PATH yet I keep ...
10
votes
1answer
475 views

sfdx plugin installation crash: TypeError: Cannot read property 'dim' of undefined

Since today, my docker image crash because sfdx plugins:install seems to crash I tried with 2 different plugins, and the result is the same I also tried on Windows: same crash $ sfdx plugins:install ...
2
votes
3answers
104 views

Unable to run custom hello world SFDX plugin locally

I followed the instructions mentioned in the documentation: Scaffold a Salesforce CLI Plug-In. After generating the boilerplate code with command: sfdx plugins:generate hello, I got the project as ...
1
vote
1answer
143 views

Issue with setting default org in VSCode

I am trying to set a default org in VScode but it is not working. I get a Cannot read property 'getInstance' of undefined error. ERROR running force:auth:web:login: Cannot read property 'getInstance' ...
2
votes
2answers
155 views

SFDX Best practices for managing custom objects?

We would like to use the SFDX Cli to version our custom objects in a Git repository. For now, because we're new to SFDX and our codebase will be small, we want a single sfdx app. We currently have ...
1
vote
0answers
13 views

SFDX Command Executor Not Found

With a custom plugin I've written, whenever I try to run one of my plugin commands, I always receive the following: (node:14344) Error Plugin: mypluginname: command executor not found module: @oclif/...
0
votes
0answers
35 views

Command 'CCDX: Deploy Source To Salesforce' resulted in an error (Cannot read property 'path' of undefined)

Facing below error when I am trying to deploy LWC from VS Code Command 'CCDX: Deploy Source To Salesforce' resulted in an error (Cannot read property 'path' of undefined) Steps to generate error: ...
0
votes
1answer
59 views

405 When trying to install custom plugin from internal Github

I have a custom DX plugin hosted on an internal GitHub Enterprise repo. When I try and run sfdx plugins:install git@github.mycompany.com:myusername/my-repo.git it returns: (node:18800) Error Plugin: ...
6
votes
1answer
425 views

Deprecated or invalid utility class SLDS

I have been trying to use SLDS in LWC. However, I am noticing these issues recently. The same style classes were working before without any issues. Does anything worng with my VS code or is really ...
2
votes
0answers
108 views

Specifying individual CustomField in package.xml (vscode) does not deploy to Org, but when retrieving by object it does?

When retrieving CustomFields in package.xml by specifying: <types> <members>ObjectName.FieldName__c</members> <name>CustomField</name> </types> They retrieve ...
1
vote
2answers
226 views

SFDX: How to log in by session id and session url

We are writing a nodejs application which should execute some set of actions against SF org triggered by incoming http request coming from that org. Such request will contain base url and session id ...
1
vote
1answer
119 views

Running Anonymous Apex error: This org has reached its daily usage limit of apex log headers

I am running updates via sfdx commands by sending an .apex file. The command looks like this: sfdx force:apex:execute -f <myFile.apex> <my_org_credentials> After running 1000 of these, I ...
1
vote
0answers
41 views

How ignore Entitlement Process in Salesforce DX CLI?

I tried many times to ignore the Entitlement process (with versioning enable) and was unable to do it. All Scratch organizations that I created, after the first push, the first pull return many errors ...
3
votes
1answer
211 views

SFDX: How can I make my plugin available to install via sfdx plugins:install and a git repo reference?

We have written a plugin for use by our PS and QA teams for complex and large "data plan" loading and want to make it as easy to install for them as possible. We don't want to make it ...
0
votes
1answer
47 views

Local LWC server - there are no components present

I wanted to try out the local development Salesforce feature in VSCode. I am able to run the server, I am able to approach localhost:3333/ but I am unable to see any LWCs. In our org we are not using ...
1
vote
0answers
41 views

DX CLI - Cant find Error after moving a folder

I recently took a folder on my desktop and made it the child of another folder, and now get the following error message when running commands in the CLI: (node:13468) Error Plugin: sfdx-cli: could not ...
0
votes
2answers
86 views

How to deploy Source Format Git Branch into non-scratch org using jenkins?

How to deploy Source Format Git Branch meaning SFDX format into non-scratch org or full copy sandbox or production using jenkins?
0
votes
0answers
37 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
48 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
144 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
1answer
84 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
132 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
28 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
11 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
143 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 ...
1
vote
0answers
60 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
250 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
174 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
20 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
208 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 ...