cancel
Showing results for 
Search instead for 
Did you mean: 

XSJOB won't activate, invalid file content

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

thomas_jung
Developer Advocate
Developer Advocate

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.

Former Member
0 Kudos

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!

mellinda_pereira
Explorer
0 Kudos

Hi Thomas,

I am also facing the above issue. the stored procedure file doesn't has any error and it got activated successfully

But when I pass that to an XS job file it says the Invalid file content

please have a look at the screenshot

Your help is appreciated. @thomas.jung

Regards,

Mellindacapture.jpgcapture1.jpg

yogananda
Product and Topic Expert
Product and Topic Expert
0 Kudos

This is due to cronjob syntax.

former_member763929
Participant
0 Kudos

Thanks for coming to SAP Community for answers. Please post your question as a new question here:

Since you're new in asking questions here, check out our tutorial about asking and answering questions (if you haven't already), as it provides tips for preparing questions more effectively, that draw responses from our members.

Please note, that your post here won't be answered.

Answers (0)