function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Pedro Garcia 32Pedro Garcia 32 

sfdx force:org:create error location is not defined

Hi... I got an error when I try to create a Scratch org;

 sfdx force:org:create -f config\project-scratch-def.json --setalias sdev07 --durationdays 7 --setdefaultusername --json --loglevel fatal

error: location is not defined

I can open any other sandbox and DEV HUB.

I appreciate your help

Thanks,
Pedro
Pedro Garcia 32Pedro Garcia 32
my project-scratch-def.json
{
  "orgName": "Demo Company",
  "edition": "Enterprise",
  "features": ["Communities", "ServiceCloud", "Chatbot"]
}
my sfdx-project.json
{
  "packageDirectories": [
    {
      "path": "force-app",
      "default": true
    }
  ],
  "namespace": "",
  "sfdcLoginUrl": "https://login.salesforce.com",
  "sourceApiVersion": "47.0"
}



 
Alicia SalasAlicia Salas

Make sure you have properly authenticated with a Dev Hub org using sfdx force:auth:web:login -d. This sets the default Dev Hub org.
Check that your project-scratch-def.json file has "country" and "timezone" fields defined in the "settings" section. https://www.ehallpass.me/