Skip to Content
author's profile photo Former Member
Former Member

XSJOB won't activate, invalid file content

Hi experts,

I'm trying to get a simple XSJOB working, but HANA Studio repeatedly tells me "Invalid file content" when I want to activate the following:

{
    "description": "Queue worker job",
    "action": "mypack:myfile.xsjs::myFunct",
    "schedules": [
      {
        "description": "Check the queue every five seconds",
        "xscron": "* * * * * * 0:59/5"
      }
    ] 
}

The package and xsjs files as well as the function exist and are activated without any problems. I can run the function in the XSJS without problems.

What can I do?

Thanks in advance

Add comment
10|10000 characters needed characters exceeded

1 Answer

  • Best Answer
    Posted on Apr 17, 2015 at 02:07 AM

    When I cut and paste that into my system the file parses correctly. No Invalid File Content errors. So it would seem the format is correct. The only error that I get is that the target action object doesn't exist - which is correct in my system since it doesn't exist. Are you sure that your action target is right. Are you really going after an xsjs that is in the mypack package right off the root? Perhaps post a screenshot of your project so we can see the target structure.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      I double checked it with JSONLint and it was probably and encoding issue. I retyped everything by hand and now it gets activated properly. Thank you!