# \[Javascript\] EventDescription getPath() function is coming back with an empty string

**URL:** <https://qa.fmod.com/t/javascript-eventdescription-getpath-function-is-coming-back-with-an-empty-string/16013>\
**Category:** FMOD Engine\
**Tags:** javascript\
**Created:** [July 27, 2020, 12:13am UTC](https://qa.fmod.com/t/javascript-eventdescription-getpath-function-is-coming-back-with-an-empty-string/16013 "2020-07-27T00:13:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shadoninja](https://avatars.discourse-cdn.com/v4/letter/s/71e660/32.png) [@Shadoninja](https://qa.fmod.com/u/Shadoninja)\
**Post date:** [July 27, 2020, 12:13am UTC](https://qa.fmod.com/t/javascript-eventdescription-getpath-function-is-coming-back-with-an-empty-string/16013/1 "2020-07-27T00:13:43Z")

</div>

Hello! I am trying to use the getPath() function on an EventDescription and am getting back an empty string in the `val` with no error from the function (FMOD.OK is returned). Here is the relevant block of code:

```auto
var path = {}, size = 0, retrieve = 0;
result = description.val.getPath(path, size, retrieve)
CHECK_RESULT(result, 'getPath() call failed for event instance');

if (!path.val){
	console.log('Fmod Callback could not find description of event for event instance');
}

```

And here is the CHECK\_RESULT block:

```auto
	static CHECK_RESULT(result, message='')
	{
		if (result != FMOD.OK)
		{
			if (message == ''){
				console.log(FMOD.ErrorString(result));
			} else {
				console.log(message + ': ' + FMOD.ErrorString(result));
			}
		}
	}

```

I will provide any other details to help diagnose this.

---

<div class="post-metadata">

**Author:** ![mathew](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/mathew/32/431_2.png) [@mathew](https://qa.fmod.com/u/mathew)\
**Post date:** [July 28, 2020, 12:50am UTC](https://qa.fmod.com/t/javascript-eventdescription-getpath-function-is-coming-back-with-an-empty-string/16013/2 "2020-07-28T00:50:12Z")

</div>

It looks like you are passing in a size of 0, which should cause an invalid parameter error to be returned. Can you try again with a larger size, say 256 for instance?

Also, be aware the strings bank must be loaded to get this information out.

---

<div class="post-metadata">

**Author:** ![Shadoninja](https://avatars.discourse-cdn.com/v4/letter/s/71e660/32.png) [@Shadoninja](https://qa.fmod.com/u/Shadoninja)\
**Post date:** [July 28, 2020, 1:00am UTC](https://qa.fmod.com/t/javascript-eventdescription-getpath-function-is-coming-back-with-an-empty-string/16013/3 "2020-07-28T01:00:26Z")

</div>

Doh, you are totally right. Thank you
