EPrints Technical Mailing List Archive

See the EPrints wiki for instructions on how to join this mailing list and related information.

Message: #10146


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

Re: [EP-tech] Export and import xml file with embeded from old eprints to new version


CAUTION: This e-mail originated outside the University of Southampton.

check the bin/import utility in EPrints. Big import should be done using the command line. Also, you cannot paste binaries in text forms, sure something will broke.

Il 18/06/25 10:33, Agung Prasetyo W. ha scritto:
CAUTION: This e-mail originated outside the University of Southampton.
CAUTION: This e-mail originated outside the University of Southampton.
Hi,

Maybe if it's only 1 item, it's okay to add the <eprint> and </eprint> tags. But if the data I want to export is tens of thousands, of course this is a waste of time.

Regards
Agung PW

On Wed, 18 Jun 2025 at 15:07, David R Newman <drn@ecs.soton.ac.uk> wrote:

Hi Agung,

I have seen this when I have exported a single item and try to reimport but not sure how you got this with a full archive export.  There is no <eprints> tag enclosing the set of <eprint> records.  Usually you can just edit the file to add these <eprints> tags at the top (after the <?xml ... line) and then right at the end, so it looks like:

<?xml version='1.0' encoding='utf-8'?>
<eprints xmlns='http://eprints.org/ep2/data/2.0'>
    <eprint id='https://eprints.example.org/1'>
        ...
    </eprint>
    <eprint id='https://eprints.example.org/2'>
        ....
    </eprint>
</eprints>

Regards

David Newman

On 18/06/2025 08:39, Alan.Stiles [He/Him/They] wrote:
CAUTION: This e-mail originated outside the University of Southampton.
CAUTION: This e-mail originated outside the University of Southampton.

It looks like your file that you are trying to import isn’t correctly formatted, from the line

 

Unexpected tag: expected <eprints> found <eprint>

 

If you export just one file from your existing system it will give you an example file to compare against.  I’m sure there’s an entry in the wiki for it but I can’t find it at the moment.

 

Alan

 

From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> on behalf of Agung Prasetyo W. <prazetyo@gmail.com>
Date: Wednesday, 18 June 2025 at 08:03
To: Yuri <yurj@alfa.it>, eprints-tech@ecs.soton.ac.uk <eprints-tech@ecs.soton.ac.uk>
Subject: Re: [EP-tech] Export and import xml file with embeded from old eprints to new version

External email: if the sender or content looks suspicious, please click the Report Message icon, or forward it to report-phishing

CAUTION: This e-mail originated outside the University of Southampton.

CAUTION: This e-mail originated outside the University of Southampton.

I export from eprints 3.1.3 a xml files with EP3 XML with Files Embedded. After I get the files, I import the file on my eprints 3.4.3 with Test Without Importing options. And then I get this error message

 


 

I just tried 1 file. I feel like if I import a lot of files via the command line, it will definitely give an error too.

Need help.

 

Thank you

 

Best regards

Agung PW

 

 

On Wed, Jun 18, 2025, 13:26 Yuri <yurj@alfa.it> wrote:

Maybe you can post the steps you followed and the error?

Il 18/06/25 06:37, Agung Prasetyo W. ha scritto:

CAUTION: This e-mail originated outside the University of Southampton.

CAUTION: This e-mail originated outside the University of Southampton.

Hi,

 

I would like to ask if it is possible to import xml files from "EP3 XML with Files Embedded" from eprints version 3.1.3 to eprints 3.4.3? I have tried the xml file and got an error.

I have files of around 30,000 items, and I want to move them to the new version of eprints. Please help.

 

Thank you

 

Best regards,

Agung PW



*** Options: https://wiki.eprints.org/w/Eprints-tech_Mailing_List
*** Archive: https://www.eprints.org/tech.php/
*** EPrints community wiki: https://wiki.eprints.org/
 

*** Options: https://wiki.eprints.org/w/Eprints-tech_Mailing_List
*** Archive: https://www.eprints.org/tech.php/
*** EPrints community wiki: https://wiki.eprints.org/

*** Options: https://wiki.eprints.org/w/Eprints-tech_Mailing_List
*** Archive: https://www.eprints.org/tech.php/
*** EPrints community wiki: https://wiki.eprints.org/


*** Options: https://wiki.eprints.org/w/Eprints-tech_Mailing_List
*** Archive: https://www.eprints.org/tech.php/
*** EPrints community wiki: https://wiki.eprints.org/