I am trying to import a bibtex file containing 16 records. Whether or not I select "batch import", there is only one record that is actually imported as a node (the first record appearing in the bibtex file). For your information, I have uploaded a pdf version of the bibtex file I am trying to upload.

Comments

rjerome’s picture

StatusFileSize
new19.67 KB

I've converted that pdf back into a text file and tested it on my system and I get 16 entries imported. Attached you will find the file that I used, try it and see if you get the same result.

patrick.legros’s picture

StatusFileSize
new42.21 KB

Thanks a lot for your quick answer. It worked but... when I tried to import another file, I got the same problem. I then deleted the nodes that had been created the first time and tried to import again the file "leniency.bib_.txt" and I got the same problem: only the first record of the file is uploaded and has a node created for it.

I tried with and without "Batch Process", with smaller files, with .bib or .txt extensions, running cron on my server, flushing the caches, etc. and sometimes I get the message that "one node has been created" (see the attached file).

rjerome’s picture

Hmm, very strange. Maybe something funky like running out of memory, or a file formatting issue. What hardware is your server on? Client? Anything interesting is the server logs? PHP error logs?

patrick.legros’s picture

Nothing special. I tried again tonight: i was able to upload one file completely, but when I tried with a second file, I could upload only the first record. Strange indeed.

dizmixen’s picture

Did anyone come up with a solution to this problem? The exact same thing is happening for me: I try to batch import 25 bibtex records and only the first record will import. Thanks!

rjerome’s picture

Chances are the BibTex file is not well formed. If you post it here, I'll take a look.

Ron.

dizmixen’s picture

StatusFileSize
new18.81 KB

Great! I thought it may be an odd character or something out of place but don't know what to look for. Anyway, the file I was trying to import is attached. Thanks!

rjerome’s picture

StatusFileSize
new18.81 KB

I'm guessing that file was created on a MAC? The problem is that PHP sometimes has problems detecting MAC line endings. You have a couple of options... you can convert the file to use UNIX or DOS line ending, or enable "auto_detect_line_endings" on your web server.

I've attached the same file with line endings converted to UNIX format, and it works fine.

Ron.

dizmixen’s picture

Yes, the file was created on a Mac. Thanks so much for your tips. Am trying the file out now, and..... it works! Thanks and cheers!

liam morland’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

This version is no longer maintained. If this issue is still relevant to the Drupal 7 version, please re-open and provide details.