7

I run the following command

sfdx force:package:version:create -p SFExtension -d force-app -k xxxx --wait 10 -v DevHub

and with my 6th (5 finished successfully) execution I get this error:

ERROR:  The package2 version create request failed because this organization has reached its daily limit.

What limit does block me here? Can I really only build a package 5 times a day?

...this is really frustrating :(

3 Answers 3

11

You can query the limits by the following command:

sfdx force:limits:api:display

Run this against your dev hub org, and you'll see a line like this:

NAME                                   REMAINING  MAXIMUM
─────────────────────────────────────  ─────────  ─────────
...
PackageVersionCreates                  50         50

This is the daily limit for the entire org. If you've run out, you'll have to wait until tomorrow.

The limits are different for different types of orgs, so you'll need to check your org's limits.

Edit:

I couldn't find the chart that I've seen before, but it does seem like Developer Edition is limited to 6 packages/day, Enterprise should be 50/day, and Performance/Unlimited should be 200/day.

A developer edition is really not intended to be a real hub, just more of a learning/design/package container. Your dev hub org should be a real (i.e. paid) org.

3
  • many thanks for this, I placed a follow up question, maybe you could help me on this too: salesforce.stackexchange.com/questions/243958/…
    – domi
    Dec 18, 2018 at 8:59
  • @sfdcfox Is this actually a daily limit? Wouldn't the name start by Daily.... like other limits? (DailyScratchOrgs, DailyStreamingApiEvents, DailyWorkflowEmails)? Would you have some official documentation somewhere ?
    – brovasi
    Apr 14, 2020 at 6:02
  • 1
    @CloudNinja This answer is old. Here's the relevant quote (here): The maximum number of unlocked package versions that you can create from a Dev Hub per day is the same as your daily scratch org allocation. To request a limit increase, contact Salesforce Customer Support.
    – sfdcfox
    Apr 14, 2020 at 6:12
8

Since spring 20 its possible create a package without validation and the limits are 500 versions

500 versions

Link

5

Two additional remarks to the answers already given, as I stumbled across them myself:

  1. API limits do not reset at midnight because they are count in a rolling 24 hour period.
  2. The --skipvalidation parameter does not work for org-dependent unlocked packages. It causes the following error: "Can’t create package version. You can’t specify skip validation on an org-dependent unlocked package. Try creating the package version without specifying skip validation."

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .