Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

Error Failed to load resource in SAPUI5 application

My SAPUI5 application was working fine today, I had created a table based on ODATA. Now when I check developer tool, it shows this error:

Failed to load resource https://hana_server_name:4000/ui_test/ui5_test/WebContent/ui5_test/VisitorData.view.jsUncaught Error: failed to load 'ui5_test/VisitorData.view.js' from ./ui5_test/VisitorData.view.js: 0 - NetworkError: A network error occurred.

I have tested ODATA and it works fine as I tried rendering chart and it seems OK. However error is same for tables I have created and it seems to be related to server.


1 Answer
Anil SAP Gupta

It is clear from your error message: VisitorData.view.js is not found so you have to check if this view actually exists and there is no permission issues on this view.

Try checking this to view list of deployed services: https://hanaservername.com:4000/ui_test/ui5_test/WebContent/resources/

You have to add below in your web.xml:

<context-param>

<param-name>com.sap.ui5.resource.DEV_MODE</param-name>

<param-value>true</param-value>

</context-param>

Advertisements

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.