# Ações em massa \> Definir Categoria resulta em erro

**URL:** <https://meta.discourse.org/t/bulk-actions-set-category-results-in-error/88694>\
**Category:** Product Support\
**Tags:** bulk-actions\
**Created:** [29 Maio , 2018 20:55 UTC](https://meta.discourse.org/t/bulk-actions-set-category-results-in-error/88694 "2018-05-29T20:55:06Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![allu](https://avatars.discourse-cdn.com/v4/letter/a/cdc98d/32.png) [@allu](https://meta.discourse.org/u/allu)\
**Post date:** [31 Maio , 2018 09:26 UTC](https://meta.discourse.org/t/bulk-actions-set-category-results-in-error/88694/4 "2018-05-31T09:26:48Z")

</div>

> [@tehspaceg](#):
>
> there are probably topics with duplicate titles

Indeed, I could also verify this to be true in my case by querying the discourse db. I also tried allowing duplicate titles, like you suggested. Unfortunately, this did not resolve my issue. Nevertheless, yours is a great input, and I am likely to run into this down the line.

> [@codinghorror](#):
>
> You might learn more about the error by going to `/logs`

Thanks for pointing out the obvious to me. Indeed, by looking at the logs (duh), I managed to identify my issue. Being a newbie, and not really knowing my way around discourse (yet), I would like to share how I proceeded. Maybe it will be of some help to others investigating similar problems.

My first issue was, that I wasn’t entirely sure what logs to look at. To find this out, I reproduced my error and then executed this command to find which logs under /var/discourse/shared/standalone/log have changed:

`find /var/discourse/shared/standalone/log -type f -mmin -1 -printf '%TY-%Tm-%Td %TT %p\n' | sort -r`

having then identified that the action was going on in production.log, i then tailed it to find this error:

`ActiveRecord::RecordInvalid (Validation failed: Title is too short (minimum is 15 characters), Title seems unclear, is it a complete sentence?)`

Next, I was interested to learn what my (imported) minimum topic length was. I executed the following query against postgres:

`select min(length(title)) from topics where archetype = 'regular' and length(title) < 15`

surprisingly, i turned out to be 1 (bye bye phpBB, I won’t miss you…) 🙄

Then, I went into Discourse admin, set min topic title length to 1, moved my posts, and then reset to 15.

Problem solved 😀

---

_[View the full topic](https://meta.discourse.org/t/bulk-actions-set-category-results-in-error/88694)._
