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:
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