on 2023 Sep 10 7:11 AM
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.
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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.
Thanks, Varad
User | Count |
---|---|
85 | |
12 | |
9 | |
8 | |
8 | |
5 | |
4 | |
4 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.