Skip to Content
Former Member
Oct 06, 2017 at 02:21 PM

SAPUI5 [ODataMetadata] initial loading of metadata failed while using OData service

10626 Views Last edit Oct 06, 2017 at 07:56 AM 4 rev


I have problem while using OData service with sapui
In manifest.json dataSource contiains:

"adminsRemote": {
  "uri": "/odata.svc/",
  "type": "OData"


<?xml version="1.0" encoding="UTF-8" standalone="yes"?><edmx:Edmx Version="1.0" xmlns:edmx=""> <edmx:DataServices xmlns:m="" m:DataServiceVersion="1.0" xmlns:edmx="">  <Schema Namespace="Data" xmlns:d="" xmlns:m="" xmlns="">   <EntityType Name="Admin">    <Key>     <PropertyRef Name="id"/>    </Key>    <Property Name="id" Type="Edm.Int64" Nullable="false"/>    <Property Name="username" Type="Edm.String" Nullable="true"/>    <Property Name="email" Type="Edm.String" Nullable="true"/>   </EntityType>   <EntityContainer Name="Data" m:IsDefaultEntityContainer="true">    <EntitySet Name="Admins" EntityType="Data.Admin"/>   </EntityContainer>  </Schema> </edmx:DataServices></edmx:Edmx>

But the same error appeared:
[ODataMetadata] initial loading of metadata faile

In browser network panel I see, that metadata loaded correct, like sample above.

What's wrong?