Skip to Content
0
Former Member
Apr 30, 2018 at 11:07 PM

xsjs failed with error(s): undefined is not a function (line 0 position 1 in ?)

783 Views Last edit May 08, 2018 at 05:44 AM 2 rev

I have created a XSJS script and it runs well if I execute if from HANA studio or Web IDE, but when I schedule the job, it errors out with following message :

xsjs failed with error(s): undefined is not a function (line 0 position 1 in ?)

This is how my xsjob looks like:

{

"description": "Hello",

"action": "ODATA_SVC:TestHCIContacts_Multiload1.xsjs::",

"schedules": [

{ "description": "new job", "xscron": "* * * * 22 10 0" }

]

}

My XSJS script does not have any parameter or a function.

If I use "action": "ODATA_SVC:TestHCIContacts_Multiload1.xsjs" in my xsjob the job does not activate. It gives parsing error for action.

Any help to resolve this issue is highly appreciated.