# Parent message doesn't exist

**URL:** <https://meta.discourse.org/t/parent-message-doesnt-exist/141746>\
**Category:** Migration\
**Created:** [February 16, 2020, 3:59pm UTC](https://meta.discourse.org/t/parent-message-doesnt-exist/141746 "2020-02-16T15:59:55Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![ruperty](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ruperty/32/164033_2.png) [@ruperty](https://meta.discourse.org/u/ruperty)\
**Post date:** [February 19, 2020, 8:55pm UTC](https://meta.discourse.org/t/parent-message-doesnt-exist/141746/11 "2020-02-19T20:55:30Z")

</div>

Aha!

I imported the [data explorer](https://meta.discourse.org/t/32566?silent=true) plugin and had a look at the discourse database. I found that the import\_id for the parent message was present in the topic\_custom\_field and post\_custom\_field tables. Also, the message did exist.

But, it had been deleted. So, I guess, I was getting the error “parent message does not exist” because the import was looking in the discourse database rather than in index.db. It would’ve been good to get an error message saying the post had been deleted.

Anyway, I think this happened as, during an early test, I had deleted the first(small) batch of imported posts. I thought I had restored to before that point, but clearly not.

The good thing is that this is only applicable to my test server and I shouldn’t have the problem on the import on the live server.

Thanks for the pointers.

---

_[View the full topic](https://meta.discourse.org/t/parent-message-doesnt-exist/141746)._
