Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

1
vote
0answers
33 views

Push Queue and create its Users in scratch org

I am trying to create a fresh scratch org and push a source to it through a script. The problem comes with Queues (and probably other sources that reference usernames), they are associated with users ...
0
votes
0answers
18 views

Creating a new Scratch Org error

When I attempt to create a new Scratch Org with Salesforce DX, I receive the following error: "ERROR running force:org:create: A fatal signup error occurred. Please try again. If you still see this ...
0
votes
1answer
29 views

Why ContentAssets Deployment creating “No Network Named” issue?

I am trying to migrate community configurations from one scratch orgs to another. Everything works fine except ContentAsset. I am getting the following error:- PS E:\Projects\xxxxx-build test> ...
3
votes
1answer
83 views

I'm creating a new scratch org - will it be based on Summer '19 (production org edition) or Spring '19 (sandbox edition)?

I can't find the answer to this anywhere quickly - what controls the edition? Production is on Summer '19 while all previous scratch orgs are on the Spring '19. If I create a new scratch org now ...
1
vote
1answer
32 views

Install dependent package when developing managed package in scatch org

When developing a managed (namespaced) package in a scratch org we'd also like to install another package to help fully test it's behaviour. This other package actually requires the one in ...
3
votes
0answers
50 views

Which org best represents the Summer '19 GA orgs?

We have a Summer '19 preview org (https://gs0.salesforce.com) created on 5/31/2019 and a scratch org (https://drive-momentum-6799-dev-ed.cs67.my.salesforce.com) created on 5/30/2019. They differ in ...
0
votes
0answers
21 views

Scratch org processing differential

Does a SalesForce scratch org get the same resources as a sandbox org? Is memory lower, or is processing throttled on a scratch org? I am doing bulk processing and i want to know if there is anything ...
7
votes
1answer
68 views

Scratch org was created with entitlements enabled, but pulling the source results in entity not found?

