Skip to Content
0
Jun 23, 2020 at 07:52 AM

please help - OData - initial loading of metadata failed - NO DATA

791 Views Last edit Jun 23, 2020 at 07:53 AM 2 rev

Hi,

I am facing an issue while trying to consume ODATA and binding (aggregation binding) it with list item in my demo app.

The webpage is showing "No Data"

ODATA SERVICE METADATA:

https://sapes5.sapdevcenter.com/sap/opu/odata/IWBEP/GWSAMPLE_BASIC/$metadata

Error:

[ODataMetadata]initial loading of metadata failed

Error: HTTP request failed

VIEW

<IconTabFilter text="Data Binding" key="db">
<content>
<List headerText="Products" items="{/ProductSet}">
<items>
<ObjectListItem title="{Name}" number="{Price}" intro="{ProductID}"/>
</items>
</List>
</content>
</IconTabFilter>

MANIFEST.JSON

"sap.app": {
...
   "dataSources": {
      "ES4": {
            "uri": "/destinations/ES5/sap/opu/odata/IWBEP/GWSAMPLE_BASIC/",
            "type": "OData",
            "settings": {
                "annotations": [],
                "odataVersion": "2.0",
                "localUri": ""
            }
        }
}

...

"models": {
...other models
	"": {
	  "dataSource": "ES5"
	}
}

NEOAPP.JSON

<strong><em>{
"path": "/destinations/ES5",
"target": {
"type": "destination",
"name": "ES5"
},
"description": "ES5 Demo Service"
}</em></strong>

The destination ES5 has been configured in the backend (SAP HANA CLOUD PLATFORM COCKPIT) also. Tried with no authentication and basic authentication. Still no data is displayed.

Connection testing was successful with message "Connection to "ES5" established. Response returned: 307: Temporary Redirect"