Troubleshooting importing of large bibtex file

I have a relatively large bibtex file (9MB, 7000 entries) that I would like to import. With 1.5. beta 1 the import failed after a while. With 1.5 beta 2, the import does not fail, but seems to go on for ever. I let it run for an hour with debug level 2.

The debug log just lists endlessly

zotero(2): cleanString() is deprecated; use trimInternal() instead

zotero(2): cleanString() is deprecated; use trimInternal() instead

zotero(2): cleanString() is deprecated; use trimInternal() instead

Any suggestions on how to troubleshoot?

Mikko
  • I would first try to import a single entry, make sure that your BibTeX formatting is understood by Zotero. If that fails post that entry here. If it works I would try breaking the big file into smaller chunks, say four chunks for starters. Then try importing all four chunks.
  • Well, this is one way. What I would like to achieve is some kind of progress indicator to the debug log to see how many items the script has processed.

    I tried to use Zotero.debug -function, but for some reason it does not work.

    I added the following two lines in the beginning of the doImport function
    dump("Importing\n");
    Zotero.debug("Starting BibTeX import");

    In the log I get the "Importing"-text, but not the debug text

    Importing
    zotero(3): Saving data for new item to database

    What could be the issue? Is logging not available for translators?

    Mikko
  • It seems that the import processes 3336 items correctly and then hangs. I tried importing a smaller set of items around this part of the file, there are no problems.

    Is there some kind of limit of the file size that the software may run into?

    Mikko
  • For some reason the exact same file went through when I imported it again. Weird.

    Mikko

This is an old discussion that has not been active in a long time. Instead of commenting here, you should start a new discussion. If you think the content of this discussion is still relevant, you can link to it from your new discussion.