I created a scratch org with the following definition file: { "orgName": "Company, Inc", "edition": "Enterprise", "features": ["PersonAccounts", "ServiceCloud"], "settings": { "...
0
votes
0answers
30 views

Need to create summer 2019 scratch org [duplicate]

Can someone tell me please how can I create a scratch org that is on the preview list for summer 2019 release? I don't want to wait till June 14. Here is the page with release dates for summer 2019:
0
votes
1answer
33 views

Problem when assigning a record variable to a platform event Message in a flow

I am currently using an organisation with the Summer 19 release update and the API version 46.0 in one of my scratch organisations. I am unable to assign a record variable for stored a Platform Event ...
1
vote
1answer
41 views

Error creating scratch orgs

While creating a scratch org i get the following error. ERROR running force:org:create: Socket timeout occurred while listening for results. Try this: Use command "sfdx force:data:soql:query -q "...
0
votes
0answers
32 views

CSP Whitelisting Not Working in Scratch Org

I'm adding Google's reCAPTCHA element to a Lightning component. Following Google's documentation, I added this JS snippet to the community in my scratch org: <script src="https://www.google.com/...
0
votes
1answer
25 views

Does “Request Trial Capacity” for Platform Cache work in scratch orgs?

I clicked the "Request Trial Capacity" button 20 minutes ago in a scratch org and Get Started with Platform Cache says: Click Request Trial Capacity and wait for the email notifying you that your ...
0
votes
0answers
9 views

Getting email for Flows failure on SFDX scratch org?

We are trying to develop some flows on a Scratch Org, and when some flows fail during unit tests execution we do not get any email with the error details. Can error be retrieved in other ways, or ...
0
votes
2answers
70 views

DevHub and Scratch Org command to open project missing username

I have recently installed VS Code and migrated my projects from Eclipse over to VS Code. I'm getting familiarized with the IDE. I've gotten my projects created and authorized and have successfully ...
2
votes
1answer
23 views

SFDX installing a managed package not deploying CSP trusted sites or remote site settings

I was expecting that upon a package installation when deploying a scratch org that the Remote site settings and/or CSP trusted sites would be deployed, however, this does not seem to be the case. The ...
0
votes
0answers
26 views

“Browsing session has ended or is invalid” when loading Canvas in DX scratch org

I followed this Salesforce tutorial to get a Canvas connection working in a DX scratch org. I'm quite sure I configured everything right but the Canvas on the page always shows Canvas - ...
0
votes
1answer
62 views

SFDX - Push code from production to scratch org

I have been trying to achieve this goal for weeks. The closest I can get is using the following steps: sfdx force:project:create -n myproject cd myproject mkdir temp sfdx force:mdapi:retrieve -s -r ./...
5
votes
2answers
97 views

Can you select what release your scratch orgs are on

Summer preview came out Friday, is there a way to select the release you want. I created a new scratch org and it was set to the version that production is on. Currently, that is Spring '19. I ...
1
vote
1answer
29 views

Trying to connect to someone else's Scratch Org via CumulusCI - does Cci allow this; if so how, if not why?

Background: A dev member in my team has created a feature testing scratch org using SFDX, no CumulusCI (Cci) involved. I, part of QA, am automating the same Salesforce product and need to access this ...
0
votes
0answers
20 views

Create scratch org error: storage limit exceeded

I have an old dev org with dev hub enabled. I'm trying to create the first scratch org for this one but I'm getting the following error: storage limit exceeded I'm creating the scratch org using ...
1
vote
1answer
33 views

Site guest user profile CRUD missing in a new scratch org

I've got a bitbucket pipeline which creates a new scratch org with the following config and then immediately deploys the source into the scratch org. { "orgName": "MyOrg", "edition": "Developer", ...
2
votes
1answer
91 views

Scratch org creation error failures: meaning

I have faced many errors and I don't understand their meanings $ sfdx force:org:create -d 30 -f config/fullDE.json -a FDE ERROR running force:org:create: getaddrinfo ENOTFOUND battlestar-x-wing-...
6
votes
0answers
40 views

Enterprise edition Scratch Org with Customer Community Licenses

Looking to understand whether it is possible to get Customer Community licenses in an Enterprise Edition Scratch Org. Scratch Org definition I tried to use for this was the following: Scratch Org ...
3
votes
1answer
38 views

How to test DX-namespaced package in regular sandbox

While developing managed packages with DX I constantly run into the following problem: My developers use DX scratch orgs and the code uses the namespace we also latter use in the packaging org. My ...
8
votes
1answer
138 views

SFDX: Create unlocked package version - What is happening behind the scene?

When we are creating unlocked package version in 2GP, we don't need to have packaging org at all to deploy code there, upload package etc. (as it was with first generation packaging). So we just ...
1
vote
1answer
104 views

Error In Deploying LWC

I'm trying to deploy my code but when It's not updated in custom components Kindly advice what's the issue and can you advice also the difference between working on scratch orgs and non-scratch orgs ...
3
votes
0answers
59 views

Pushing a Connected App with the SFDX CLI results in “invalid cross reference id”

I'm working towards moving an existing managed package over to the SFDX CLI metadata format. Part of the application is a Connected App which forms a core part of a SSO process to an external system ...
3
votes
2answers
37 views

Get Standard User Profile Id no matter what the users language is

When a (scratch) org is created by a non-english user this query will have no results: [SELECT Id FROM Profile WHERE Name='Standard User'] Instead you have to use a localized name (here in German) [...
1
vote
1answer
57 views

Scratch org created from Bitbucket pipeline has no Standard User profile

To build DX unlocked packages I am using Bitbucket pipelines. I use the Salesforce configuration template for this. image: atlassian/default-image:2 pipelines: default: #These commands run for all ...
1
vote
0answers
67 views

Create a scratch org with a namespace, but without DX project structure

We are trying to use sfdx only to spin up scratch orgs with desired configuration (we have a standalone config file, scratch-org-def.json to feed to force:org:create command). Our project is in old ...
2
votes
0answers
20 views

Scratch Org creation for Non-native clouds (e.g. Financial, Commerce, Marketing Cloud, Pardot,..)

We have developed managed packages for customers that extends Salesforce products that are not fully native like Sales Cloud. I mean products that you have to install in your org like Financial ...
2
votes
2answers
132 views

Unable to deploy metadata from Partner Developer scratch org because of extra fields

As I hoped for higher limits I created my scratch org as a "Partner Developer" org. { "orgName":"myns", "edition":"Partner Developer", "features":[ "CascadeDelete", "DebugApex", "...
8
votes
2answers
541 views

How can I determine if the org that I'm currently connected to is a scratch org?

When I'm within a Salesforce org, how can I tell if that org is a Scratch Org or not? Ideally this would be via Apex, but it could be an API call if required. This would be useful information for ...
2
votes
1answer
155 views

Scratch org: how to retrieve metadata

Scratch org: how to retrieve metadata I am probably missing some concepts, but this are the steps that I have follow to create a new scratch org from a developer edition org. Created a new dev org ...
0
votes
1answer
37 views

sfdx - selective metadata push

A bit of background: Project currently have a need to implement the Salesforce Shield solution in a project, and currently the Enterprise/Unlimited/etc. scratch orgs do not support this feature. The ...
1
vote
1answer
46 views

Unable to create Professional Edition scratch org with AuthorApex

I'm attempting to create a Professional Edition with the AuthorApex feature (full config file below). This fails with the following error ERROR running force:org:create: The REST API is not ...
0
votes
0answers
67 views

Cannot create a scratch org, getting “ERROR: Cannot read property 'HANDSHAKE' of undefined.”

I followed steps in https://trailhead.salesforce.com/content/learn/projects/set-up-your-lightning-web-components-developer-tools/create-a-lightning-web-component : installed CLI, updated VS Code, ...
3
votes
2answers
352 views

Error when running sfdx update to 7.1.3 then sfdx push errors

When I ran sfdx update from 6.56.0 to 7.1.3 I got the error below. And when I run sfdx force:source:push I'm getting the below error. Are these two related? I'm not sure where to start on the second ...
2
votes
2answers
420 views

ERROR running force:source:push: No org configuration found for name

Not sure why this stopped working but all of the sudden sfdx forgot my org configuration. I pulled down the latest changes from the master branch and went to push them into my checked out branch and ...
0
votes
1answer
96 views

SFDX commands to export and import related objects

I have read everything in the documentation on how to export and import data between orgs using SFDX commands. But I am struggling to write a script which serializes all related objects. Here is the ...
1
vote
1answer
258 views

Reason: invalid_grant - expired access/refresh token

I think my access token for my scratch org expired. I'm using sfdx in visual studio code. What's the easiest way to get/fresh my access token?
0
votes
0answers
46 views

SalesforceDX - standard object, custom fields are not being deployed

I currently testing the possibilites of SalesforceDX and found couple of issues with deploying packages from Prod to Scratch orgs. Does anyone have experienced issues with deploying custom fields of ...
4
votes
1answer
133 views

Remove Expired Scratch Orgs From VSCode

Now that DX has been around for a minute and it's almost 2 years since this question was posed from a CLI perspective, I thought it would be worth asking. Is there yet a convenient way to remove ...
0
votes
0answers
37 views

scratch org with knowledge enabled won't accept custom fields when importing json

Given the following scratch org definition file: { "orgName": "ScratchMe", "edition": "Developer", "features": ["Knowledge"], "hasSampleData": "false", "settings": { "...
3
votes
1answer
147 views

Error when doing force:source:pull after creating an Email Template in a scratch org

I created a scratch org with the default scratch org definition file from sfdx force:project:create, and then I created an email template from the Email templates tab, and a Custom Object. When I did ...
1
vote
1answer
41 views

scratch org definition file - middle name enable and external sharing

I am trying to create a new scratch org definition file that will turn on external sharing and enable middle name. However i get error messages and the documentation isn't great once you get down into ...
1
vote
1answer
92 views

Apex class 'SiteLoginController' does not exist (scratch org)

I've created over 40 scratch orgs with the following config, without issues. { "orgName": "MyScratchOrg", "edition": "Developer", "features": ["Communities","PersonAccounts","SiteDotCom","...
2
votes
1answer
97 views

Scratch org push and source convert errors: xmldom error (with force flag only)

Since Winter'19 release my team is getting following errors when pushing our code to the scratch orgs (or converting it to mdapi format): [xmldom error] element parse error: Error: invalid tagName: @...
1
vote
0answers
32 views

At what time in the day does a scratch org expire?

At what point in the day does a scratch org expire? I am working on a scratch org that expires today (3/11) and am still able to log and run commands against it. Should I anticipate being able to ...