Questions tagged [visualstudiocode]

Visual Studio Code is a cross-platform source code editor developed by Microsoft. This tag is for questions regarding the numerous Salesforce plugins that exist for it such as VsForce, ForceCode and MavensMate.

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

Error: Invalid Alias or Id for SFDX Package Install

Getting error when using package alias name sf package install [email protected] vs 04t Id. Using the Id works fine. My packages are namespaced. Error (1): Invalid alias or ID: provutil@1....
ddeve's user avatar
  • 1,546
1 vote
1 answer
34 views

compactLayout removed from .object-meta.xml after "sf project retrieve start" or right click "SFDX: Retrieve source from org" 2GP

I'm building a package to eventually put on the app exchange. I've set up a dev hub, created a developer site with a namespace and configured visual studio code. I created my components in visual ...
Andy's user avatar
  • 23
0 votes
0 answers
90 views

Unable to Deploy or Retrieve source from any ORG

I'm facing an issue while trying to retrieve source code from a package.xml file within our organization. This problem has persisted since last year, despite my attempts to resolve it by both ...
GraNeMM's user avatar
  • 11
0 votes
0 answers
125 views

VS Code sfdx-scanner installation error related to SSL

I am trying to install Salesforce sfdx-scanner for VS code on my office laptop as per the below guideline Install and Update Salesforce Code Analyzer. I checked some of the issues related to sfdx-...
Rachit's user avatar
  • 177
0 votes
1 answer
84 views

Connect VSCode to existing Scratch Org

I have two scratch orgs and one non scratch org. I restarted my Visual Studio Code and lost my connection to the scratch org. Can someone please tell me how to connect VS code to existing scratch orgs....
nikhila reddy's user avatar
0 votes
0 answers
112 views

VSCode Quickfix / Code Actions for Apex files not working

TL;DR How can I enable (or customize) quick fixes/code actions for Apex classes in VS code? Problem Quick fix actions like extraction via ctrl + . or F2 for file-wide renaming aren't working. Below is ...
Jwok's user avatar
  • 767
0 votes
2 answers
87 views

Is there a way to commit custom object records via VS Code to a repo?

I could notice we can commit Custom object fields and layouts and such, but can we commit the custom object records which we created in org?
SF Learner's user avatar
0 votes
1 answer
310 views

Cant retrieve EventRelayConfig metadata in VSCode

