# dbf file reading

**URL:** <https://forum.knime.com/t/dbf-file-reading/1782>\
**Category:** KNIME Analytics Platform\
**Created:** [February 28, 2012, 6:08pm UTC](https://forum.knime.com/t/dbf-file-reading/1782 "2012-02-28T18:08:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![knorman](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/k/bb73d2/32.png) [@knorman](https://forum.knime.com/u/knorman)\
**Post date:** [February 28, 2012, 6:08pm UTC](https://forum.knime.com/t/dbf-file-reading/1782/1 "2012-02-28T18:08:15Z")

</div>

I've built some great knime workflows, love the program. &nbsp;I'm stuck on a problem, that I'm sure has an easy solution.

I'm trying to import DBF files. &nbsp;The files have a 100 columns and 5000 rows, but when KNIME pulls it in, I get one very long row with garbage at the beginning.

Every row starts with the data, so it has a 2010, 2011, or 2012 in front. &nbsp;How do I use the row delimiter so a new row starts whenever a 2012 is seen? &nbsp;Or even better a new row every 100 columns?

---

<div class="post-metadata">

**Author:** ![gabriel](https://forum-cdn.knime.com/user_avatar/forum.knime.com/gabriel/32/61386_2.png) [@gabriel](https://forum.knime.com/u/gabriel)\
**Post date:** [March 1, 2012, 3:50pm UTC](https://forum.knime.com/t/dbf-file-reading/1782/2 "2012-03-01T15:50:46Z")

</div>

Hard to say. Can you post a snippet or a small example of the data you are reading in, maybe we find a work around. For the long term, we have this enhancement for the File Reader on our list.

---

<div class="post-metadata">

**Author:** ![knorman](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/k/bb73d2/32.png) [@knorman](https://forum.knime.com/u/knorman)\
**Post date:** [March 1, 2012, 10:01pm UTC](https://forum.knime.com/t/dbf-file-reading/1782/3 "2012-03-01T22:01:23Z")

</div>

Knime is a godsend for dealing with the data. &nbsp;It's just a problem to convert them on a regular basis to a cvs file. &nbsp;I appreciate any suggestions.

I've tried transposing it into a column and then using column to grid; but that isn't working so well. &nbsp;There must &nbsp;be something easy that I'm just not understanding.

The file is a DBF, I had to change the extension to be able to upload it.

Thanks again.

- [example\_2008\_07\_17\_0000\_wide.txt](https://www.knime.com/sites/default/files/example_2008_07_17_0000_wide.txt)

---

<div class="post-metadata">

**Author:** ![gabriel](https://forum-cdn.knime.com/user_avatar/forum.knime.com/gabriel/32/61386_2.png) [@gabriel](https://forum.knime.com/u/gabriel)\
**Post date:** [March 2, 2012, 10:31am UTC](https://forum.knime.com/t/dbf-file-reading/1782/4 "2012-03-02T10:31:42Z")

</div>

Thanks. I think, the answer is that we can't read this format directly. However, if you could covert this into a flat file or xls table, you can read it in with the File Reader or XLS Reader. Hope it helps.

---

<div class="post-metadata">

**Author:** ![mlauber71](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mlauber71/32/73590_2.png) [@mlauber71](https://forum.knime.com/u/mlauber71)\
**Post date:** [March 16, 2021, 7:03pm UTC](https://forum.knime.com/t/dbf-file-reading/1782/6 "2021-03-16T19:03:14Z")

</div>

No idea why this showed up on my ‘radar’ today. But it is possible to use R “foreign” to import dbf (dBase) files. The one in question unfortunately could not be imported … @knorman

> **[Import DBF (dBase) file with the help of R's foreign library or Python...](https://hub.knime.com/mlauber71/spaces/Public/forum/kn_forum_1782_dbf_import_dbase_file_r~SDBFAcbXIzJLn9XA/current-state)**
>
> Import DBF (dBase) file with the help of R's foreign library or Python packages

–  
Edit: now there also is a Phyton package [Widget to upload multiple files - #6 by mlauber71](https://forum.knime.com/t/widget-to-upload-multiple-files/69854/6)

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [June 23, 2023, 8:16pm UTC](https://forum.knime.com/t/dbf-file-reading/1782/7 "2023-06-23T20:16:55Z")

</div>


