Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs

Questions tagged [scratch-org]

A scratch org is an org type that is meant to be temporary, built from source, used for development or testing, then destroyed when done. Scratch orgs are managed using the Salesforce DX command line.

Filter by
Sorted by
Tagged with
1 vote
2 answers
23 views

Namespace issue in LWC component in Scratch Org

I have created a namespaced scratch org from a DevHub org. I can see the namespace prefix for fields, objects and apex in the scratch org. We have few LWC component as well in the package where I need ...
Manoj Verma's user avatar
0 votes
0 answers
16 views

The scratch org is not ready yet (Status = New)

After running the command: sfdx org create scratch -duration-days 30 --wait 30 --username [email protected] the connection times out after a while and the following error is printed: The scratch ...
dev4life's user avatar
  • 510
1 vote
1 answer
58 views

Second Dev Org for 1st Gen Package Developement

Having recently joined an ISV with an old 1GP, I want to make some significant improvements to the code. (We are planning a new 2GP, but not just yet). Making major changes in our single Partner Dev ...
cyberspy's user avatar
  • 210
1 vote
0 answers
38 views

Why namespace prefix is not required while subscribing to platform event from LWC in a namespaced sсratch org?

I’m working on a managed package. While testing a beta version in a sandbox, I’ve noticed that my LWC failed to subscribe to a platform event. The reason was that I didn’t specify the namespace prefix ...
Duck The Developer's user avatar
1 vote
1 answer
52 views

Scratch Orgs with Account Engagement (Pardot) package basic setup, advice needed

I'm looking to setup Scratch Orgs on the project that is using Pardot. But currently struggling with setup. I used Prod org shape as a baseline and then tried to install Account Engagement Managed ...
ytiq's user avatar
  • 4,545
0 votes
1 answer
43 views

Gack id -2018116553 for embedded service messaging deployment on a scratch org

The following error happens when we try to create embedded service messaging deployment on a scratch org An internal server error has occurred Error ID: 1163693033-53404 (-2018116553) Why does it ...
Patlatus's user avatar
  • 17.1k
0 votes
0 answers
50 views

Enable the Improved Setup User Interface in scratch org automatically

When attempting to modify Language and TimeZone settings through Personal Settings, I encounter the 'Insufficient Privileges' error, even though I am logged in as a user with the System Administrator ...
vctqs1's user avatar
  • 75
0 votes
0 answers
30 views

LightningConsole Permset License in Scratch Org

Does anybody know how to enable the LightningConsole Permset License in Scratch orgs? I've added LightningSalesConsole and LightningServiceConsole to features in the scratch org def file but it didn't ...
Saulo's user avatar
  • 957
0 votes
1 answer
148 views

Scratch org doesn't recognize my managed package

I've built a 2nd generation managed package in a scratch org. All worked well but then when my scratch org expired and I spun up a new one, after uploading all my components to it again, I get ...
user1702965's user avatar
0 votes
0 answers
61 views

Unable to use the ApexZipSupport feature using scratch org

Since we are in the preview window time period, we are able to create and check the FormulaEvalInApex functionality by creating a preview scratch org with only FormulaEvalInApex feature enabled. But ...
S1th's user avatar
  • 143
2 votes
1 answer
245 views

How to enable the FormulaEvalInApex and ApexZipSupport Feature in the Created Scratch Org

We thought of checking the functionality of FormulaEvalInApex and ApexZipSupport which are mentioned in the IdeaExchange Spring 24 Release. These features are noted as Developer Preview. So we created ...
S1th's user avatar
  • 143
0 votes
0 answers
43 views

How to enable DataPipeline by scratch org definition file?

I need to enable Data Pipelines in my Scratch Org automatically during creation. I couldn't find any option in documentation. Is there any option to autoenable it?
Gonderson324's user avatar
0 votes
0 answers
274 views

Issue deploying Sharing Rules via SFDX

I am trying to deploy metadata into a scratch org from source control. The deployment is succeeding without any errors, but only Account sharing rules are deployed. Sharing rules for custom objects ...
jfraser's user avatar
0 votes
0 answers
98 views

Scratch Org Error while Creating

Can't create scratch org from org shape: The org shape version is outdated. Recreate the org shape and try again
Satyam 's user avatar
0 votes
0 answers
41 views

Definition of a project-scratch-def for E&U features (Cloud, Self-Service Portal & Sales Digital)

I'm trying to generate a proper scratch org with the following definition. So far I have not been able to make it work, does somebody already experienced this error ? "orgName": "...
Alexandre S's user avatar
1 vote
1 answer
98 views

"connectedStatus" in `sf org list` command contains HTML page markup

I ran sf org list command in console and saw CLI just dump a ton of invisible symbols, making terminal unusable. I then tried json output and saw that for scratch orgs I got a huge output with HTML ...
snooopcatt's user avatar
0 votes
1 answer
72 views

Cannot deploy project due to missing type

