# Reordering Categories Produces Error 422

**URL:** <https://meta.discourse.org/t/reordering-categories-produces-error-422/129948>\
**Category:** Bug\
**Created:** [October 1, 2019, 12:54pm UTC](https://meta.discourse.org/t/reordering-categories-produces-error-422/129948 "2019-10-01T12:54:07Z")\
**Posts on this page:** 1\
**Showing post:** 17

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [January 17, 2020, 9:37pm UTC](https://meta.discourse.org/t/reordering-categories-produces-error-422/129948/17 "2020-01-17T21:37:57Z")

</div>

There is no limit set in the Discourse code for the number of categories that can be reordered. It is not handled by a background job. I think the cause of `422` errors is when the `reorder` code calls `cat.save!`. For example, your issue was with a category that had its “Auto close hours” set to 0. That’s an invalid setting, so saving the category threw an error.

It seems possible that attempting to reorder a huge number of categories could also create errors.

---

_[View the full topic](https://meta.discourse.org/t/reordering-categories-produces-error-422/129948)._
