yortus/DBFFile

Getting error (node:7468) UnhandledPromiseRejectionWarning: Error: Type '0' is not supported at Object.validateFieldDescriptor (C:\chatbot\node_modules\dbffile\dist\field-descriptor.js:16:15) at openDBF (C:\chatbot\node_modules\dbffile\dist\dbf-file.js:82:32)

Closed this issue · 2 comments

As I am currently using big dbf file so I am getting error as

(node:7468) UnhandledPromiseRejectionWarning: Error: Type '0' is not supported
at Object.validateFieldDescriptor (C:\chatbot\node_modules\dbffile\dist\field-descriptor.js:16:15)
at openDBF (C:\chatbot\node_modules\dbffile\dist\dbf-file.js:82:32)

Why there is type 0??

Hi @amruta21, there is no field type '0' in a valid dbf file, so possibly the file is not a valid dbf file? Are you able to process this file with other programs that understand dbf files (eg Excel)? Are you able to post the file for further investigation?

Hi @amruta21, the latest version has 'loose' read mode support which may solve this. I'll close for now since it's gone stale. Feel free to re-open if you are still having problems.