Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3280

WebIDE / HAT: Deployment fails when using an OData Service

$
0
0

Hi everybody,

 

im currently trying the SAP WebIDE in combination with the Hybrid Application Toolkit.

I've created a simple "Hello World" project within the Web IDE, and deployed it to a Cordova Container via the HAT (Version 1.11.4).

That worked fine!

 

But when i now define an oData Service within the mainfest.json, the deployment fails with the following error message:

10:40:25 (hybrid-toolkit)

10:40:25 (hybrid-toolkit) =================================================

10:40:25 (hybrid-toolkit) Gather the info of the project and its dependancies

10:40:25 (hybrid-toolkit) Exporting the smartVIVA_Anzeigen_Workflow project from Orion...

10:40:25 (hybrid-toolkit) Assemble full project zip binary

10:40:25 (hybrid-toolkit)

10:40:25 (hybrid-toolkit) Applying bootstrap and configuration...

10:40:25 (hybrid-toolkit) Update the manifest.json to enable accessing OData model from device

10:40:25 (hybrid-toolkit) Get project zip encountered error: Cannot read property 'length' of undefined

10:40:25 (hybrid-toolkit) The local deploy command execute failure reason: Cannot read property 'length' of undefined at step apply boostrap & configuration

 

My manifest.json looks like this:

{  "_version": "1.1.0",  "sap.app": {  "_version": "1.1.0",  "id": "de.grz.ui5.soko",  "type": "application",  "i18n": "i18n/i18n.properties",  "applicationVersion": {  "version": "1.0.0"  },  "title": "{{appTitle}}",  "description": "{{appDescription}}",  "sourceTemplate": {  "id": "ui5template.basicSAPUI5ApplicationProject",  "version": "1.32.0"  },  "dataSources": {  "ANZ_SOKO_SRV": {  "uri": "/destinations/smart_viva_grz/sap/opu/odata/GRZ/ANZ_SOKO_SRV/",  "type": "OData",  "settings": {  "odataVersion": "2.0"  }  }  }  },  "sap.ui": {  "_version": "1.1.0",  "technology": "UI5",  "icons": {  "icon": "",  "favIcon": "",  "phone": "",  "phone@2": "",  "tablet": "",  "tablet@2": ""  },  "deviceTypes": {  "desktop": true,  "tablet": true,  "phone": true  },  "supportedThemes": ["sap_hcb", "sap_bluecrystal"]  },  "sap.ui5": {  "_version": "1.1.0",  "rootView": {  "viewName": "de.grz.ui5.soko.view.App",  "type": "XML"  },  "dependencies": {  "minUI5Version": "1.30.0",  "libs": {  "sap.ui.core": {},  "sap.m": {},  "sap.ui.layout": {}  }  },  "contentDensities": {  "compact": true,  "cozy": true  },  "models": {  "i18n": {  "type": "sap.ui.model.resource.ResourceModel",  "settings": {  "bundleName": "de.grz.ui5.soko.i18n.i18n"  }  },  "modelGenehmAufgabe": {  "dataSource": "ANZ_SOKO_SRV",  "settings": {}  }  },  "resources": {  "css": [{  "uri": "css/style.css"  }]  },  "routing": {  "config": {  "routerClass": "sap.m.routing.Router",  "viewPath": "de.grz.ui5.soko.view",  "controlId": "idAppControl",  "controlAggregation": "detailPages",  "bypassed": {  "target": ["Master", "Empty"]  },  "viewLevel": 1,  "viewType": "XML"  },  "routes": [{  "name": "grzMainRouteToMaster",  "pattern": "",  "target": ["Master", "Detail"]  }, {  "name": "grzSubRouteToDetail",  "pattern": "{Genehmigungsaufgaben}/:tab:",  "target": ["Detail", "Master"]  }],  "targets": {  "Detail": {  "viewName": "Detail",  "viewLevel": 1  },  "Master": {  "controlAggregation": "masterPages",  "viewName": "Master",  "viewLevel": 1  },  "Empty": {  "viewName": "Empty",  "viewLevel": 1  }  }  }  }
}

The oData Service is accessible through the SAP Hana Cloud Connector.

Deployment to the HAT works only without the dataSources part.

 

Any idea what could cause the error?

 

Thanks in advance for your help!

 

Regards

Frank


Viewing all articles
Browse latest Browse all 3280

Trending Articles