I am currently trying to deploy my project, but are getting some errors which I am unsure how I should navigate. Error WebCart Invalid fullName, must end in a custom suffix (e.g. __c) It is ...
I am not Fat's user avatar
0 votes
1 answer
113 views

How to configure sfdx-project file to create proper build scratch orgs for a managed 2GP with custom object/fields?

I have a managed 2GP package. It has custom objects. The whole project is in SFDX format and stays in a single folder force-app/main/default. when running the tests on the Dev Hub - all works well, ...
Искрен Станиславов's user avatar
3 votes
0 answers
445 views

Manage permissions "The list view you requested was deleted, or you don't have permission to view it."

I'm using a Scratch org and trying to assign a Permission Set to a User. I go to "Setup" > "Permission Set" > Select a permission set > "Manage Assignments" > ...
Alberto's user avatar
  • 61
0 votes
0 answers
57 views

Need Help Speeding Up Package Installations in GitHub Actions

Hey Salesforce Community, We're facing a challenge with our GitHub Actions CI setup, and we could use your insights to make it snappier. Background: We recently updated to the latest Salesforce CLI ...
Jesus Martinez's user avatar
3 votes
1 answer
196 views

Do scratch orgs have weird behaviors with connected apps? Being given "Invalid_grant" with "user hasn't approved this consumer"

I have created a scratch org and installed a connected app to it. I've set the policy to "Admin Approved users are pre-authorized". I've given the connected app access to a permission set ...
Kiet T's user avatar
  • 31
2 votes
1 answer
165 views

Custom domains aren't allowed in scratch orgs

I am currently working ISV project which helps Salesforce Customer in the issuance and renewal of CA Signed Certificates, be it with Let's Encrypt or any ACME-compliant CA. Standard flow of issuance ...
Gael Motte's user avatar
0 votes
2 answers
574 views

Scratch org created but CLI errored - Error authenticating - can't access scratch org

Last week I created a scratch org with no problems. Today I tried creating a new one with: sfdx auth:web:login to my dev hub account and sfdx force org create -f config/project-scratch-def.json -a ...
gkri's user avatar
  • 111
0 votes
1 answer
277 views

Deploying CRM Analytics Components to Scratch Org Fails

We have developed CRM Analytics components in a developer org on which SF Support enabled CRM Analytics licenses for us. The long term goal is to package these components and the first step is to be ...
Tom Hoban's user avatar
0 votes
0 answers
53 views

Error creating scratch org in Azure Pipeline

I'm stuck in the same error for a long time. I have a template pipeline that creates a scratch org and do more things. I have another pipeline that uses the template and passes it some parameters: ...
ximo12's user avatar
  • 1
0 votes
1 answer
2k views

Error (1): The requested resource does not exist Faced, While creating 2nd generation Managed Package

I am trying to create a second generation beta managed package for learning purpose. Firstly I have created a namespace org where namespace is present. After that I have created a dev hub org in which ...
Parvez Alam's user avatar
1 vote
2 answers
457 views

Multicurrency cannot be enabled in scratch org

Due to summer '23 release, it is now not possible to specify Multicurrency as a feature in the scratch org definition file. Therefore, it has to be enabled under settings: "settings": { &...
mathias9395's user avatar
2 votes
2 answers
441 views

Summer '23 scratch org won't load

After the dev hub was upgraded to summer '23 then new scratch orgs won't open. The scratch org just shows a blank white screen and nothing will load. Has anyone had a similar problem or know how to ...
mathias9395's user avatar
0 votes
0 answers
36 views

Obtaining Flow ID from a Bash script

I need assistance with my Bash script for creating a link to a flow in Flow Builder that I want to open. I am encountering an issue where I am getting a null value from the $response variable. I would ...
elvi's user avatar
  • 1
0 votes
0 answers
68 views

Reset 'Salesforce for Slack App' from deleted scratch org

I encountered an issue while testing the 'Salesforce for Slack App' with my scratch org. After deleting the scratch org using the sfdx command, I'm unable to establish a connection between the ...
Mamed Mamedov's user avatar
1 vote
0 answers
219 views

OrgShape for unlocked packages with encrypted fields

OrgShape is a brilliant concept and useful in many ways especially for larger orgs. Unfortunately, creating unlocked packages fails when a repo has encrypted fields. It also fails while creating ...
Neel's user avatar
  • 11
1 vote
1 answer
145 views

Why would SFDX interpret Customfields as EmailServicesFunctions (project deploy preview on a scratch org)?

I created a scratch org, and I plan to deploy a basic schema to it. Being rather new to sfdx, I first run a sfdx project deploy preview, and the cli outputs me the weirdest thing: it seems to ...
Werlin's user avatar
  • 13
1 vote
2 answers
206 views

Map and Location Settings fails to deploy to scratch org

When attempting to create a scratch org with Map Settings turned on, I get the following error: "The object 'MapAndLocation' of type Settings metadata does not exist." However, the scratch ...
Rob Davis's user avatar
  • 166
