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.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | budge_wilson_full.txt | 18.81 KB | rjerome |
| #7 | budge_wilson_full.txt | 18.81 KB | dizmixen |
| #2 | Capture.png | 42.21 KB | patrick.legros |
| #1 | leniency.bib_.txt | 19.67 KB | rjerome |
| leniency.pdf | 42.39 KB | patrick.legros |
Comments
Comment #1
rjerome commentedI'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.
Comment #2
patrick.legros commentedThanks 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).
Comment #3
rjerome commentedHmm, 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?
Comment #4
patrick.legros commentedNothing 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.
Comment #5
dizmixen commentedDid 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!
Comment #6
rjerome commentedChances are the BibTex file is not well formed. If you post it here, I'll take a look.
Ron.
Comment #7
dizmixen commentedGreat! 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!
Comment #8
rjerome commentedI'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.
Comment #9
dizmixen commentedYes, 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!
Comment #10
liam morlandThis version is no longer maintained. If this issue is still relevant to the Drupal 7 version, please re-open and provide details.