Questions tagged [sfdx-error]

The tag has no usage guidance.

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

ERROR running auth:sfdxurl:store: Cannot read properties of undefined (reading 'id')

How to Replicate: Running this command sfdx auth:sfdxurl:store -f ./SFDX_TMP_URL.txt -s -a integration to authenticate via sfdxAuthUrl. SFDX_TMP_URL.txt contains the sfdxAuthUrl value. Error: After ...
user avatar
1 vote
1 answer
36 views

sfdx sgd-git-delta plugin not recognized in Jenkins pipeline [closed]

I have installed sfdx git delta plugin on my system. It works perfectly well when I execute locally on Git Bash / CMD / Visual Studio Code. But when I trigger the Jenkins pipeline, I see that sfdx ...
user avatar
3 votes
1 answer
113 views

SFDX source push failing on Duplicate picklist value

As of today (6/7/2022) the sfdx force:source:push command started failing after scratch org creation as part of the deployment script we're using in our pipeline. It throws the following errors back: ...
user avatar
  • 143
0 votes
2 answers
57 views

Can not create Scratch org

I have an issue when invoke this line in terminal sfdx force:org:create edition=Developer -a MyScratchOrg -s -v devHub or this one sfdx force:org:create -f config/enterprise-scratch-def.json -a ...
user avatar
1 vote
0 answers
277 views

ERROR running auth:web:login: Parse error in file unknown on line 12

I'm trying to connect to a Salesforce using the command line sfdx force:auth:web:login -d -a DevHub, that's works well, I'm entering the user and password on the login page, then enter the user name ...
user avatar
1 vote
1 answer
131 views

Problem's are returning errors linking to incorrect file locations giving "The editor could not be opened because the file was not found"

I recently did a new install of VSCode and SFDX CLI on a new Macbook. So versions are recent. I have updated SFDX since this error but it still exists. sfdx-cli/7.152.0 darwin-x64 node-v16.15.0 What ...
user avatar
1 vote
1 answer
31 views

SFDX Push Error - You cannot add a master-detail relationship to a managed custom object

We have been developing a managed package which we are using 2GP and scratch orgs to build. This past sprint I had no issues pulling from github, pushing to scratch and proceeding with development. ...
user avatar
  • 317
0 votes
1 answer
70 views

Unlocked Package with Dependency in a different folder

In the past I was able to have a base package with its repo in one folder and then in a completely separate folder the app package with its repo. The sfdx force:source:push command would push the ...
user avatar
0 votes
2 answers
79 views

How can I update my Github Actions CI script to install sfdx?

I used to have a script wget https://developer.salesforce.com/media/salesforce-cli/sfdx-linux-amd64.tar.xz mkdir sfdx-cli tar xJf sfdx-linux-amd64.tar.xz -C sfdx-cli --strip-...
user avatar
  • 13.4k
3 votes
2 answers
282 views

Deploying with sfdx but no component is deployed with no errors

My actual problem is that I am trying to deploy my package with sfdx using following command : //to create a folder of only the specified element of the package.xml sfdx force:source:convert -x ...
user avatar
  • 2,413
0 votes
0 answers
62 views

ERROR running force:package:version:create: Expected file at path:

When the following command is ran sfdx force:package:version:create -v pbo -p "Accrue" -x --path force-app/main/default -f config/project-scratch-def.json I get this error: ERROR running ...
user avatar
0 votes
1 answer
88 views

Error authenticating with VS code

I tried to authenticate my sandbox by authorize an org command and ended up with this error.
user avatar
0 votes
1 answer
140 views

Can't deploy global value set using SFDX?

I've been trying to deploy one single global value set to a test scratch org as I get comfortable with SFDX but I cannot seem to get it to work. This is the command I'm using: sfdx force:source:deploy ...
user avatar
0 votes
1 answer
22 views

SFDX Package Version List command returns 431 Error

When I execute the command sfdx force:package:version:list I receive a message <h1>Bad Message 431</h1><pre>reason: Request Header Fields Too Large</pre> I don't understand why ...
user avatar
  • 13.4k
2 votes
1 answer
128 views

Help with SFDX 2GP release version error: "You cannot install an unlocked package without a namespace into an org with a namespace."

I am trying to release an Unlocked 2GP package that has an Unlocked package dependency (UnofficialSF component), and when SF servers verify the dependencies I get the same error every time: Error: You ...
user avatar
2 votes
0 answers
208 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 ...
user avatar
  • 21
