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
Patr1k03Patr1k03 

storage limit exceeded on creating scratch org

Hello Everyone, 

I am trying to create a scratch org and getting a storage limit exceeded error. I even tried to create it on new developer org but same result. 

Would really appreciate if anyone can help on this.

Thanks in advance!




 
SwethaSwetha (Salesforce Developers) 
HI Patr,
Are you creating a scratch org from Dev org where the storage limit exceeded?
Vishwajeet kumarVishwajeet kumar

Hello,
This error comes up when command : sfdx force:org:create -f project-scratch-def.json -a ScratchOrg --setdefaultusername

is run from Visual Studio Code CLI plugin in Developer edition org. Developer edition org has not exceeded storage or file size limits.

Thanks

mukesh guptamukesh gupta
Hi,

Your problem will solve by this url 

https://jayakrishnasfdc.wordpress.com/2020/09/13/scratch-orgs-and-create-scratch-org-with-visual-studio-code-salesforce-dx/

if you need any assistanse, Please let me know!!

Kindly mark my solution as the best answer if it helps you.

Thanks
Mukesh 
Vishwajeet kumarVishwajeet kumar
Hello,
Question is how to fix this error when it occurs in Developer Edition dev hubs, it works fine in Enterprise/Unlimited edition salesforce orgs dev hub.

Thanks
Vishwajeet kumarVishwajeet kumar

Here is something which works : 

Use simple scratch org definition json file like below :
{
  "orgName": "Demo company",
  "edition": "Developer",
  "features": [],
  "settings": {}
}

seems like issue was due to some features/settings which was defined in json file.