cancel
Showing results for 
Search instead for 
Did you mean: 

Tile cannot be loaded in SAP Build workzone, standard edition. Error while loading Component.js

dipender002
Explorer
2,358

I have created a Basic application in sap Fiori from template with launchpad and deployment configuration, I haven't done any changes in the application except giving a Title tag as it is test app for deployment, and further build the MTA file and deployed it to BTP account, The application is working fine in BAS as well as in BTP -> HTML5 applications

but it is not working in SAP build workzone, standard edition. while loading the tile, it is showing error in console that component.js could not be loaded.

I could not find a solution to it, as no external service is used and no changes made to any configuration file.
Please guide in it.
Thanks in advance.

View Entire Topic
MioYasutake
Active Contributor

Hi sadfsfa1223,

Does the manifest.json file have the following section?

    "sap.cloud": {
        "public": true,
        "service": "<service_name>"
    }

Service name can be found at the "sap.cloud.service" property of mta.yaml. Please look at the sample below.

- name: miyasutabooksui-destination-content
  type: com.sap.application.content
  requires:
  - name: cap-ui-destination-service
    parameters:
      content-target: true
  - name: cap-ui-repo-host
    parameters:
      service-key:
        name: cap-ui-repo-host-key
  - name: cap-ui-auth
    parameters:
      service-key:
        name: cap-ui-auth-key
  - name: srv-api # Add
  parameters:
    content:
      instance:
        destinations:
        - Name: cap-ui_html_repo_host
          ServiceInstanceName: cap-ui-html5-srv
          ServiceKeyName: cap-ui-repo-host-key
          sap.cloud.service: miyasutabooksui    <--use this

Best regards,

Mio

dipender002
Explorer

Hi Mio,

You're correct, the "sap.cloud" section is missing from the manifest file, it is not auto generated in manifest. After adding and redeploying, The application is working fine in SAP Build Work zone, standard Edition.

Thanks Mio for help.

VaradBhagwat
Explorer
0 Kudos

Thanks Mio.

This helped to resolve my first error as well. I was getting similar error, and adding section property "sap.cloud" in manifest.json loaded the app.

However, there is another problem, the metadata file is not loaded ! In console, the error is .... Failed to get contexts for ../lcapbomcap.comdassapbomcustomerenquiry/~8809a3d6-8196-4551-9763-47f8a3a8e9d8~/service/bomCapService/CustomerEnquiry with start index 0 and length 100 - Error: Could not load metadata: 500 error at Object.createError (https://sapui5.hana.ondemand.com/1.130.2/resources/sap/ui/core/library-preload.js:2322:3887) .

On checking the Application error logs, it shows "Error while retrieving destination DIRECT_SERVICE_BINDING from destination service. HTTP status code: 404". On checking the mta.yaml file, there is no DIRECT_SERVICE_BINDING destination".  So how to validate what is the correct destination name to be maintained in xs-app.json.

VaradBhagwat_0-1732759147161.png

Thanks, Varad