0 votes
0 answers
38 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:...
user avatar
  • 4,799
0 votes
0 answers
139 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 ...
user avatar
  • 21
6 votes
1 answer
447 views

package:version:create - No such column 'Id' on entity 'User'

Suddenly our build is failing due to the package:version:create command. The error is really strange since none of our changes look to be related to it. Our CircleCI automation tool is able to push ...
user avatar
  • 63
1 vote
0 answers
136 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 ...
user avatar
  • 4,799
0 votes
1 answer
805 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:...
user avatar
  • 4,799
2 votes
1 answer
127 views

<deprecated>false</deprecated> Where is it documented, Where does it come from?

I notice that the metadata of custom objects (fields, sobjects) that I retrieve from my Dev org using the Org Browser (VS Code) have a <deprecated>false</deprecated> element in them. The ...
user avatar
  • 163
2 votes
1 answer
61 views

listmetadata command returns nothing on 7.129 sfdx version for CustomField

i have os x sfdx version 7.129 (latest) (also linux version) and when i run on all envs we have this command: sfdx force:mdapi:listmetadata -m CustomField -u env1 -a 53.0 --json it return nothing { &...
user avatar
1 vote
0 answers
89 views

.forceIgnore - optional prefix "!" which negates the pattern issue

A team member started having issues when pushing code to new scratch orgs. After performing some investigation I figured that the .forceignore file was not respecting the ! prefix. The .forceignore ...
user avatar
1 vote
0 answers
58 views

SFDX test run failing when output dir provided

When I run sfdx force:apex:test:run --codecoverage --resultformat json, I get a normal output. When I add an output dir sfdx force:apex:test:run --codecoverage --resultformat json --outputdir ./test-...
user avatar
  • 3,615
0 votes
1 answer
272 views

Issue with installing the SFDX CLI in Linux

I had some issues with my SFDX CLI as I was not able to use SFDX commands from the terminal of my VS Code in Linux. So I looked up on the web and as part of one solution that I found on web, I was ...
user avatar
  • 113
0 votes
2 answers
135 views

SFDX commands not able to work in VS Code

SFX command is not able to load or use any one of them and throws the following error Command 'SFDX: Authorize an Org' resulted in an error (command 'sfdx.force.auth.web.login' not found) I tried to ...
user avatar
  • 115
0 votes
0 answers
38 views

Queue Deployments Using DX Requires Setup in UI

I have a queue for new opps that looks like this: <Queue xmlns="http://soap.sforce.com/2006/04/metadata"> <doesSendEmailToMembers>true</doesSendEmailToMembers> <...
user avatar
  • 927
0 votes
1 answer
341 views

sfdx problem on wsl - CMD.EXE was started with the above path as the current directory. UNC paths are not supported

I try try install SFDX on my WSL (Ubuntu 20.04 LTS on WSL with Windows 10). Looks like the version 7.119.2 has been installed, but when referencing sfdx, it doesn't hit the one installed on Linux, it ...
user avatar
  • 31
1 vote
1 answer
3k views

ERROR: We can't query your org. Getting this error after Authorize a Dev Hub

so, I'm pretty new to salesforce development and I got this error while trying to Authorize a Dev Hub, I already enabled the Dev Hub and I couldn't find anything anywhere to solve this error. Also, I ...
user avatar
2 votes
0 answers
369 views

Unable to convert Reports from sfdx sources to metadatas - force:source:convert / force:source:deploy

For some time now, we have issues to deploy items that are defined in folders (Reports, emails, documents...) Problem: Unable to convert Reports from sources to metadata Command: MD_API_TEMP_FOLDER=./...
user avatar
0 votes
2 answers
902 views

SFDX commands not working in VS Code

I use VS Code for my pushing and pulling changes from org and branch and earlier I was able to use the SFDX commands but now I am not able to do so. Now when I try to run any SFDX command in the ...
user avatar
  • 113
0 votes
1 answer
491 views

Push custom object and custom metadata type to scratch

So i retrieved custom metadata type and just custom object from my org via Ant Migration tool. After i createad a sfdx project. created scratch org and used push. It gives me error: 'Must specify a ...
user avatar
1 vote
4 answers
2k views

No AuthInfo found for name always

Is there a way to full reinstall sfdx? How to delete settings? I am creating an sfdx project, auth in org and with retrieve command i am getting No AuthInfo found for name with name of another org ...
user avatar
2 votes
0 answers
53 views

jsconfig.json Problem in a Package Dependency

I have been trying to build (force:package:version:create) a package first-project which depends on an other package other-project of mine. I got the following error: Unexpected file found in package ...
user avatar
  • 163
3 votes
1 answer
1k views

When running sfdx force:apex:test:run we get the error "Your request exceeded the time limit for processing. connection was cancelled here"

We have test classes that we are running from the Salesforce CLI. If we run them from the Salesforce UI, the tests all pass fine. When running the same test classes from the CLI, however, most of the ...
user avatar
  • 631
1 vote
3 answers
409 views

Experiences deployment fails with "Component names can only contain alphanumeric characters, hyphens, colons, and underscores."

trying to migrate a community from one sandbox to another. Using SFDX and VSC. I do have ExperienceBundle enabled in both. When I run this command: sfdx force:source:deploy -p force-app\main\default\...
user avatar
  • 191
5 votes
2 answers
1k views

SFDX Error in macOs Big Sur

Getting this below error with macOs Big Sur. Any help. sfdx --version /usr/local/bin/sfdx: line 44: /usr/local/lib/sfdx/bin/node: Bad CPU type in executable
user avatar
  • 1,155
0 votes
1 answer
122 views

sfdx execute command not executing the apxc file .."File not found at the specified path:" error

i am trying to execute filename.apxc file using sfdx. sfdx force:apex:execute -u dev -f filename.apxc it throwing the error File not found at the specified path:
user avatar
0 votes
1 answer
242 views

How to grant access permission for package in pipeline deployment?

I'm trying to install package through pipelines for Scratch org push & test. I'm using this command in our yml file - sfdx force:package:install --package 04t1Q000000kYu4 -w 10 -u ciorg Here is ...
user avatar
0 votes
1 answer
1k views

sfdx update fails, Error: EPERM: operation not permitted

Went to create a new scratch org, and got a warning: Warning: sfdx-cli update available from 7.102.0 to 7.104.0. The scratch org created without issue, but I figured I may as well update to latest ...
user avatar
1 vote
1 answer
339 views

Unlocked extension package version error "Invalid field name" for report metadata

Scenario: I'm creating an unlocked package that is dependent on 3 other packages: Package A - Managed base package (1st gen managed) Package B - Managed extension package (extension of base, 1st gen ...
user avatar
  • 487
1 vote
5 answers
4k views

SFDX issue: authorized dev sandbox, yet get 'expired access/refresh token' when attempting deploy or retrieve

I recently refreshed my developer sandbox. In VS Code, I ran sfdx force:auth:web:login --setalias aliasName --instanceurl https://test.salesforce.com --setdefaultusername It opened the OAuth window ...
user avatar
  • 3,492
1 vote
0 answers
3k views

VSCode deploy source to org failed to run

Starting today VSCode is giving me an error "SFDX: Deploy Source to Org failed to run". This only happens with 1 org. with every other org I do not have any issues. I don't get any error ...
user avatar
  • 327
1 vote
1 answer
325 views

metadata retrieve operation failed: INVALID_CROSS_REFERENCE_KEY

On executing: sfdx force:mdapi:retrieve -r ./mdapipkg -p ./ProjectComponents.xml I got the error message: metadata retrieve operation failed: INVALID_CROSS_REFERENCE_KEY: No package named The file ...
user avatar
0 votes
0 answers
291 views

Deploy QuickAction using a Flow: impossible?

I have an error while deploying a simple QuickAction using a Flow Definition (generated from a force:source:pull) The flow definition is in the same package so available, but i have an error telling ...
user avatar
1 vote
0 answers
279 views

View LWC Locally / Install LWC dev Mobile Plugin Error

Aim: To preview LWC component locally. Problem : NOT able to install sfdx plugins:install @salesforce/lwc-dev-mobile NPM Version: 7.7.6, NODE Version: v15.13.0, SFDX Version: sfdx-cli/7.92.0-...
user avatar
  • 417
1 vote
0 answers
1k views

SFDX Error While pushing the code to Salesforce Org "Error: connect ETIMEDOUT"

I am getting the below error while either pushing or retrieving the code from Salesforce to VS code and vice versa. I have no proxy nothing in my system. I have also tested on 4 Machines and 3 ...
user avatar