Giter Club home page Giter Club logo

Comments (6)

patrickmj avatar patrickmj commented on July 29, 2024

Also worth noting that, when the offending JSON comes first, the batchCreate doesn't recover and move on

from csvimport.

patrickmj avatar patrickmj commented on July 29, 2024

Fixed by simply trim()ing the file urls, but still raising an eyebrow about the Completed status and batchCreate not moving on things described above. Thoughts on those, @zerocrates @jimsafley ?

from csvimport.

zerocrates avatar zerocrates commented on July 29, 2024

You're setting continueOnError to true, so it just logs exceptions and keeps trying with the next item.

from csvimport.

patrickmj avatar patrickmj commented on July 29, 2024

That makes sense of the reaching Completed status, but it doesn't look like it really does move on to the next item.

from csvimport.

zerocrates avatar zerocrates commented on July 29, 2024

Yeah, if that's the case that there's some problem moving on, that would be the bug here, if there is one.

from csvimport.

patrickmj avatar patrickmj commented on July 29, 2024

To reproduce:

Checkout master branch, which doesn't have the trim on fileUrl in Import::buildMediaJson

Run the import on the old, omeka 2 test file for CSVImport. Map whatever, e.g. 'title' to dcterms:title, and check file for the file Csv Header.

First row has two files, which breaks, and it doesn't move along.

Move or remove the double-file in the CSV file. Import again.

My results are that as soon as it hits the double-file, the import stops and does not move on to the next row.

from csvimport.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.