cancel
Showing results for 
Search instead for 
Did you mean: 

Unhandled Error: Cannot read property 'message' of undefined

Former Member

when I try to deploy my sap ui5 application to SCP, I get the above error. The version I am using 1.46.9. But even If i use the latest one, I get the same error.

Accepted Solutions (0)

Answers (3)

Answers (3)

ashwin_narayan
Participant
0 Kudos

Hi Manik,

This might have caused when you are trying to evoke a message toast or variable called "message" which will be initialised but not declared.

Yes, as the previous valuable comments say that you share the screen or the error report, or to start with try cntr+f (search) and type in message in the view as well as controller to see where have you used it. This can help you to drill down to the issue.

Please do let me know if you need further assistance with the same.

Thanks,

Ashwin

michal_keidar
Active Contributor
0 Kudos

Hi,

In order to try and understand where this error is coming from, please add the sap-ide-debug=true parameter to the URL of your Web IDE and launch it again. This will make Web IDE load with all its resources not preloaded, which means that Web IDE might load slower than usual.

Then execute the action again and attach here the exact error stack from the console log of the browser.

After that, don't forget to remove the URL parameter.

Regards,
Michal.

juantorresv
Explorer
0 Kudos

Hello, can you attach a screen of the error?.

Greetings!

Former Member
0 Kudos

Occurs when you right click on your app folder click Deploy -> Deploy to SAP Cloud Platform.

It seems like the ui5 resources aren't loading either with a deployed version. https://sapui5.int.sap.hana.ondemand.com/1.46.11/resources/sap/fiori/core-min-0.js (gives 503 Service Unavailable).

Sharathmg
Active Contributor
0 Kudos

Seems to be webide message. It could be an issue with the loading of Web IDE.

The link is not accessible: https://sapui5.int.sap.hana.ondemand.com/1.46.11/resources/sap/fiori/core-min-0.js

Check the link and use the working link to the UI5 library.

Regards,

Sharath