Questions tagged [sfdx-error]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
26 views

sfdx cli - Unable to create scratch org | Error authenticating with JWT- invalid assertion

we are having some issue starting today (22 Nov) Everything was working till date. Starting today morning we are unable to create new scratch org. sfdx CLI command we run sfdx force:org:create -f ...
Sagar Thoriya's user avatar
0 votes
1 answer
37 views

Unable to retrieve my managed package zip from my package development org (developer org - devhub)

I am trying to retrieve my managed package zip from my package development org (developer org - devhub) using the below command sfdx force:mdapi:retrieve -u myDevHubUser -p MyPackageName -r ~/Desktop ...
Arif's user avatar
  • 72
2 votes
1 answer
422 views

Test class in managed package is failing with Internal Salesforce Error: 415122577-6508 (-1655455180) (-1655455180)

When Managed package metadata is deployed to a scratch org and tests are run by automated pipeline, one of the test method in a test class is failing with following error "Internal Salesforce ...
Vasudev Pai's user avatar
6 votes
2 answers
798 views

sfdx push Error - Custom Index - property 'booleanIndexedValue' not valid in version 56.0

When we try to push our existing code into the scratch org we are getting below error, =============================================================================== ──────────────────────────────────...
Sagar Thoriya's user avatar
1 vote
1 answer
46 views

Creating package version results in XYZ not available in this organization

In trying ot create a 2nd-generation managed package, I created a scratch org, added a custom meta data type, and tried to run the following to create a package version using the following: sf package ...
user1702965's user avatar
0 votes
0 answers
80 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
1 answer
70 views

Cant downgrade SFDX to previous version 7.181.1 for scratch org script created by team

I need to downgrade to this version(7.181.1) as the whole team uses it for a scratch org script. I've tried using the most previous one I can find 7.199.2 and the most recent 7.209.6. Either one will ...
JEbert's user avatar
  • 11
0 votes
0 answers
135 views

Why is the sfdx force:source:retrieve command not retrieving any field permissions?

I'm trying to retrieve field permissions for a specific profile, but when I run sfdx force:source:retrieve -m Profile:Admin I get no <fieldPermissions> in the profile xml file. My package.xml ...
erikvm's user avatar
  • 721
10 votes
3 answers
3k views

SFDX: exports.getOrgApiVersion is not a function

I am trying to retrieve source from org using SFDX and VSC. When I run the command I get an error: 18:51:03.608 Starting SFDX: Retrieve Source from Org exports.getOrgApiVersion is not a function ...
Maciej Zadworny's user avatar
0 votes
1 answer
226 views

Error while promoting 2G package

I am facing this below error while promoting 2g package Error (1): The code coverage required to promote this version has not been met. Please add additional test coverage and ensure the code ...
SF Dev's user avatar
  • 13
0 votes
0 answers
50 views

unpackagedMetadata setting in sfdx-project.json not being respected

I am using : My sfdx-project.json: "packageDirectories": [ { "path": "source", "default": true, "package": "complaints&...
Strong Like Bull's user avatar
-1 votes
1 answer
310 views

Salesforce Org Autorize Error

Hi guys I have a problem with authorize to my Sandbox, I used this command to authorize "login --setalias "MyOrg" --instanceurl "MyOrgUrl" --setdefaultusername" and ...
Nikita Ershov's user avatar
0 votes
1 answer
497 views

sfdx force:source:push -u globalschema --ignore warnings --forceoverwrite

I am used to using this command: sfdx force:source:push -u globalschema --ignore warnings --forceoverwrite Now I am getting this error Warning: We plan to deprecate this command in the future. Try ...
sdfxconfuseduser's user avatar
-1 votes
1 answer
193 views

How can I store SGD delta package with bitbucket pipeline

I'm using SGD for my salesforce deployment using Bitbucket pipeline. sfdx sgd:source:delta --to HEAD --from HEAD^ It is working however I want to store/see content(package) of metadata to be deployed. ...
Akshay's user avatar
  • 1
4 votes
1 answer
2k 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 ...
SEuser's user avatar
  • 1,835
0 votes
3 answers
3k 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 ...
Peter He's user avatar
0 votes
0 answers
29 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 ...
Mark's user avatar
  • 9
2 votes
1 answer
531 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 ...
Patlatus's user avatar
  • 16k
1 vote
0 answers
81 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:...
vanessen's user avatar
  • 2,555
0 votes
0 answers
315 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 ...
beppe95's user avatar
  • 23
0 votes
1 answer
376 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
Rohit Kumar's user avatar
0 votes
1 answer
2k 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 ...
ebanster's user avatar
  • 103
0 votes
0 answers
880 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 ...
SanJay's user avatar
  • 11
1 vote
1 answer
75 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 ...
Matheus Coelho Campos's user avatar
15 votes
7 answers
20k 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 ...
user135792's user avatar
1 vote
1 answer
403 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 ...
Maverick's user avatar
0 votes
0 answers
2k 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 --...
Ishaan Jain's user avatar
3 votes
3 answers
4k 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 ...
Naveen's user avatar
  • 65
0 votes
1 answer
128 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
4 votes
0 answers
318 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" ...
Rodrigo's user avatar
  • 1,245
0 votes
1 answer
164 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....
SanJay's user avatar
  • 11
0 votes
1 answer
154 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":&...
Kacper A's user avatar
3 votes
2 answers
2k 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 ...
chanpelayo's user avatar
1 vote
1 answer
662 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 ...
Swapnil Shrishrimal's user avatar
3 votes
1 answer
227 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: ...
Michal V's user avatar
  • 143
0 votes
2 answers
829 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 ...
oldgunner's user avatar
1 vote
2 answers
2k 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 ...
Esteban Segura Benavides's user avatar
1 vote
1 answer
867 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 ...
TheArchitecta's user avatar
1 vote
1 answer
187 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. ...
Rory's user avatar
  • 389
0 votes
1 answer
376 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 ...
Avalanchd's user avatar
0 votes
2 answers
340 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-...
Patlatus's user avatar
  • 16k
3 votes
2 answers
978 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 ...
vanessen's user avatar
  • 2,555
0 votes
1 answer
365 views

Error authenticating with VS code

I tried to authenticate my sandbox by authorize an org command and ended up with this error.
SF Learner's user avatar
2 votes
1 answer
847 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 ...
Hans Donkersloot's user avatar
0 votes
1 answer
55 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 ...
Patlatus's user avatar
  • 16k
2 votes
2 answers
597 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 ...
Matt Martin's user avatar
2 votes
0 answers
607 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 ...
C C's user avatar
  • 21
0 votes
0 answers
213 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:...
Itai Shmida's user avatar
  • 4,995
0 votes
0 answers
158 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 ...
C C's user avatar
  • 21
6 votes
1 answer
800 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 ...
M.C's user avatar
  • 63