Skip to Content
1
Apr 27 at 11:24 AM

Invalid metadata document & Initial loading of metadata failed

124 Views Last edit Apr 27 at 09:26 PM 3 rev

Good Morning boys.

my SAPUI5 application tells me the following:

image.png

but the data source is configured correctly

Manifest.json

<code>{
    "_version": "1.8.0",
    "sap.app": {
        "id": "com.mycompany.z_fspm_car_valuation",
        "type": "application",
        "i18n": "i18n/i18n.properties",
        "applicationVersion": {
            "version": "1.0.0"
        },
        "title": "{{appTitle}}",
        "description": "{{appDescription}}",
        "sourceTemplate": {
            "id": "servicecatalog.connectivityComponentForManifest",
            "version": "0.0.0"
        },
        "dataSources": {
            "ZGW_CAR_VALUATION_SRV": {
                "uri": "https://aws-wdq.mycompany.com.ar:51025/sap/opu/odata/sap/ZGW_CAR_VALUATION_SRV/",
                "type": "OData",
                "settings":{
                    "odataVersion": "2.0"
                }
            }
        }
    },
    "sap.ui": {
        "technology": "UI5",
        "icons": {
            "icon": "",
            "favIcon": "",
            "phone": "",
            "phone@2": "",
            "tablet": "",
            "tablet@2": ""
        },
        "deviceTypes": {
            "desktop": true,
            "tablet": true,
            "phone": true
        },
        "supportedThemes": [
            "sap_hcb",
            "sap_belize"
        ]
    },
    "sap.ui5": {
        "rootView": {
            "viewName": "com.mycompany.z_fspm_car_valuation.view.AppView",
            "type": "XML"
        },
        "dependencies": {
            "minUI5Version": "1.30.0",
            "libs": {
                "sap.ui.layout": {},
                "sap.ui.core": {},
                "sap.m": {}
            }
        },
        "contentDensities": {
            "compact": true,
            "cozy": true
        },
        "models": {
            "i18n": {
                "type": "sap.ui.model.resource.ResourceModel",
                "settings": {
                    "bundleName": "com.mycompany.z_fspm_car_valuation.i18n.i18n"
                }
            },
            "": {
                "uri": "https://aws-wdq.mycompany.com.ar:51025/sap/opu/odata/sap/ZGW_CAR_VALUATION_SRV/",
                "type": "sap.ui.model.odata.v2.ODataModel",
                "settings": {
                    "defaultOperationMode": "Server",
                    "defaultBindingMode": "OneWay",
                    "defaultCountMode": "Request",
                    "useBatch": false
                },
                "dataSource": "ZGW_CAR_VALUATION_SRV",
                "preload": true
            }
        },
        "resources": {
            "css": [
                {
                    "uri": "css/style.css"
                }
            ]
        },
        "routing": {
            "config": {
                "routerClass": "sap.m.routing.Router",
                "viewType": "XML",
                "async": true,
                "viewPath": "com.mycompany.z_fspm_car_valuation.view",
                "controlAggregation": "pages",
                "controlId": "idAppControl",
                "clearControlAggregation": false
            },
            "routes": [
                {
                    "name": "main",
                    "pattern": "",
                    "target": [
                        "AppView"
                    ]
                },
                {
                    "name": "detail",
                    "pattern": "detail/{YEAR}/{CODVAL}/",
                    "target": [
                        "VehicleDetail"
                    ]
                }
            ],
            "targets": {
                "AppView": {
                    "viewType": "XML",
                    "transition": "slide",
                    "clearControlAggregation": false,
                    "viewName": "AppView"
                },
                "VehicleDetail": {
                    "viewType": "XML",
                    "transition": "slide",
                    "clearControlAggregation": false,
                    "viewName": "VehicleDetail"
                }
            }
        }
    },
    "sap.platform.abap": {
        "uri": "/sap/bc/ui5_ui5/sap/zfspm_car_val",
        "_version": "1.1.0"
    }
}

All the configuration is perfect, I have already consumed the odata service of "Northwind" ( https://services.odata.org/V2/Northwind/Northwind.svc/ ) in the same way and it works, but the service I am trying to consume does not work.

The service and Postman tell me "200 ok".

image.png

image.png

Postman says: "Unable to get local issuer certificate"

I am trying to consume the odata service of my company where I work.

Attachments

image.png (11.3 kB)
image.png (39.9 kB)
image.png (131.2 kB)