GithubHelp home page GithubHelp logo

Comments (4)

waasikhaan avatar waasikhaan commented on May 5, 2024

@cr0mbly, How can you parse an invalid file? Don't you think you need to sort it out first before parsing it? I think this message is fine as far as the processing is concerned.

What is your opinion @mdeinum?

from spring-batch-extensions.

IRasmivan avatar IRasmivan commented on May 5, 2024

I am not sure if this is part of the same issue!

I am reading excel sheet using mapRow.

My Excel sheet has a cell containing a value #N/A. When I read the excel sheet using mapRow, The row containing #N/A values is totally skipped!

Is there any workaround to read the skipped row using RowMapper?

@component
public class ExcelRowMapper implements RowMapper {
@OverRide
public LineItemDTO mapRow(RowSet rs) throws Exception {
rs.getCurrentRowIndex();
}
}
Excel Data:
Column Name
123123
123ss
dafsdf
#N/A
asdasd
2323

The code read first 4 rows and skipped the row containing #N/A and read the row's below.

from spring-batch-extensions.

mdeinum avatar mdeinum commented on May 5, 2024

There have been some changes to the PoiItemReader and it should now properly read those rows, it will show the textual representation of the error. So the cell should read #N/A as text. Please try with the latest versions and if this is still an error could you provide a sample Excel file that we could then use to reproduce (an Excel file with a test would even be better).

from spring-batch-extensions.

mdeinum avatar mdeinum commented on May 5, 2024

There have been changes to how rows are parsed, more of the internals of Apache POI are now used and empty rows and cells will be parsed correctly.

from spring-batch-extensions.

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.