im playing around with the rather new event relay feature that integrates salesforce into AWS. The feature itself works fine but I stumbled upon the metadata page in the salesforce docs ( https://...
Outcast1104's user avatar
0 votes
0 answers
60 views

getting error as The "path" argument must be of type string, Received undefined [duplicate]

In Trailhead Challenges In Build a Bear-Tracking App with Lightning Web Components project, I have completed the challenge but it's not working for deploy source to org. I am getting an error as The &...
Chebolu Harshini's user avatar
0 votes
1 answer
188 views

ForceCode takes very long to load

I have VS code v1.77.2 and ForceCode v4.0.5 installed on a Windows machine. ForceCode takes more than 15 mins to load. It was suggested to re-install it, but that did not work. Any insight of why ...
Isabel Martinez's user avatar
0 votes
0 answers
110 views

Unable to retrieve source from Org - No error message

I have previously been able to retrieve source from org, however now when I click on Apex Classes in the org browser window it just keeps spinning. This happens both in my test org and my trailhead ...
Jonathan Crow's user avatar
1 vote
1 answer
143 views

Why is chevron showing on child Data? Tree grid lwc salesforce

JS file import { LightningElement, wire , track} from "lwc"; import { NavigationMixin } from 'lightning/navigation'; import { refreshApex } from '@salesforce/apex'; // Import the schema ...
Noha's user avatar
  • 13
0 votes
1 answer
731 views

Visual Studio Code - can we compare Metadata in two orgs

A client is moving away from change sets to Azure Devs Ops. However, for now deployments are done using change sets, The org size is small, and currently no custom code, only config - custom fields, ...
GroundToCloud's user avatar
-2 votes
1 answer
1k views

'The org cannot be found' error in VS Code

Anyone experienced "The org cannot be found" issue in VS Code. I'm facing this issue from past 2 weeks. Tried with multiple orgs. Un-installed and re-installed VS Code. Tried with different ...
Chinni Vishnu Kalyan's user avatar
0 votes
1 answer
370 views

Retrieve ReportType in Visual Studio Code

I am able to retrieve Email Templates in VIsual Studio Code as follows sfdx force:source:retrieve -m EmailTemplate:"[FolderName]/[EmailTemplateDeveloperName" I have tried searching, but ...
GroundToCloud's user avatar
0 votes
1 answer
568 views

Salesforce Marketing Cloud - Object Names

I need to extract data from Salesforce Marketing Cloud. I'm using KingswaySoft SSIS Integration Toolkit to do the ETL, but I don't know the tables that retrieve the columns I need. I've searched on ...
TiagoD's user avatar
  • 1
1 vote
1 answer
393 views

Setting up debugger with Apex Salesforce in Visual Studio Error "Either your org or user doesn't have the permission to debug Apex"

I am trying to set up breakpoint and debug my code in Apex, but for some reason I get the following error when running the debugger: My lunch.json is as following: I am using Scratch ORG and my user ...
Lyubomir Tsvetkov's user avatar
0 votes
0 answers
87 views

Error deploying or retrieving source

I am facing this issue: "Error deploying or retrieving source: The file or directory that you tried to deploy or retrieve isn't in a package directory that's specified in your sfdx-project.json ...
GraNeMM's user avatar
  • 11
5 votes
2 answers
10k views

VS Code: "Unexpected end of JSON input" error when changing the default org

When clicking the "Change Default Org" button in the VS Code status bar, rather than seeing a list of the orgs I was authorised against, I was seeing an error: Unexpected end of JSON input
Will's user avatar
  • 449
1 vote
1 answer
41k views

Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0'

I hope you have a nice day, for about a month now, every time I connect to an instance through Visual Studio, I get this message: Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable ...
Felipe Peña's user avatar
1 vote
1 answer
433 views

Retrieve Enhanced Letterhead via Metadata API

Can someone please point me to a blog or walk me through steps for retrieving Lightning Enhanced Letterheads in VSC. I can see the classic letter head in VSC but not lightning Enhanced Letterhead, and ...
GroundToCloud's user avatar
0 votes
0 answers
390 views

`sfdx force:apex:log:tail` to only show [USER_DEBUG] logs not working

I'm connected to a Playground org in VS Code. I have made and deployed a class to this org and would like to run some anonymous code in VS Code to test a method of the class. I was able to do this by ...
user135792's user avatar
0 votes
0 answers
758 views

How could i retrieve all email templates to VSC using sfdx or manifest?

I need to retrieve all email templates to my visual studio code to apply a general replacement on the text of those templates. I give a try to the solutions provided at those links retrieve all email ...
HAK's user avatar
  • 1
0 votes
0 answers
99 views

Using Salesforce Extension Pack in Visual studio professional

We purchased Visual studio Professional edition recently, for another project. Before this we have been using visual studio code and the Salesforce Extension Pack to code in Salesforce. Now we want to ...
Theqcue's user avatar
0 votes
0 answers
928 views

Unable to retreive org to VSCode

I am having problem with retrieving org to my VS Code. I usually work with IntelliJ, but I need to do some quick testing on my other laptop, so I tried using VS Code. Here are steps that I did so far: ...
Skylore's user avatar
0 votes
1 answer
129 views

Error retrieve from manifest in Visual Studio

I am trying to Retrieve Source from Org and I get this error: UNSUPPORTED_API_VERSION: Invalid Api version specified on URL In package.xml, it shows me: <version>54.0</version> With this ...
Willy Kelly's user avatar
0 votes
1 answer
57 views

Can I have more than 15 active connections in my IntelliJ IDE?

I noticed that every time when I have above 15 active connections to Salesforce orgs, I can't do the new connection (in my IntelliJ IDE). I use Illuminated Cloud 2 plugin to connect this Is there a ...
Fgh999's user avatar
  • 35
2 votes
2 answers
4k views

Go to definition not always working in VS Code

When I'm developing Java code, I frequently Cmd-Click on Mac or Ctrl-Click on Windows to go to the definition of a method, class, constructor, etc. however when I'm developing Salesforce APEX code it ...
mjaggard's user avatar
  • 143
-2 votes
1 answer
193 views

Can you delete an opportunity record type in Visual Studio code? [closed]

I am reading mixed information. Can an opportunity type be deleted?
user115088's user avatar
0 votes
0 answers
500 views

invalid element error for <runtimeNamespace>

I am getting an error in xml file while building LWC (want to use with vlocity component) in VS Code. Please help me to resolve this error. Here is the xml: <?xml version="1.0" encoding=&...
SPH's user avatar
  • 1
1 vote
0 answers
2k views

VS Code and SFDX (salesforce) error: self signed certificate in certificate chain

I'm using Windows 10 + VS Code + Salesforce. From some point when I need to connect to Salesforce org. (make a push or just open it) I get the error "Error: self signed certificate in certificate ...
Pavel Kravets's user avatar
0 votes
1 answer
1k views

Method does not exist or incorrect signature: void keyset() from the type Id

I think is something very small, but i dont what can be, i am new in apex class List<Deal_Registration__c> deal = new List<Deal_Registration__c>(); if (Deal_Registration__c....
Moon's user avatar
  • 9
0 votes
1 answer
1k views

VSCode Outline not loading for apex file

I use VSCode for Salesforce development and the outline section just keeps loading but never loads. It works well for JS files but doesn't show at all for apex files. And due to the same reason, I am ...
love gupta's user avatar
2 votes
2 answers
4k views

Updating Permissions and Profiles through Visual Studio Code

I am new to VS Code and trying to copy Permission Set permissions into a Profile so that we don't have too many permission sets. I thought rather than checking in SF and clicking back and forth I can ...
Hulk Buster's user avatar
0 votes
2 answers
295 views

Is there a way to see who the permission set is assigned to in Visual Studio Code?

Is it possible to see who the permission set is assigned to on the one screen? I know I can do this within Salesforce but its a lot of clicking and slower so if there is a faster way where I can see ...
Hulk Buster's user avatar
0 votes
1 answer
92 views

Cannot connect Salesforce Visual Studio Editor

I'm trying to connect one of my Sandboxes to VS however I keep getting the type error found below. TypeError: Cannot destructure property 'underline' of 'chalk_1.default' as it is undefined. at ...
Noah Brammer's user avatar
0 votes
1 answer
472 views

How to over come the error :- The `innerHTML` property is available only on elements that use the `lwc:dom="manual"` directive?

On click of a div i am trying clear the content and I am making it editable. so when i try to get the innerHTML it has no issues but when i try to modify the innerHTML , i get a console error as below ...
JalilIrfan's user avatar
0 votes
1 answer
1k views

Lightning Web Component not getting deployed

I have been trying to deploy a lightning web component and an apex class to a developer org, but I receive the error "SFDX: Deploy Source to Org failed to run" in VS Code. Did I miss ...
Night Guy's user avatar
  • 214
0 votes
1 answer
258 views

Resource Not Found Using sfdx force:org:create

I am attempting to use a sandbox of my production org as a DevHub for scratch orgs. In VSCode, I am using the built-in sfdx application to do this, first creating an sfdx project, then authorizing my ...
Craig Carpenter II's user avatar
1 vote
0 answers
635 views

VisualStudioCode. SFDX: Authorize an Org. error

In Visual Studio Code. SFDX: Authorize an Org. This error displayed. "ERROR: We can’t query your org. Make sure that you’re connected to this org and have permissions to view the object and ...
ymd's user avatar
  • 11
0 votes
1 answer
652 views

How retrieve Default Org Values from Custom Settings to Visual Studio?

We want to change our 'Default Org Values' in our repo, but we don't find the option in Visual Studio. We are using Visual to upload the code to AWS and need to change this. We tried to include the ...
dibanepa's user avatar
0 votes
1 answer
587 views

Where to find navigation bar metadata in experienceBundle

I created a community using the Partner Central Template, added a few tabs besides home in the navigation Bar clicking on which opens up the salesforce object pages. Now I can see those object pages ...
Sam's user avatar
  • 83
1 vote
4 answers
9k views

Trailhead Dreamhouse: ERROR running force:source:deploy: No source backed components present in the package

I'm new to Salesforce and am stuck on amending the price filter in the DreamHouse trailhead project. The label for the price filter needs to be updated and deployed, but when I try to deploy the ...
CMoney's user avatar
  • 11
1 vote
1 answer
730 views

How to retrieve metadata to a custom folder by using default method "Retrieve Source in Manifest ORG" in Visual Studio?

In my ORG I didn't add to repository the default folders like so It was done like the following image: That is, the root files starts in src/ folder instead of force-app/main/default/* It brings ...
Olavo Alexandrino's user avatar
0 votes
1 answer
114 views

Do SFDX projects really need multiple jsconfig.json files? [closed]

I have a project with folders breaking up web components into groups, generally by the role of the user who will be using them, along with a folder for components shared across the app. So my projects ...
Chuck's user avatar
  • 877
1 vote
2 answers
6k views

Not seeing SFDX Commands in VS Code

I cant see the SFDX Commands like deploy to server, retrieve from server. Authorization to the sandbox was successful yesterday. When I try to deploy my code from the same workspace in vs code today, ...
sfMon's user avatar
  • 39
3 votes
1 answer
20k views

SFDX: Authorize an Org failed to run in VSCODE

SFDX: Authorize an Org failed to run in VS Code: I am tring to authorize an org on visual studio code but when I am trying authorize it, I am getting the below error. SFDX: Authorize an Org failed to ...
Manish Kumar Gurjar's user avatar
1 vote
1 answer
482 views

Create subfolder under staticresources

In a Lightning Experience project, I inside force-app/main/default/ there is a staticresources folder. I have both CSS and JS files in there and I'm using them in LWCs using lightning/...
jbyrd's user avatar
  • 631
1 vote
0 answers
1k views

How to retrieve Salesforce reports (in a subfolder) using VS Code

How can we retrieve SF reports in visual studio code, I have tried below options: 1). Using manifest.xml -> Nothing happened, no reports extracted and no error shown either. 2). Using sfdx force:...
sunil gupta's user avatar
1 vote
1 answer
361 views

diff on folder in visual studio code

I am using Visual Studio Code with Salesforce Extensions. I am trying to find all diffs between my local project and the sandbox. When I right click on classes folder and click on Diff Folder Against ...
isaace's user avatar
  • 111