# Rake posts:reorder\_posts gives \`UniqueViolation\` error

**URL:** https://meta.discourse.org/t/rake-posts-reorder-posts-gives-uniqueviolation-error/254098
**Category:** Bug
**Tags:** fixed
**Created:** [February 5, 2023, 10:59am UTC](https://meta.discourse.org/t/rake-posts-reorder-posts-gives-uniqueviolation-error/254098 "2023-02-05T10:59:35Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [August 28, 2024, 9:44pm UTC](https://meta.discourse.org/t/rake-posts-reorder-posts-gives-uniqueviolation-error/254098/3 "2024-08-28T21:44:26Z")

</div>

> [@Julien\_Palard](#):
>
> Intrestingly I don’t see any post numbered 93 in the topic. I see 92 and 94. User 1 is me, but post 92 and 94 are not by me.

I think this isn’t possible. The post\_number would be recalculated if a post was split from the topic (as it’s not a post\_id but the order of the posts in the topic). It could be a small action post that doesn’t look like a ‘real’ post but still counts as one (whispers would also count, but if you’re looking at running rake tasks then I’m assuming you’re an admin who can see them).

I wonder if deleting the small action post would have helped in this situation? Does this sound like it could be the issue for you @UndecidedAdmin?

---

_[View the full topic](https://meta.discourse.org/t/rake-posts-reorder-posts-gives-uniqueviolation-error/254098)._
