# InvalidTextRepresentation: ERROR when trying to upgrade

**URL:** https://meta.discourse.org/t/invalidtextrepresentation-error-when-trying-to-upgrade/113592
**Category:** Support
**Created:** [April 5, 2019, 11:56pm UTC](https://meta.discourse.org/t/invalidtextrepresentation-error-when-trying-to-upgrade/113592 "2019-04-05T23:56:09Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [April 7, 2019, 12:40am UTC](https://meta.discourse.org/t/invalidtextrepresentation-error-when-trying-to-upgrade/113592/6 "2019-04-07T00:40:18Z")

</div>

It looks like your old queued posts had a string for a category (name perhaps?) instead of an id. This patch handles that case. I’ve backported it to beta, so updating should fix your instance.

I’m not sure why I didn’t see this is any of the test databases I ran it on.

[https://github.com/discourse/discourse/commit/13c6bf54d0d08363ac36b0755a7a26386b6768e6](https://github.com/discourse/discourse/commit/13c6bf54d0d08363ac36b0755a7a26386b6768e6)

---

_[View the full topic](https://meta.discourse.org/t/invalidtextrepresentation-error-when-trying-to-upgrade/113592)._
