Code Monkey home page Code Monkey logo

Comments (10)

andipaetzold avatar andipaetzold commented on June 20, 2024

👋 Hello again,

I was able to reproduce the issue. The problem seems to be that that row thinks it has more variable columns than total columns.
How was this table created? Was there a lot of altering and moving of the columns? Are you able to reproduce such broken table from scratch?

I'll hope I find time next week to investigate this further. There seems to be a related issue when only a subset of columns is read...

from mdb-reader.

ellis2323 avatar ellis2323 commented on June 20, 2024

Hello,

This table is created by an access application developed by a french company 20 years ago and maintained until now. When you say "only a subset of columns is read", which alternative is available ?

from mdb-reader.

andipaetzold avatar andipaetzold commented on June 20, 2024

20 years ago and maintained until now.

Yeah, I noticed that. Can't even open the file in a current Microsoft Access :(

When you say "only a subset of columns is read", which alternative is available ?

This is probably unrelated to your problem. It might lead to the same result (null values), but when calling getData() with a columns option. I need to do more investigation around this.

I don't see any workaround at the moment.

from mdb-reader.

ellis2323 avatar ellis2323 commented on June 20, 2024

I've a computer with XP and Access97. This table is the one with this short int of one byte. Are you sure this type of data is well read ?

from mdb-reader.

andipaetzold avatar andipaetzold commented on June 20, 2024

Yes, the column definitions are read correctly. If not, you would get null everywhere.

The issue is that fixedColumnCount becomes a negative number (

const fixedColumnCount = totalVariableCount - variableColumnCount;
) because variableColumnCount is greater than totalVariableCount. If that happens, we end up in the else branch (

mdb-reader/src/Table.ts

Lines 350 to 352 in a9847d6

start = 0;
value = null;
size = 0;
) when reading the row and the value becomes null.

from mdb-reader.

ellis2323 avatar ellis2323 commented on June 20, 2024

Hello,

When i read this table, I miss 1 column (NoOrdreRelais) for the first row, then I miss two columns (NoAthlete, NoOrdreRelais), then 3 columns (NoSerieTour, NoAthlete, NoOrdreRelais), then 4 columns and then it loop again with one column missing, then two.... The written values are correct.

relais {
NoEngageRelais: 228,
NoEngagement: 1222,
NoSerieTour: 444,
NoAthlete: 666,
NoOrdreRelais: null
}
relais {
NoEngageRelais: 229,
NoEngagement: 1222,
NoSerieTour: 444,
NoAthlete: null,
NoOrdreRelais: null
}
relais {
NoEngageRelais: 230,
NoEngagement: 1222,
NoSerieTour: null,
NoAthlete: null,
NoOrdreRelais: null
}
relais {
NoEngageRelais: 231,
NoEngagement: null,
NoSerieTour: null,
NoAthlete: null,
NoOrdreRelais: null
}

from mdb-reader.

ellis2323 avatar ellis2323 commented on June 20, 2024

The table in Access97 have 5 fields:

  • NoEngageRelais: AutoNumber
  • NoEngagement: Numeric
  • NoSerieTour: Numeric
  • NoAthlete: Numeric
  • NoOrdreRelais: Numeric

All columns are defined and set.

from mdb-reader.

ellis2323 avatar ellis2323 commented on June 20, 2024

I have installed mdb-tools in a VM and I can read the data:

mdb-export /mnt/c/Users/laure/Downloads/nxtcrsu.nxt tRelais
NoEngageRelais,NoEngagement,NoSerieTour,NoAthlete,NoOrdreRelais
228,1222,444,666,1
229,1222,444,791,2
230,1222,444,639,3
231,1222,444,612,4
232,1223,445,782,1
233,1223,445,780,2
234,1223,445,752,3
235,1223,445,795,4
236,1226,444,624,1
237,1226,444,609,2
238,1226,444,634,3
239,1226,444,626,4
240,1226,476,624,1
241,1226,476,609,2
242,1226,476,634,3
243,1226,476,626,4
244,1222,476,666,1
245,1222,476,791,2
246,1222,476,639,3
247,1222,476,612,4
248,1223,477,782,1
249,1223,477,780,2
250,1223,477,752,3
251,1223,477,795,4

from mdb-reader.

andipaetzold avatar andipaetzold commented on June 20, 2024

I think I found the issue. Seems like this was just a small mistake in the Jet3 format configuration.
The new version should release any minute. Please let me know if you still run into issues with the latest update.

from mdb-reader.

ellis2323 avatar ellis2323 commented on June 20, 2024

Hello,

I tried this morning and everything is ok. Good job.

Thanks for your great work.

from mdb-reader.

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.