Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

XSJob not executing

$
0
0

Hi,

 

I have followed all of the steps from the developer guide (page 469-472): http://help.sap.com/hana/SAP_HANA_Developer_Guide_en.pdf

but the job is not executing, neither it is showing in the JOB Log.

 

I have attached a screenshot of admin tool.

 

scheduleInsert.xsjob

 

{

    "description": "Scheduled Insert",

    "action": "sap....appl.services:testInsert.xsjs::insert",

    "schedules": [

        {

            "description": "insert",

            "xscron": "* * * * * * 1"

        }

    ]

}

 

sap....appl.services:testInsert.xsjs

 

$.import("sap....appl.xsjslib",   "dummyInsert");

 

function insert() {

    var dbConnection      = null;

    var output            = null;

    var bo                = null;

    var payload  = null;

    dbConnection    = $.db.getConnection(); //Get dbConnectionection for DB

    bo              = new $.sap....appl.xsjslib.dummyInsert.Value( dbConnection );

    output          = bo.insertValue(JSON.parse("[\"1\"]"), 10, true);

    dbConnection.close();

    dbConnection    = null;

    bo              = null;

    $.response.status = output.HttpStatusCode;

    $.response.setBody(JSON.stringify(output) + '\n');

}

 

 

Thanks & Regards,

Rachit


Viewing all articles
Browse latest Browse all 6412

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>