# Max number of workflows per config

**URL:** <https://discuss.circleci.com/t/max-number-of-workflows-per-config/35800>\
**Category:** Build Environment\
**Tags:** circle-yml\
**Created:** [May 5, 2020, 10:32pm UTC](https://discuss.circleci.com/t/max-number-of-workflows-per-config/35800 "2020-05-05T22:32:05Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![kpaul](https://avatars.discourse-cdn.com/v4/letter/k/35a633/32.png) [@kpaul](https://discuss.circleci.com/u/kpaul)\
**Post date:** [May 5, 2020, 10:32pm UTC](https://discuss.circleci.com/t/max-number-of-workflows-per-config/35800/1 "2020-05-05T22:32:05Z")

</div>

I am getting an error when validating the config.yml. The error just started today without any changes to the config file. This is the error  
`ERROR IN CONFIG FILE: [#/workflows] maximum size: [101], found: [222] SCHEMA: maxProperties: 101`

I am not sure why this error started happening and I am curious if this is a new change to the config validation because I have been using the same config file for weeks now without an issue.

---

<div class="post-metadata">

**Author:** ![sulami](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/sulami/32/27472_2.png) [@sulami](https://discuss.circleci.com/u/sulami)\
**Post date:** [May 6, 2020, 9:31am UTC](https://discuss.circleci.com/t/max-number-of-workflows-per-config/35800/2 "2020-05-06T09:31:20Z")

</div>

Hi Kyle,

This is indeed a new change to config validation, we’re sorry for breaking your build. We previously had no upper limit to the number of workflows in 2.1 config (outside of total config size), which was problematic for a number of reasons.

We’re interested in your use-case for this many workflows, so we’d appreciate if you could share more details with us.

Happy building,

Robin

---

<div class="post-metadata">

**Author:** ![pelicanpie](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/pelicanpie/32/24864_2.png) [@pelicanpie](https://discuss.circleci.com/u/pelicanpie)\
**Post date:** [May 6, 2020, 10:12am UTC](https://discuss.circleci.com/t/max-number-of-workflows-per-config/35800/3 "2020-05-06T10:12:06Z")

</div>

Hi we are facing the same issue and we are now blocked from deploying to our production site by an arbitrary validation rule.

Is there a suggested short term workaround for this?  
We have a monorepo with many different services that are being deployed by individual workflows.

Is there a reason this validation was added as immediately blocking? Can it be changed to a warning so we have time to transition?

---

<div class="post-metadata">

**Author:** ![yannCI](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/yannci/32/24866_2.png) [@yannCI](https://discuss.circleci.com/u/yannCI)\
**Post date:** [May 6, 2020, 10:38am UTC](https://discuss.circleci.com/t/max-number-of-workflows-per-config/35800/4 "2020-05-06T10:38:33Z")

</div>

Hi,

We are now temporarily rolling back this change so our customers can keep building, and we can assess the appropriate maximum value.

Apologies for this inconvenience.

-Yann

---

<div class="post-metadata">

**Author:** ![kpaul](https://avatars.discourse-cdn.com/v4/letter/k/35a633/32.png) [@kpaul](https://discuss.circleci.com/u/kpaul)\
**Post date:** [May 6, 2020, 4:30pm UTC](https://discuss.circleci.com/t/max-number-of-workflows-per-config/35800/5 "2020-05-06T16:30:22Z")

</div>

Thank you for the response. The use case we are solving is that we want to execute tests against a number of databases that store data as it moves through the stages of our data platform. There are currently 5 stages, where each stage has 3 environments. There are a number of clients and we want to be able to execute tests for each client, stage, and environment combination. Each of these ends up being a workflow. So we end up with a large number of workflows. We could probably leverage the API to enable more flexibility in triggering builds but we are not yet using it.

---

<div class="post-metadata">

**Author:** ![kpaul](https://avatars.discourse-cdn.com/v4/letter/k/35a633/32.png) [@kpaul](https://discuss.circleci.com/u/kpaul)\
**Post date:** [May 6, 2020, 4:32pm UTC](https://discuss.circleci.com/t/max-number-of-workflows-per-config/35800/6 "2020-05-06T16:32:08Z")

</div>

Thank you! Our builds are working again.

I was having trouble finding any announcement or documentation around the change to the maximum number of allowed workflows. Is there a place where this information can be found? In the future it would be nice to know about such changes that may impact our build system.

---

<div class="post-metadata">

**Author:** ![sulami](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/sulami/32/27472_2.png) [@sulami](https://discuss.circleci.com/u/sulami)\
**Post date:** [May 7, 2020, 7:32am UTC](https://discuss.circleci.com/t/max-number-of-workflows-per-config/35800/7 "2020-05-07T07:32:47Z")

</div>

This sounds like you could make use of [matrix jobs](https://circleci.com/blog/circleci-matrix-jobs/),which we added  
recently.

FWIW we have rolled back the limit in question and are rethinking it  
right now. There is still going to be an upper limit on the number of  
workflows in a pipeline soon.

---

<div class="post-metadata">

**Author:** ![kalpaitch](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/kalpaitch/32/27847_2.png) [@kalpaitch](https://discuss.circleci.com/u/kalpaitch)\
**Post date:** [July 24, 2021, 1:20pm UTC](https://discuss.circleci.com/t/max-number-of-workflows-per-config/35800/8 "2021-07-24T13:20:56Z")

</div>

I’m now getting the error “Max number of workflows exceeded.” but can find no documentation on these limits.

Please let me know where I can find out a) what they are and b) why these are set

Thanks.

---

<div class="post-metadata">

**Author:** ![thekatertot](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/thekatertot/32/25169_2.png) [@thekatertot](https://discuss.circleci.com/u/thekatertot)\
**Post date:** [July 27, 2021, 5:54pm UTC](https://discuss.circleci.com/t/max-number-of-workflows-per-config/35800/9 "2021-07-27T17:54:44Z")

</div>

Hi @kalpaitch! It could be related to setup workflows ([explained in this Support article](https://support.circleci.com/hc/en-us/articles/360060934851--Max-number-of-workflows-exceeded-error)). If not, we might need a little more detail about your config.
