question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Schema not being applied

See original GitHub issue

I’m using Node 11 and read-excel-file 4.0.5

When I supply a Schema:

const schema = {
  "CC-CODE": {
    prop: "code",
    required: true,
    type: String
  },
  "DEFINITION": {
    prop: "definition",
    required: true,
    type: String
  },
  "ENGLISH": {
    prop: "english",
    required: true,
    type: String
  },
  "SWEDISH": {
    prop: "swedish",
    required: true,
    type: String
  },
  "BLISS": {
    prop: "bliss",
    required: true,
    type: String
  },
  "ARASAAC": {
    prop: "arasaac",
    required: true,
    type: String
  }, 
  "CATEGORIES": {
    prop: "categories",
    required: true,
    type: String
  }
};

and apply it to: var sheet = readXlsxFile('data.xlsx',{schema});

I’m not getting back {rows, errors} I’m getting data just as if I had never used a schema.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Schwoebelcommented, Feb 3, 2020

You’re right.

The screwy thing about this is that it worked for 6 months and then started doing this out of the blue. No updates done, nothing.

I think your library was great when it was working, but something is going wrong somewhere. Most undoubtedly on my end.

If anyone runs into this with Microsoft Excel for Mac Version 16.27 I wish them luck.

0reactions
Thivarellacommented, May 11, 2021

Having the same issue. Has someone found a way to correct this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Default Schema not being applied even after setting default ...
After doing some soul searching I ran the following command that led me to the path that something was amiss (possible with the...
Read more >
Schema not being used in simple query, Error Screen
When I click Ask a Question, Simple Question, select our database, select a schema, and click on a table, I see the following...
Read more >
default schema not working? - MSDN - Microsoft
I connect to the database, and the default schema seems to be set to dbo. Can anyone thing of a reason why this...
Read more >
Default Schema not being applied even after setting default ...
Hello Stack Exchange! I have an interesting problem! Let me set the stage for you: 1) Windows Authentication. 2) Default Schema identityiq ...
Read more >
How do I resolve issues with missing or incorrect schema ...
If the row is missing then this generally means the environment's database were not setup properly. Resolution: recreate the environment using the proper...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found