Hi all,

I'm trying to import posts from a custom CMS in to Drupal.

I have a decent amount of experience with Drupal myself, but have someone else assisting me who knows our old CMS and database much better than me.

Rather that using the main Migrate module, we worked out between the two of us that it would be easier to actually export the old CMS posts in to an XML file that looks like a Wordpress exported XML file.

Overall it has worked, but we've come across a few minor issues:

When importing the file, all of the posts and comments appear to correctly import in to Drupal.

However, it still shows the following error:

An error occurred. Some or all of the import processing has failed.
Please continue to the error page

An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: /batch?id=129&op=do StatusText: Internal Server Error ResponseText:

The error page link, however, simply redirects to the /review page and displays the log of the import:

Imported 0 in 1.7 sec (0/min) - done with 'FCPPPublicationsExportAuthor'
Imported 0 in 1.5 sec (0/min) - done with 'FCPPPublicationsExportCategory'
Imported 0 in 2.2 sec (0/min) - done with 'FCPPPublicationsExportTag'
Imported 540 in 21.8 sec (1488/min) - continuing with 'FCPPPublicationsExportBlogEntry'
Imported 566 in 21.6 sec (1572/min) - continuing with 'FCPPPublicationsExportBlogEntry'
Imported 553 in 21.9 sec (1515/min) - continuing with 'FCPPPublicationsExportBlogEntry'
Imported 521 in 22.5 sec (1388/min) - continuing with 'FCPPPublicationsExportBlogEntry'
Imported 465 in 20.9 sec (1332/min) - continuing with 'FCPPPublicationsExportBlogEntry'
Imported 461 in 21.6 sec (1283/min) - continuing with 'FCPPPublicationsExportBlogEntry'
Imported 449 in 21.5 sec (1252/min) - continuing with 'FCPPPublicationsExportBlogEntry'
Imported 443 in 21.9 sec (1211/min) - continuing with 'FCPPPublicationsExportBlogEntry'
Imported 288 in 15.7 sec (1103/min) - done with 'FCPPPublicationsExportBlogEntry'
Imported 0 in 9.9 sec (0/min) - done with 'FCPPPublicationsExportPage'

Finally, the import is listed, but the status shows still as "Importing".

Rolling back the import fails in this case, and the posts are all/mostly still there - i've been removing them manually.

Thinking that the issue might just be the file was too large, we tried to split the import in to smaller parts.

We split the large file in to 9 smaller files, with no more than 500 posts per file.

Importing those files, we did the import again one by one.

Files 1, 2, 4, 5, 7 and 8 imported fine.

But files 3, 6 and 9 gave the same error.

Then, I tried removing all posts, and doing post 9 again, and it worked fine.

So i wonder if maybe it's not anything to do with something in the specific files, but more to do with something going wrong after a certain number of posts have been imported (explaining why it could be happening every third import).

I have attached one of our "faked" XML files.

If anyone has any idea what could be causing the problem, that would be great.

Thanks,

-Peter

Comments

peteremcc’s picture

Quick sidenote...

When importing the partitioned files.

Part one completes successfully, and displays as Complete.

Part two does the same.

But when importing Part three and receiving the error, the status of all three parts on the /review page switches to incomplete.

mikeryan’s picture

Priority: Major » Normal
Status: Active » Postponed (maintainer needs more info)

There's almost certainly some discrepancy between the format of your file and the format the module expects. There was no attachment on your original post, can you try again?

mikeryan’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)