# Complex Data Reader error

**URL:** <https://forum.cloverdx.com/t/complex-data-reader-error/1027>\
**Category:** CloverDX Platform\
**Created:** [March 15, 2012, 12:00am UTC](https://forum.cloverdx.com/t/complex-data-reader-error/1027 "2012-03-15T00:00:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cvnation](https://avatars.discourse-cdn.com/v4/letter/c/85e7bf/32.png) [@cvnation](https://forum.cloverdx.com/u/cvnation)\
**Post date:** [March 15, 2012, 12:00am UTC](https://forum.cloverdx.com/t/complex-data-reader-error/1027/1 "2012-03-15T00:00:00Z")

</div>

Hello,

I am using a wildcard to read all the files in a directory. The files used to be stored in subdirectories, but they now are all up one level in the same folder.

I forgot to remove the subdirectories, so after 14 hours of processing, the graph aborted with the following error:  
File is unreachable: … (is a directory)

I have already changed the wildcard from \* to \*.\* and removed the subdirectories, but my question is, does the data reader read all files first then directories? If so, I can use the files that were already generated and not have to rerun this graph.

Thank you for your time and input,

Cory

---

<div class="post-metadata">

**Author:** ![David\_Hlidek](https://avatars.discourse-cdn.com/v4/letter/d/58f4c7/32.png) [@David\_Hlidek](https://forum.cloverdx.com/u/David_Hlidek)\
**Post date:** [March 16, 2012, 9:22am UTC](https://forum.cloverdx.com/t/complex-data-reader-error/1027/2 "2012-03-16T09:22:21Z")

</div>

Hi cvnation,

I take a look into code. Data are sorted by alphabetical order, case sensitive.

([http://docs.oracle.com/javase/6/docs/api/java/util/Arrays.html#sort(java.lang.Object[])](http://docs.oracle.com/javase/6/docs/api/java/util/Arrays.html#sort%28java.lang.Object%5B%5D%29) with String as parameter)

So for example my test folder is sorted like:

```auto

A.txt
NewFile.xml
NewFile.xsd
a
b
c
d
test.txt
test_nan.txt
z

```

---

<div class="post-metadata">

**Author:** ![cvnation](https://avatars.discourse-cdn.com/v4/letter/c/85e7bf/32.png) [@cvnation](https://forum.cloverdx.com/u/cvnation)\
**Post date:** [March 16, 2012, 2:30pm UTC](https://forum.cloverdx.com/t/complex-data-reader-error/1027/3 "2012-03-16T14:30:36Z")

</div>

Thank you! I had to rerun my process yesterday, but that is good to know for future reference.

Cheers,  
Cory