1 vote
0 answers
227 views

Tests pass in scratch org, fail in package creation

I've written the following super simple Apex class and some tests for it (attached below): public with sharing class BuyerStatusFetcher { @AuraEnabled(cacheable=true) public static List<...
Alberto's user avatar
  • 61
0 votes
1 answer
59 views

Package version creation results in field integrity exception (Case access level below organization default)

I am trying to create a package version. My dev hub has the following for case: Running a query under dev console gives me: When I try to create a package version, I get : Practice_Assignment_Team: ...
Strong Like Bull's user avatar
2 votes
1 answer
167 views

Scratch orgs are created with Russian language for Ukrainian and other Eastern European Dev Hubs even if Dev Hub language is English

Why scratch orgs are created with Russian language for Ukrainian and other Eastern European Dev Hubs even if Dev Hub language is English? This happens for Ukrainian, Lithuanian and other Eastern ...
Patlatus's user avatar
  • 17.1k
1 vote
0 answers
138 views

Generate a Scratch Org Definition File from an Org Shape?

Is is possible to generate a scratch org definition file from an org shape? Org Shape is still buggy. I'm running into this known issue with Experience Cloud sites. It would be nice if I could use a ...
Mark Hansen's user avatar
1 vote
1 answer
52 views

Scratch org has no Rollup Summary Limit for Case

Received an error when trying to create a scratch org that we have exceeded the limit of 25 rollup summary fields for Case. We have 31 such fields but Salesforce bumped us up to 35 some time ago. This ...
bullcitydave's user avatar
1 vote
1 answer
528 views

Strategies to successfully create scratch orgs

Have noticed it can be very difficult to successfully create scratch orgs. Wondering if something I am doing is contributing that. Sometimes it works. Sometimes it doesn't. I have tried both of these ...
nstuyvesant's user avatar
0 votes
1 answer
130 views

Can we create a user in scratch and get its SFDX Auth URL in CI or change email of the default user?

We have a CI script which build a new beta package version out of the source code in SFDX format and when the package version is built, the new scratch org is created so that a previous release ...
Patlatus's user avatar
  • 17.1k
3 votes
1 answer
505 views

What does the error code "VR-0002" mean when creating a scratch org?

Been getting this error when creating a scratch org: The request to create a scratch org failed with error code: VR-0002. The definition file is quite simple, so I don't know what might be causing ...
Renato Oliveira's user avatar
4 votes
1 answer
211 views

Create professional edition scratch org

I need to check Managed Package Beta Version on a Professional Edition Org. I am trying to make a Professional Edition Scratch org for it. But every time I get the same error: "The request to ...
Konstantin's user avatar
2 votes
1 answer
105 views

Partitioned domain for scratch orgs suddenly rolled back

On October 2022, our instance (DevHub) was upgraded such as that new scratch orgs were created using partitioned domains. We then adjusted all our internal mappings to include the extra .scratch on ...
imTachu's user avatar
  • 213
0 votes
0 answers
86 views

Reduce Creation Time: NebulaLogger in a Scratch Org during CI

We want to use NebulaLogger. We also have a CI job that creates a scratch org on a new Pull Request. Technically everything works fine. The only issue is the time it takes to create a scratch org ~40 ...
Eduard's user avatar
  • 5,149
1 vote
1 answer
453 views

What is maximum value of -w (wait) parameter of sf org scratch create command?

What is maximum value of -w (wait) parameter of sf org scratch create command? We need the max value for wait attribute in org scratch creation command to avoid the error which we receive often Org ...
Patlatus's user avatar
  • 17.1k
0 votes
1 answer
83 views

Specify Change Data Capture Entities in Scratch Org Definition

Is it possible to enable and configure change Data Capture for specific entities in a scratch org definition file? I know that you can add "ChangeDataCapture" to the list of features, but I ...
aaron's user avatar
  • 855
1 vote
1 answer
241 views

SFDX Org Creation command fails with strange error `DomainNotFound` `The org cannot be found`

I have a command in the CI to create a scratch org sfdx force:org:create -f config/project-scratch-def.json -a scratch-org -s -d 1 -u Prod --json Whether I execute it through the CI or manually, I ...
Patlatus's user avatar
  • 17.1k
1 vote
1 answer
621 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
1 vote
0 answers
259 views

Scratch Org: Digital Experience Home Page is Blank - Salesforce CMS Setup

I am having issues trying to setup Salesforce CMS within a scratch org. My project-scratch-def.json: { "orgName": "sfdx-org-name", "edition": "Developer", ...
lu_ke____'s user avatar
  • 433
0 votes
0 answers
849 views

Scratch-Org from Sandbox

Is there a way to create scratch-orgs from Sandboxes rather from production org? Basically treat a sandbox as Dev-Hub. Devs cannot have access to production Trying to solve the problem around ...
KLab's user avatar
  • 177

1
2 3 4 5
10