# Changing user settings results in 422 Unprocessable Entity / ActiveRecord::RecordInvalid

**URL:** <https://meta.discourse.org/t/changing-user-settings-results-in-422-unprocessable-entity-activerecord-recordinvalid/36722>\
**Category:** Bug\
**Created:** [14 Diciembre, 2015 23:56 UTC](https://meta.discourse.org/t/changing-user-settings-results-in-422-unprocessable-entity-activerecord-recordinvalid/36722 "2015-12-14T23:56:29Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [15 Diciembre, 2015 01:16 UTC](https://meta.discourse.org/t/changing-user-settings-results-in-422-unprocessable-entity-activerecord-recordinvalid/36722/2 "2015-12-15T01:16:30Z")

</div>

This is not a bug; it’s well known that setting username max and min to strange values will cause strange behavior.

For example, if you set max username length to 3, and your site has hundreds of users with existing usernames .. you’re gonna have a bad time.

I suppose we could add clearer warnings in the help text for this setting, though.

---

_[View the full topic](https://meta.discourse.org/t/changing-user-settings-results-in-422-unprocessable-entity-activerecord-recordinvalid/36722)._
