cancel
Showing results for 
Search instead for 
Did you mean: 

Error While Configuring ODataModel with SAPUI5

Former Member
0 Kudos

I've configured my destination and set my model in manifest.js and in neo-app.js. I've followed the instruction as giving in this URL OData Model Configuration .

I'm getting Error.

[ODataMetadata] initial loading of metadata failed - "

the URL of My Service is ..

https://xxxx.int.sap.hana.ondemand.com/xxx/xxx/xxx.xsodata/DLES_CONTENT.

Simple XML of top 1 element is as

<feedxmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"xmlns="http://www.w3.org/2005/Atom"xml:base="https://xxx.int.sap.hana.ondemand.com:443/xxx/xxx/xxx.xsodata/">
<titletype="text">xxx</title>
<id>
https://xxx.int.sap.hana.ondemand.com:443/xxx/xxx/xxx.xsodata/xxx
</id>
<author>
<name/>
</author>
<linkrel="self"title="xxx"href="xxx"/><entry>
<id>
https://xxx.int.sap.hana.ondemand.com:443/xxx/xxx/xxx.xsodata/xxx('225671794047739171')
</id>
<titletype="text"/><author>
<name/>
</author>
<linkrel="self"title="xxx"href="xxx('225671794047739171')"/>
<categoryterm="xxx.services.xxx.DLES_CONTENTType"scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"/><contenttype="application/xml"><m:properties>
<d:IDm:type="Edm.String">225671794047739171</d:ID>
<d:YEAR_MONTHm:type="Edm.String">2016-10</d:YEAR_MONTH>
<d:YEAR_QUARTERm:type="Edm.String">2016-Q4</d:YEAR_QUARTER>
<d:USER_COUNTRY_CODEm:type="Edm.String">AE</d:USER_COUNTRY_CODE>
<d:USER_COUNTRY_TEXTm:type="Edm.String">United Arab Em.</d:USER_COUNTRY_TEXT>
<d:USER_REGIONm:type="Edm.String">EMEA</d:USER_REGION>
<d:ITEM_IDm:type="Edm.String">s4h01e_en_col95</d:ITEM_ID>
<d:ITEM_PARENTCODEm:type="Edm.String">n/a</d:ITEM_PARENTCODE>
<d:ITEM_TYPEm:type="Edm.String">E-Learning</d:ITEM_TYPE>
<d:ITEM_TITLEm:type="Edm.String">Introduction to SAP Business Suite 4 SAP HANA</d:ITEM_TITLE>
<d:SURVEY_QUESTIONm:type="Edm.String">I can apply what I have learned to my job.</d:SURVEY_QUESTION>
<d:SURVEY_DIMENSIONm:type="Edm.String">Applicability</d:SURVEY_DIMENSION>
<d:PLATFORMm:type="Edm.String">SAP Learning Hub</d:PLATFORM>
<d:RESP_VERYBADm:type="Edm.Int32">0</d:RESP_VERYBAD>
<d:RESP_BADm:type="Edm.Int32">0</d:RESP_BAD>
<d:RESP_NEUTm:type="Edm.Int32">1</d:RESP_NEUT>
<d:RESP_GOODm:type="Edm.Int32">0</d:RESP_GOOD>
<d:RESP_VERYGOODm:type="Edm.Int32">0</d:RESP_VERYGOOD>
<d:RESP_NAm:type="Edm.Int32">0</d:RESP_NA>
<d:RESP_TOTALm:type="Edm.Int32">1</d:RESP_TOTAL>
</m:properties>
</content>
</entry>
</feed>

Accepted Solutions (0)

Answers (1)

Answers (1)

saurabh_vakil
Active Contributor
0 Kudos

In the dataSources object in manifest.json are you specifying the uri property as "/destinations/northwind/V2/Northwind/Northwind.svc/"? What happens if you specify it as just "/V2/Northwind/Northwind.svc/" instead?

Former Member
0 Kudos

I've also tried by template configuration , It does't give me any error but It also don't fech Tables and Next button is disabled .

on the other hand, when I configured in manifest.. the URL status show Okay, but Error is as medata failed ..