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

Unable to add transport route in HANA Application Lifecycle Management (XS)

$
0
0

Hi There,

 

When we are using HANA LM to create transport routes then routes are created but straight away it comes with following error message:

 

Internal Error: Transport Route(s) could not be retrieved.

 

We have checked that required roles are assigned to user. Roles are

 

sap.hana.xs.lm.roles::ExecuteTransport

  or
sap.hana.xs.lm.roles::Administrator

 

Same works in DEV and PROD environment.  I ran debug in Chrome and found that it is throwing an error when trying to run following:

    

http://XXXX:portnumber/sap/hana/xs/lm/core/transport.xsjs?enrich=true&_=XXXXXXX

 

After looking in HANA studio I have found that transport.xsjs has got following function which will throw above error on exception:

 

**********************************************************************

 

function retrieveTransport(req, res) {

 

  if(!utils.checkForPrivileges(res, [ "sap.hana.xs.lm::Display"])){

    return;

  }

 

  var item = utils.getItem(req.path);

  var enrich = req.parameters.get("enrich");

  var deleted = req.parameters.get("removed");

  try {

    if (typeof item === 'undefined') {

      var transportRoutes = trans.readAllTransports(deleted);

      if (enrich) {

        enrichTransportRoutes(transportRoutes,deleted);

      }

      utils.setNoCacheHeaders(res);

      res.contentType = 'application/json';

      res.setBody(JSON.stringify(transportRoutes));

      res.status = $.net.http.OK;

    } else {

      // retrieve transport path id

      var tpath = trans.readTransport(item);

      if (!tpath) {

        utils.reportError(res, null, utils.getText("TRANSPORT_ID_INVALID", item));

      } else {

        res.contentType = 'application/json';

        res.setBody(JSON.stringify(tpath));

        res.status = $.net.http.OK;

      }

    }

  } catch (ex2) {

    utils.reportError(res, null, utils.getText("ROUTES_NOT_RETRIEVED"), ex2.toSource());

  }

}

 

**********************************************************************

Please see attached chrome console log for more info:

 

1-05-2014 2-46-26 PM.jpg

I am able to retrieve information about this but I am not sure what is causing this. Your help will be really appreciated.

 

Regards

Angad


Viewing all articles
Browse latest Browse all 6412

Trending Articles



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