Teneo Developers Community

Error adding file to solution

Hi,

I am trying to follow the “Add files to your solution” tutorial. However, once I want to inspect the global variable “businessHours” I get the following error:

image

What went wrong? And how can I fix it?

Thanks in advance!

John

Hi John,

the error you are getting means that the script does not find the file that you have added to the solution. A common error here is that people don’t specify the correct path when adding the file. In order for Teneo to find the files, they have to be saved in the “script_lib” path, like so:

Could you verify the path under which you saved the file and let me know if the problem still persists?

Cheers,

Fabienne

Hi Fabienne,

thanks for your answer! I checked and found that I had written script-lib instead of script_lib a subtle difference that broke the whole thing.

Now everything works as intended!

Cheers,

John