Questions tagged [sfdx-error]
The sfdx-error tag has no usage guidance.
66
questions
0
votes
0
answers
27
views
SFDX create package version throws plugin packaging error
I am trying to create a package version using sfdx command -
sfdx package create -n secondPackageRety -d "Second package retry" -r secondPackage -t Unlocked
Now, it throws an error
...
0
votes
3
answers
86
views
org browser in vs code not working
After authorizing the sandbox in vs code, it tells me it failed. However, the org is connected successfully.
I can retrieve the file from or deploy the file to the org directly in the file. it is ...
0
votes
0
answers
21
views
Managing Salesforce Unique ID Between Orgs Using sfdx
I am setting up a new salesforce org set (Prod, QA (sandbox), Dev (Sandbox)) and would like to use the package management approach with source control to track and move changes between the ...
2
votes
1
answer
164
views
SFDX CLI: apex tests execution is failing with Time out error. Increasing wait parameter doesn't help
I am executing a SFDX CLI command to run apex tests
sfdx force:apex:test:run -l RunLocalTests --loglevel=trace -y -c -r json -d ./tests/apex -w 20
but it fails with a Timeout error. Even when I tried ...
1
vote
0
answers
30
views
Create ContentVersion via CLI generating argument list too long
After generating a report via shell command and I trying to store that file using sfdx into content version in salesforce using below codes :
local html=$( base64 PMDReport.html )
sfdx force:data:...
0
votes
0
answers
66
views
SFDX retrieve source in Manifest from org is missing
I just installed the SF Extension Pack for VSCode.
Everything run smooth until I need to sync and retrieve all metadata from my org.
If I go onto the package.xml file and right click on it, only ...
0
votes
1
answer
107
views
The deployment of the work items into the next stage failed
I am using the salesforce DevOps center at the time of promotion from dev to UAT environment
Admin of Type Profile failed to deploy due to Unknown user permission: CreateWorkBadgeDefinition
0
votes
1
answer
864
views
Error creating a scratch org: This command requires a dev hub org username set either with a flag or by default in the config
When creating a scratch org, I have this issue that works fine running on my local machine but not when I include in our scripts to run in the CI/CD.
ERROR running force:org:create: This command ...
0
votes
0
answers
218
views
Error when validating the deployment 'We couldn't retrieve the design time component information for component'
I am trying to validate Salesforce metadata deployment and getting the following error.
Github actions trigger the deployment validation when a PR is raised.
We couldn't retrieve the design time ...
1
vote
1
answer
66
views
Salesforce Org Shape Error authentication
I'm passsing for this error, when i run the command sfdx force:org:shape:list
ERROR running force:org:shape:list: Error authenticating with the refresh token due to: expired access/refresh token
I ...
14
votes
7
answers
14k
views
Deploy source to org fails with "No authorization information found"
I'm just getting started with developing in VS Code and have been following the steps here.
I was able to authorise my org with the default alias according to the steps here:
The authorised org also ...
1
vote
1
answer
216
views
Getting error when generating unlocked package version
I'm trying to create 2nd gen unlocked package version for a Trigger framework which is custom metadata driven. Every time I try to generate a version i'm getting error that custom fields in metadata ...
0
votes
0
answers
510
views
Bulk insert data in Custom Metadata Type using SFDX cli
I have created a Custom Metadata type in my developer Sandbox.
I want to insert data from csv file using cli in vs code. It is giving me error.
sfdx force:cmdt:record:insert --filepath .\Aperia.csv --...
3
votes
3
answers
2k
views
Error while Authorizing an ORG using VS Code Cannot read properties of undefined (reading 'setContentsFromObject')
Created a New Project in vs code
SFDX- Create Project
SFDX-Authorize Org
when i try to i get error
Cannot read properties of undefined (reading 'setContentsFromObject')
This is most likely not an ...
0
votes
1
answer
76
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 ...
4
votes
0
answers
212
views
ERROR running force:mdapi:deploy: versions.map is not a function
After converting our SFDX project into a mdapi one, we are getting the error below when trying to deploy using the "sfdx force:mdapi:deploy -l RunLocalTests -c -d ./src -u full -w -1" ...
0
votes
1
answer
80
views
SFDX auth failing when running thru github actions
I am trying to configure a simple yaml file for github actions. Below is the YAML contents and also the error which I am getting.
Note: The same auth command works fine if I am running in the terminal....
0
votes
1
answer
90
views
sfdx creates huge log files in $HOME/.sf/sf.log
Deploying using sfdx can create up to remaining storage space logs in single deploy (over 100GB). The whole log file usually consist of one entry repeated as many times as possible:
{"name":&...
3
votes
2
answers
1k
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 ...
1
vote
1
answer
321
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 ...
3
votes
1
answer
186
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:
...
0
votes
2
answers
464
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 ...
1
vote
2
answers
1k
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 ...
1
vote
1
answer
496
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 ...
1
vote
1
answer
69
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. ...
0
votes
1
answer
203
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 ...
0
votes
2
answers
198
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-...
3
votes
2
answers
600
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 ...
0
votes
0
answers
188
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 ...
0
votes
1
answer
233
views
Error authenticating with VS code
I tried to authenticate my sandbox by authorize an org command and ended up with this error.
1
vote
1
answer
549
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 ...
0
votes
1
answer
44
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 ...
2
votes
2
answers
333
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 ...
2
votes
0
answers
376
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 ...
0
votes
0
answers
100
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:...
0
votes
0
answers
151
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 ...
6
votes
1
answer
683
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 ...
1
vote
0
answers
261
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
1
answer
2k
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:...
3
votes
1
answer
282
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 ...
2
votes
1
answer
82
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
{
&...
2
votes
0
answers
134
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 ...
1
vote
0
answers
109
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-...
0
votes
1
answer
478
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 ...
0
votes
2
answers
309
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 ...
0
votes
0
answers
42
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>
<...
0
votes
1
answer
573
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 ...
2
votes
1
answer
8k
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 ...
2
votes
0
answers
637
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=./...
0
votes
2
answers
2k
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 ...