# \`The sketch path is not set.\` error when loading table in global

**URL:** <https://discourse.processing.org/t/the-sketch-path-is-not-set-error-when-loading-table-in-global/9952>\
**Category:** Beginners\
**Created:** [April 4, 2019, 6:27am UTC](https://discourse.processing.org/t/the-sketch-path-is-not-set-error-when-loading-table-in-global/9952 "2019-04-04T06:27:49Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [April 5, 2019, 8:30am UTC](https://discourse.processing.org/t/the-sketch-path-is-not-set-error-when-loading-table-in-global/9952/5 "2019-04-05T08:30:37Z")

</div>

> [@jmt2080ad](#):
>
> , why can’t the Table object be assigned in the header, as _rowCnt_ is?

B/c all Processing’s loading functions depend on PApplet::_sketchPath_ to be already initialized: 📂

> [@File Listing Order](https://discourse.processing.org/t/file-listing-order/7148/20):
>
> Your sketch is buggy! You’re calling dataFile() before settings()! bug The private system field PApplet::sketchPath is initialized just before settings() is called back btW. calling[Processing.GitHub.io/processing-javadocs/core/processing/core/PApplet.html#sketchPath--](http://Processing.GitHub.io/processing-javadocs/core/processing/core/PApplet.html#sketchPath--)

---

_[View the full topic](https://discourse.processing.org/t/the-sketch-path-is-not-set-error-when-loading-table-in-global/9952)._
