cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

UI5 apps added to SAP Build Workzone not working

akhthaaralibadhusha
Participant
689

I have created a Freestyle UI5 application and deployed it to BTP with Managed approuter. Added the UI5 application to a site in SAP Build Workzone. When I try to open the application by pressing the tile, it keeps on loading, and ended up with error in console.
Error:
The issue is most likely caused by application Please create a support incident and assign it to the support component of the respective application 

manifest.json

{
  "_version": "1.60.0",
  "sap.app": {
    "id": "com.alcon.ftarequestssupplier",
    "type": "application",
    "i18n": "i18n/i18n.properties",
    "applicationVersion": {
      "version": "0.0.1"
    },
    "title": "{{appTitle}}",
    "description": "{{appDescription}}",
    "resources": "resources.json",
    "sourceTemplate": {
      "id": "@sap/generator-fiori:basic",
      "version": "1.16.5",
      "toolsId": "e0547311-82f0-46e3-9d66-9d981d487667"
    },
    "dataSources": {
      "Z8CZV_SB_FTA_HD_VAN": {
        "uri": "/sap/opu/odata/IWFND/CATALOGSERVICE;v=2/Annotations(TechnicalName='Z8CZV_SB_FTA_HD_VAN',Version='0001')/$value/",
        "type": "ODataAnnotation",
        "settings": {
          "localUri": "localService/mainService/Z8CZV_SB_FTA_HD_VAN.xml"
        }
      },
      "mainService": {
        "uri": "/sap/opu/odata/sap/Z8CZV_SB_FTA_HD/",
        "type": "OData",
        "settings": {
          "annotations": [
            "Z8CZV_SB_FTA_HD_VAN"
          ],
          "localUri": "localService/mainService/metadata.xml",
          "odataVersion": "2.0"
        }
      },
      "valueHelpService": {
        "uri": "/sap/opu/odata/sap/Z8CZV_SB_PREF_CODES/",
        "type": "OData",
        "settings": {
          "odataVersion": "2.0"
        }
      },
      "actionService": {
        "uri": "/sap/opu/odata/sap/Z8CZGW_VP_ACTIONS_SRV/",
        "type": "OData",
        "settings": {
          "odataVersion": "2.0"
        }
      }
    },
    "crossNavigation": {
      "inbounds": {
        "ftarequests-manage": {
          "semanticObject": "ftarequests",
          "action": "manage",
          "title": "{{ftarequests-manage.flpTitle}}",
          "signature": {
            "parameters": {},
            "additionalParameters": "allowed"
          }
        }
      }
    }
  },
  "sap.ui": {
    "technology": "UI5",
    "fullWidth": true,
    "icons": {
      "icon": "",
      "favIcon": "",
      "phone": "",
      "phone@2": "",
      "tablet": "",
      "tablet@2": ""
    },
    "deviceTypes": {
      "desktop": true,
      "tablet": true,
      "phone": true
    }
  },
  "sap.ui5": {
    "flexEnabled": true,
    "dependencies": {
      "minUI5Version": "1.120.14",
      "libs": {
        "sap.m": {},
        "sap.ui.core": {}
      }
    },
    "contentDensities": {
      "compact": true,
      "cozy": true
    },
    "models": {
      "i18n": {
        "type": "sap.ui.model.resource.ResourceModel",
        "settings": {
          "bundleName": "com.alcon.ftarequestssupplier.i18n.i18n"
        }
      },
      "": {
        "dataSource": "mainService",
        "preload": true,
        "settings": {}
      },
      "action":{
        "dataSource": "actionService",
        "preload": true,
        "settings": {}
      },
      "valueHelp":{
        "dataSource": "valueHelpService",
        "preload": true,
        "settings": {}
      }
    },
    "resources": {
      "css": [
        {
          "uri": "css/style.css"
        }
      ]
    },
    "routing": {
      "config": {
        "routerClass": "sap.m.routing.Router",
        "controlAggregation": "pages",
        "controlId": "app",
        "transition": "slide",
        "type": "View",
        "viewType": "XML",
        "path": "com.alcon.ftarequestssupplier.view",
        "async": true,
        "viewPath": "com.alcon.ftarequestssupplier.view"
      },
      "routes": [
        {
          "name": "RouteWorklist",
          "pattern": ":?query:",
          "target": [
            "TargetWorklist"
          ]
        },
        {
          "pattern": "Products(guid'{sdreqhd_uuid}',{smtp_addr})",
          "name": "detail",
          "target": "detail"
        }
      ],
      "targets": {
        "TargetWorklist": {
          "id": "Worklist",
          "name": "Worklist"
        },
        "detail": {
          "viewId": "detail",
          "viewName": "Detail"
        }
      }
    },
    "rootView": {
      "viewName": "com.alcon.ftarequestssupplier.view.App",
      "type": "XML",
      "id": "App"
    }
  }
}

Error


alcon-error.png

Accepted Solutions (1)

Accepted Solutions (1)

WouterLemaire
SAP Mentor
SAP Mentor

sap.cloud config is missing in the manifest.json as in this example below https://github.com/lemaiwo/bookshopdemo/blob/0cd9e6fbbbe0f0333d6f3470cd35ea3eb4900aa2/app/admin-book... 

Answers (1)

Answers (1)

jlong
Product and Topic Expert
Product and Topic Expert
0 Kudos