cancel
Showing results for 
Search instead for 
Did you mean: 

Deployment IoT AE Applications to the NEO Error Uncaught ReferenceError

0 Kudos

Hi Experts,

We tried to deploy one of our applications IoT AE Applications to the NEO environment using the following guide

https://help.sap.com/viewer/86ce311577794701bae493bddd753aa3/1.54.0.0/en-US/894bb92f12c24cf1abc98757...

and also the blog

https://blogs.sap.com/2018/04/23/deploy-sap-ui5-iot-ae-applications-to-the-neo-environment/comment-p...

We will describe the different steps

Check configuration

Run application (iotaApplication with webIDE)

Result

Creation Sapui5 application (deployApp) and deletion of the Webapp folder and the neo-app file.

Copy Webapp and neo-app into deployApp

Deploy to SAP Cloud platform

Deploy a new application

Successfuly Deployed

when I click on the link (Open the active version of the application), I have the error

Uncaught ReferenceError: sap is not defined
    at ?hc_reset:25

Please suggest a solution about how to overcome this issue.

Thanks again for your assistance.

Abdoulaye.

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi,

The different steps described have solved my problem.

Steps to take:

  1. Move all files from webapp folder to the root folder of the project
  2. Delete ui5.yaml
  3. Deploy the project to NEO
  4. In neo-app.json file, I replaced the line "path": "/resources/sap/ui/iot", by "path": "/sap/ui5/1/resources/sap/ui/iot",

    {
    "path": "/resources/sap/ui/iot",
    "target": {
    "type": "destination",
    "name": "IOTAS_CONTROLS"
    },

Thanks Pavel for your assistance.

Best Regards,

Abdoulaye.

Answers (1)

Answers (1)

PavelPenaz
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Abdoulaye,

Can you try to link to the SAP UI5 Core libraries directly from the following link? https://sapui5.hana.ondemand.com/resources/sap-ui-core.js

i.e., paste the above URL to the SRC attribute of the "SAP-UI-BOOTSTRAP" script section.

Hope this helps, let us know please.

Thanks,

Pavel

0 Kudos

Hi Pavel

Thank you for your support, after the modifications

The application does not work anymore from WebIDE and since the deployment.

Error

Best regard,

Abdoulaye.