Import Issues - Generic XML Format

220 views
Skip to first unread message

BenMc

unread,
Dec 7, 2011, 2:51:39 PM12/7/11
to Disqus Developers
I am currently working on migrating comments from two sites into
Disqus. One is small (less than 10,000 comments) and the other had in
excess of 1.5 million. The migration is from what at best could be
called a 'home grown' comment system - very basic, but not really
conforming to generally accepted standards.

As a result, we are exporting comments to Generic XML format for
manual import into Disqus. I have been testing these imports for
several weeks in test Disqus sites and had thought that I had worked
out all the bugs. I have probably imported in excess of 500,000
comments with relatively few issues.

Today I was to finally launch the production version of the comments
into a new production site. Today every import file I submit returns
a long list of the same error "Unable to find parent post" - there is
no detail beyond that.

My XML format has not changed, we do not support nested comments, I
have compared XML to previous successful imports and they match
exactly.

Disqus Support says they are investigating, but no real answers.

The same comments have been imported multiple times in different
sites, so I am wondering if this has become an issue.

Any feedback, opinions or suggestions welcomed.

Thank you.

David Cramer

unread,
Dec 7, 2011, 2:53:33 PM12/7/11
to disqu...@googlegroups.com
Real quick (and feel free to email me directly), what are you passing as the "parent" value (if any) in the comments?

We made a change recently address a race condition with children being imported before parents (and thus messing up the tree), which
could have affected this.

BenMc

unread,
Dec 7, 2011, 3:02:58 PM12/7/11
to Disqus Developers
Since our comments do not support parents - we have been sending that
value as:

<wp:comment_parent />

BenMc

unread,
Dec 16, 2011, 11:16:48 AM12/16/11
to Disqus Developers
Resolution:

As advised by David Cramer [who went far out of his way to assist me],
I removed the <wp:comment_parent /> from the XML and my data flew
through the import process.

I am not sure if other NULL fields should be treated in the same way,
but mine worked.

Thank you David.

Reply all
Reply to author
Forward
0 new messages