<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Model isn't loading when using CAP OData v2 Proxy in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/model-isn-t-loading-when-using-cap-odata-v2-proxy/qaa-p/12224568#M4575855</link>
    <description>&lt;P&gt;Please share the JavaScript that you use to run the standalone proxy.&lt;/P&gt;</description>
    <pubDate>Tue, 08 Sep 2020 08:40:17 GMT</pubDate>
    <dc:creator>gregorw</dc:creator>
    <dc:date>2020-09-08T08:40:17Z</dc:date>
    <item>
      <title>Model isn't loading when using CAP OData v2 Proxy</title>
      <link>https://community.sap.com/t5/technology-q-a/model-isn-t-loading-when-using-cap-odata-v2-proxy/qaq-p/12224567</link>
      <description>&lt;P&gt;I have a brand new OData v2 proxy, pointing to a Java based OData v4 CAP service. V4 end point is working as expected, and proxy seems too (it loads metadata and 2 entities with data and no issues).&lt;/P&gt;
  &lt;P&gt;When launching an app consuming that OData service, it loads metadata but UI5 complains that &lt;STRONG&gt;"&lt;/STRONG&gt;&lt;STRONG&gt;M.getMetaModel(...).requestObject is not a function"&lt;/STRONG&gt;, as you can see in attached image.&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1838926-bildschirmfoto-2020-09-08-um-101453.png" /&gt;&lt;/P&gt;
  &lt;P&gt;As I'm new to OData, I can't tell if that's an issue on my OData or configuration in the UI side, but it works with no issues when consuming OData v4 instead.&lt;/P&gt;
  &lt;P&gt;I suspect there's something wrong on my manifest.json or how metadata is generated.&lt;/P&gt;
  &lt;P&gt;Here is the &lt;STRONG&gt;metadata&lt;/STRONG&gt;:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;
&amp;lt;edmx:Edmx Version="1.0" xmlns:edmx="http://schemas.microsoft.com/ado/2007/06/edmx" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:sap="http://www.sap.com/Protocols/SAPData"&amp;gt;
  &amp;lt;edmx:Reference Uri="https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Capabilities.V1.xml" xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx"&amp;gt;
    &amp;lt;edmx:Include Alias="Capabilities" Namespace="Org.OData.Capabilities.V1"/&amp;gt;
  &amp;lt;/edmx:Reference&amp;gt;
  &amp;lt;edmx:Reference Uri="https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Core.V1.xml" xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx"&amp;gt;
    &amp;lt;edmx:Include Alias="Core" Namespace="Org.OData.Core.V1"/&amp;gt;
  &amp;lt;/edmx:Reference&amp;gt;
  &amp;lt;edmx:DataServices m:DataServiceVersion="2.0"&amp;gt;
    &amp;lt;Schema Namespace="MasterDataService" xmlns="http://schemas.microsoft.com/ado/2008/09/edm"&amp;gt;
      &amp;lt;EntityContainer Name="EntityContainer" m:IsDefaultEntityContainer="true"&amp;gt;
        &amp;lt;EntitySet Name="BuildingUsageType" EntityType="MasterDataService.BuildingUsageType"/&amp;gt;
        &amp;lt;EntitySet Name="Buildings" EntityType="MasterDataService.Buildings"/&amp;gt;
        &amp;lt;EntitySet Name="Sites" EntityType="MasterDataService.Sites"/&amp;gt;
        &amp;lt;AssociationSet Name="BuildingUsageType_BuildingRef" Association="MasterDataService.BuildingUsageType_BuildingRef"&amp;gt;
          &amp;lt;End Role="BuildingUsageType" EntitySet="BuildingUsageType"/&amp;gt;
          &amp;lt;End Role="Buildings" EntitySet="Buildings"/&amp;gt;
        &amp;lt;/AssociationSet&amp;gt;
        &amp;lt;AssociationSet Name="Buildings_SiteRef" Association="MasterDataService.Buildings_SiteRef"&amp;gt;
          &amp;lt;End Role="Buildings" EntitySet="Buildings"/&amp;gt;
          &amp;lt;End Role="Sites" EntitySet="Sites"/&amp;gt;
        &amp;lt;/AssociationSet&amp;gt;
      &amp;lt;/EntityContainer&amp;gt;
      &amp;lt;EntityType Name="BuildingUsageType"&amp;gt;
        &amp;lt;NavigationProperty Name="BuildingRef" Relationship="MasterDataService.BuildingUsageType_BuildingRef" FromRole="BuildingUsageType" ToRole="Buildings"/&amp;gt;
        &amp;lt;Property Name="UsageType" Type="Edm.String" MaxLength="50"/&amp;gt;
        &amp;lt;Property Name="StartDate" Type="Edm.DateTime" sap:display-format="Date"/&amp;gt;
        &amp;lt;Property Name="EndDate" Type="Edm.DateTime" sap:display-format="Date"/&amp;gt;
        &amp;lt;Property Name="BuildingRef_Irn" Type="Edm.String" MaxLength="50"/&amp;gt;
      &amp;lt;/EntityType&amp;gt;
      &amp;lt;EntityType Name="Buildings"&amp;gt;
        &amp;lt;Key&amp;gt;
          &amp;lt;PropertyRef Name="Irn"/&amp;gt;
        &amp;lt;/Key&amp;gt;
        &amp;lt;Property Name="Irn" Type="Edm.String" MaxLength="50" Nullable="false"/&amp;gt;
        &amp;lt;Property Name="LongName" Type="Edm.String" MaxLength="255"/&amp;gt;
        &amp;lt;Property Name="ShortName" Type="Edm.String" MaxLength="30"/&amp;gt;
        &amp;lt;NavigationProperty Name="SiteRef" Relationship="MasterDataService.Buildings_SiteRef" FromRole="Buildings" ToRole="Sites"/&amp;gt;
        &amp;lt;NavigationProperty Name="UsageTypes" Relationship="MasterDataService.BuildingUsageType_BuildingRef" FromRole="Buildings" ToRole="BuildingUsageType"/&amp;gt;
        &amp;lt;Property Name="SiteRef_Irn" Type="Edm.String" MaxLength="50"/&amp;gt;
      &amp;lt;/EntityType&amp;gt;
      &amp;lt;EntityType Name="Sites"&amp;gt;
        &amp;lt;Key&amp;gt;
          &amp;lt;PropertyRef Name="Irn"/&amp;gt;
        &amp;lt;/Key&amp;gt;
        &amp;lt;Property Name="Irn" Type="Edm.String" MaxLength="50" Nullable="false"/&amp;gt;
        &amp;lt;Property Name="LongName" Type="Edm.String" MaxLength="255"/&amp;gt;
        &amp;lt;Property Name="ShortName" Type="Edm.String" MaxLength="30"/&amp;gt;
        &amp;lt;Property Name="Intreno" Type="Edm.String" MaxLength="40"/&amp;gt;
        &amp;lt;NavigationProperty Name="Buildings" Relationship="MasterDataService.Buildings_SiteRef" FromRole="Sites" ToRole="Buildings"/&amp;gt;
      &amp;lt;/EntityType&amp;gt;
      &amp;lt;Association Name="BuildingUsageType_BuildingRef"&amp;gt;
        &amp;lt;End Role="BuildingUsageType" Type="MasterDataService.BuildingUsageType" Multiplicity="*"/&amp;gt;
        &amp;lt;End Role="Buildings" Type="MasterDataService.Buildings" Multiplicity="0..1"/&amp;gt;
        &amp;lt;ReferentialConstraint&amp;gt;
          &amp;lt;Principal Role="Buildings"&amp;gt;
            &amp;lt;PropertyRef Name="Irn"/&amp;gt;
          &amp;lt;/Principal&amp;gt;
          &amp;lt;Dependent Role="BuildingUsageType"&amp;gt;
            &amp;lt;PropertyRef Name="BuildingRef_Irn"/&amp;gt;
          &amp;lt;/Dependent&amp;gt;
        &amp;lt;/ReferentialConstraint&amp;gt;
      &amp;lt;/Association&amp;gt;
      &amp;lt;Association Name="Buildings_SiteRef"&amp;gt;
        &amp;lt;End Role="Buildings" Type="MasterDataService.Buildings" Multiplicity="*"/&amp;gt;
        &amp;lt;End Role="Sites" Type="MasterDataService.Sites" Multiplicity="0..1"/&amp;gt;
        &amp;lt;ReferentialConstraint&amp;gt;
          &amp;lt;Principal Role="Sites"&amp;gt;
            &amp;lt;PropertyRef Name="Irn"/&amp;gt;
          &amp;lt;/Principal&amp;gt;
          &amp;lt;Dependent Role="Buildings"&amp;gt;
            &amp;lt;PropertyRef Name="SiteRef_Irn"/&amp;gt;
          &amp;lt;/Dependent&amp;gt;
        &amp;lt;/ReferentialConstraint&amp;gt;
      &amp;lt;/Association&amp;gt;
      &amp;lt;Annotations Target="MasterDataService.EntityContainer/Buildings" xmlns="http://docs.oasis-open.org/odata/ns/edm"&amp;gt;
        &amp;lt;Annotation Term="Capabilities.DeleteRestrictions"&amp;gt;
          &amp;lt;Record Type="Capabilities.DeleteRestrictionsType"&amp;gt;
            &amp;lt;PropertyValue Property="Deletable" Bool="false"/&amp;gt;
          &amp;lt;/Record&amp;gt;
        &amp;lt;/Annotation&amp;gt;
        &amp;lt;Annotation Term="Capabilities.InsertRestrictions"&amp;gt;
          &amp;lt;Record Type="Capabilities.InsertRestrictionsType"&amp;gt;
            &amp;lt;PropertyValue Property="Insertable" Bool="false"/&amp;gt;
          &amp;lt;/Record&amp;gt;
        &amp;lt;/Annotation&amp;gt;
        &amp;lt;Annotation Term="Capabilities.UpdateRestrictions"&amp;gt;
          &amp;lt;Record Type="Capabilities.UpdateRestrictionsType"&amp;gt;
            &amp;lt;PropertyValue Property="Updatable" Bool="false"/&amp;gt;
          &amp;lt;/Record&amp;gt;
        &amp;lt;/Annotation&amp;gt;
      &amp;lt;/Annotations&amp;gt;
      &amp;lt;Annotations Target="MasterDataService.EntityContainer/Sites" xmlns="http://docs.oasis-open.org/odata/ns/edm"&amp;gt;
        &amp;lt;Annotation Term="Capabilities.DeleteRestrictions"&amp;gt;
          &amp;lt;Record Type="Capabilities.DeleteRestrictionsType"&amp;gt;
            &amp;lt;PropertyValue Property="Deletable" Bool="false"/&amp;gt;
          &amp;lt;/Record&amp;gt;
        &amp;lt;/Annotation&amp;gt;
        &amp;lt;Annotation Term="Capabilities.InsertRestrictions"&amp;gt;
          &amp;lt;Record Type="Capabilities.InsertRestrictionsType"&amp;gt;
            &amp;lt;PropertyValue Property="Insertable" Bool="false"/&amp;gt;
          &amp;lt;/Record&amp;gt;
        &amp;lt;/Annotation&amp;gt;
        &amp;lt;Annotation Term="Capabilities.UpdateRestrictions"&amp;gt;
          &amp;lt;Record Type="Capabilities.UpdateRestrictionsType"&amp;gt;
            &amp;lt;PropertyValue Property="Updatable" Bool="false"/&amp;gt;
          &amp;lt;/Record&amp;gt;
        &amp;lt;/Annotation&amp;gt;
      &amp;lt;/Annotations&amp;gt;
      &amp;lt;Annotations Target="MasterDataService.Sites/Intreno" xmlns="http://docs.oasis-open.org/odata/ns/edm"&amp;gt;
        &amp;lt;Annotation Term="Core.Computed" Bool="true"/&amp;gt;
      &amp;lt;/Annotations&amp;gt;
    &amp;lt;/Schema&amp;gt;
  &amp;lt;/edmx:DataServices&amp;gt;
&amp;lt;/edmx:Edmx&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Here is &lt;STRONG&gt;manifest.json&lt;/STRONG&gt;:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;{
  "_version": "1.8.0",
  "sap.app": {
    "id": "buildings",
    "type": "application",
    "title": "Buildings Details",
    "description": "buildings",
    "dataSources": {
      "MasterDataService": {
        "uri": "/v2/MasterDataService/",
        "type": "OData",
        "settings": {
          "odataVersion": "2.0"
        }
      }
    }
  },
  "sap.ui5": {
    "dependencies": {
      "libs": {
        "sap.fe.templates": {}
      }
    },
    "models": {
      "": {
        "dataSource": "MasterDataService",
        "settings": {
          "synchronizationMode": "None",
          "operationMode": "Server",
          "autoExpandSelect": false,
          "earlyRequests": false,
          "groupProperties": {
            "default": {
              "submit": "Auto"
            }
          }
        }
      }
    },
    "routing": {
      "routes": [
        {
          "pattern": ":?query:",
          "name": "Buildings",
          "target": "Buildings"
        }
      ],
      "config": {
        "routerClass": "sap.m.routing.Router",
        "viewType": "XML",
        "async": true,
        "viewPath": "buildings.view",
        "controlAggregation": "pages",
        "clearControlAggregation": false
      },
      "targets": {
        "Buildings": {
          "type": "Component",
          "id": "Buildings",
          "viewType": "XML",
          "transition": "slide",
          "clearControlAggregation": false,
          "viewId": "MarioId",
          "viewName": "App",
          "options": {
            "settings": {
              "entitySet": "Buildings"
            }
          }
        }
      }
    }
  }
}
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;and here my &lt;STRONG&gt;view&lt;/STRONG&gt;:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;&amp;lt;mvc:View
   xmlns="sap.m"
   xmlns:mvc="sap.ui.core.mvc"
   xmlns:smartFilterBar="sap.ui.comp.smartfilterbar"
   xmlns:smartTable="sap.ui.comp.smarttable"
   displayBlock="true"
   &amp;gt;
    &amp;lt;App id="app"&amp;gt;
        &amp;lt;pages&amp;gt;
            &amp;lt;Page id="page" title="{i18n&amp;gt;title}"&amp;gt;
                &amp;lt;content&amp;gt;
                &amp;lt;/content&amp;gt;
            &amp;lt;/Page&amp;gt;
        &amp;lt;/pages&amp;gt;
    &amp;lt;/App&amp;gt;
&amp;lt;/mvc:View&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;If anyone can help, it would be very nice of you.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 08:23:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/model-isn-t-loading-when-using-cap-odata-v2-proxy/qaq-p/12224567</guid>
      <dc:creator>mario_brandao2</dc:creator>
      <dc:date>2020-09-08T08:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: Model isn't loading when using CAP OData v2 Proxy</title>
      <link>https://community.sap.com/t5/technology-q-a/model-isn-t-loading-when-using-cap-odata-v2-proxy/qaa-p/12224568#M4575855</link>
      <description>&lt;P&gt;Please share the JavaScript that you use to run the standalone proxy.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 08:40:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/model-isn-t-loading-when-using-cap-odata-v2-proxy/qaa-p/12224568#M4575855</guid>
      <dc:creator>gregorw</dc:creator>
      <dc:date>2020-09-08T08:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: Model isn't loading when using CAP OData v2 Proxy</title>
      <link>https://community.sap.com/t5/technology-q-a/model-isn-t-loading-when-using-cap-odata-v2-proxy/qaa-p/12224569#M4575856</link>
      <description>&lt;P&gt;Thanks  &lt;SPAN class="mention-scrubbed"&gt;gregorw&lt;/SPAN&gt; here it goes:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;const express = require("express");
const proxy = require("@sap/cds-odata-v2-adapter-proxy");

const host = "0.0.0.0";
const port = process.env.PORT || 4004;

(async () =&amp;gt; {
  const app = express();

  app.use(proxy({
    target: "http://localhost:8080/odata/v4",
    model: "./csnv2.json",
    services: {
      "/MasterDataService/": "MasterDataService"
    }
  }));

  const server = app.listen(port, host, () =&amp;gt; console.info(`app is listing at ${host}:${port}`));
  server.on("error", error =&amp;gt; console.error(error.stack));
})();&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 08 Sep 2020 09:07:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/model-isn-t-loading-when-using-cap-odata-v2-proxy/qaa-p/12224569#M4575856</guid>
      <dc:creator>mario_brandao2</dc:creator>
      <dc:date>2020-09-08T09:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: Model isn't loading when using CAP OData v2 Proxy</title>
      <link>https://community.sap.com/t5/technology-q-a/model-isn-t-loading-when-using-cap-odata-v2-proxy/qaa-p/12224570#M4575857</link>
      <description>&lt;P&gt;And csn file too, if that helps.&lt;/P&gt;&lt;P&gt;&lt;A href="https://answers.sap.com/storage/temp/1838927-csnv2json.txt"&gt;csnv2json.txt&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 09:09:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/model-isn-t-loading-when-using-cap-odata-v2-proxy/qaa-p/12224570#M4575857</guid>
      <dc:creator>mario_brandao2</dc:creator>
      <dc:date>2020-09-08T09:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: Model isn't loading when using CAP OData v2 Proxy</title>
      <link>https://community.sap.com/t5/technology-q-a/model-isn-t-loading-when-using-cap-odata-v2-proxy/qaa-p/12224571#M4575858</link>
      <description>&lt;P&gt;Hi Mario,&lt;/P&gt;&lt;P&gt;please try:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;    services:{"/MasterData": "MasterDataService"}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;like in my example: &lt;A href="https://github.com/gregorwolf/bookshop-demo/blob/master/standalone-v2-proxy/index.js#L19"&gt;index.js#L19&lt;/A&gt;&lt;/P&gt;&lt;P&gt;CU&lt;BR /&gt;Gregor&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 09:11:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/model-isn-t-loading-when-using-cap-odata-v2-proxy/qaa-p/12224571#M4575858</guid>
      <dc:creator>gregorw</dc:creator>
      <dc:date>2020-09-08T09:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: Model isn't loading when using CAP OData v2 Proxy</title>
      <link>https://community.sap.com/t5/technology-q-a/model-isn-t-loading-when-using-cap-odata-v2-proxy/qaa-p/12224572#M4575859</link>
      <description>&lt;P&gt;I see, but how is it related to the issue I'm facing?&lt;/P&gt;&lt;P&gt;My v4 end point uses MasterDataService as much as v2, so, I tried removing the trailing slash to be services:{"/MasterDataService": "MasterDataService"} instead, but it made no difference on UI5's error.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 09:28:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/model-isn-t-loading-when-using-cap-odata-v2-proxy/qaa-p/12224572#M4575859</guid>
      <dc:creator>mario_brandao2</dc:creator>
      <dc:date>2020-09-08T09:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: Model isn't loading when using CAP OData v2 Proxy</title>
      <link>https://community.sap.com/t5/technology-q-a/model-isn-t-loading-when-using-cap-odata-v2-proxy/qaa-p/12224573#M4575860</link>
      <description>&lt;P&gt;Hi &lt;SPAN class="mention-scrubbed"&gt;mario.brandao2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;but isn't the V4 endpoint reachable at /master-data ? So you have to use the service-path as described in: &lt;A href="https://www.npmjs.com/package/@sap/cds-odata-v2-adapter-proxy#cds-standalone-backend-cap-java-or-cap-nodejs" target="test_blank"&gt;https://www.npmjs.com/package/@sap/cds-odata-v2-adapter-proxy#cds-standalone-backend-cap-java-or-cap-nodejs&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;"&amp;lt;odata-v4-service-path&amp;gt;": "&amp;lt;qualified.ServiceName&amp;gt;"&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 08 Sep 2020 10:00:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/model-isn-t-loading-when-using-cap-odata-v2-proxy/qaa-p/12224573#M4575860</guid>
      <dc:creator>gregorw</dc:creator>
      <dc:date>2020-09-08T10:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: Model isn't loading when using CAP OData v2 Proxy</title>
      <link>https://community.sap.com/t5/technology-q-a/model-isn-t-loading-when-using-cap-odata-v2-proxy/qaa-p/12224574#M4575861</link>
      <description>&lt;P&gt;but v2 is working too, for instance, &lt;A href="http://0.0.0.0:4004/v2/MasterDataService/$metadata" target="test_blank"&gt;http://0.0.0.0:4004/v2/MasterDataService/$metadata&lt;/A&gt; returns the following:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;
&amp;lt;edmx:Edmx Version="1.0" xmlns:edmx="http://schemas.microsoft.com/ado/2007/06/edmx" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:sap="http://www.sap.com/Protocols/SAPData"&amp;gt;
  &amp;lt;edmx:Reference Uri="https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Capabilities.V1.xml" xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx"&amp;gt;
    &amp;lt;edmx:Include Alias="Capabilities" Namespace="Org.OData.Capabilities.V1"/&amp;gt;
  &amp;lt;/edmx:Reference&amp;gt;
  &amp;lt;edmx:Reference Uri="https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Core.V1.xml" xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx"&amp;gt;
    &amp;lt;edmx:Include Alias="Core" Namespace="Org.OData.Core.V1"/&amp;gt;
  &amp;lt;/edmx:Reference&amp;gt;
  &amp;lt;edmx:DataServices m:DataServiceVersion="2.0"&amp;gt;
    &amp;lt;Schema Namespace="MasterDataService" xmlns="http://schemas.microsoft.com/ado/2008/09/edm"&amp;gt;
      &amp;lt;EntityContainer Name="EntityContainer" m:IsDefaultEntityContainer="true"&amp;gt;
        &amp;lt;EntitySet Name="BuildingUsageType" EntityType="MasterDataService.BuildingUsageType"/&amp;gt;
        &amp;lt;EntitySet Name="Buildings" EntityType="MasterDataService.Buildings"/&amp;gt;
        &amp;lt;EntitySet Name="Sites" EntityType="MasterDataService.Sites"/&amp;gt;
        &amp;lt;AssociationSet Name="BuildingUsageType_BuildingRef" Association="MasterDataService.BuildingUsageType_BuildingRef"&amp;gt;
          &amp;lt;End Role="BuildingUsageType" EntitySet="BuildingUsageType"/&amp;gt;
          &amp;lt;End Role="Buildings" EntitySet="Buildings"/&amp;gt;
        &amp;lt;/AssociationSet&amp;gt;
        &amp;lt;AssociationSet Name="Buildings_SiteRef" Association="MasterDataService.Buildings_SiteRef"&amp;gt;
          &amp;lt;End Role="Buildings" EntitySet="Buildings"/&amp;gt;
          &amp;lt;End Role="Sites" EntitySet="Sites"/&amp;gt;
        &amp;lt;/AssociationSet&amp;gt;
      &amp;lt;/EntityContainer&amp;gt;
      &amp;lt;EntityType Name="BuildingUsageType"&amp;gt;
        &amp;lt;NavigationProperty Name="BuildingRef" Relationship="MasterDataService.BuildingUsageType_BuildingRef" FromRole="BuildingUsageType" ToRole="Buildings"/&amp;gt;
        &amp;lt;Property Name="UsageType" Type="Edm.String" MaxLength="50"/&amp;gt;
        &amp;lt;Property Name="StartDate" Type="Edm.DateTime" sap:display-format="Date"/&amp;gt;
        &amp;lt;Property Name="EndDate" Type="Edm.DateTime" sap:display-format="Date"/&amp;gt;
        &amp;lt;Property Name="BuildingRef_Irn" Type="Edm.String" MaxLength="50"/&amp;gt;
      &amp;lt;/EntityType&amp;gt;
      &amp;lt;EntityType Name="Buildings"&amp;gt;
        &amp;lt;Key&amp;gt;
          &amp;lt;PropertyRef Name="Irn"/&amp;gt;
        &amp;lt;/Key&amp;gt;
        &amp;lt;Property Name="Irn" Type="Edm.String" MaxLength="50" Nullable="false"/&amp;gt;
        &amp;lt;Property Name="LongName" Type="Edm.String" MaxLength="255"/&amp;gt;
        &amp;lt;Property Name="ShortName" Type="Edm.String" MaxLength="30"/&amp;gt;
        &amp;lt;NavigationProperty Name="SiteRef" Relationship="MasterDataService.Buildings_SiteRef" FromRole="Buildings" ToRole="Sites"/&amp;gt;
        &amp;lt;NavigationProperty Name="UsageTypes" Relationship="MasterDataService.BuildingUsageType_BuildingRef" FromRole="Buildings" ToRole="BuildingUsageType"/&amp;gt;
        &amp;lt;Property Name="SiteRef_Irn" Type="Edm.String" MaxLength="50"/&amp;gt;
      &amp;lt;/EntityType&amp;gt;
      &amp;lt;EntityType Name="Sites"&amp;gt;
        &amp;lt;Key&amp;gt;
          &amp;lt;PropertyRef Name="Irn"/&amp;gt;
        &amp;lt;/Key&amp;gt;
        &amp;lt;Property Name="Irn" Type="Edm.String" MaxLength="50" Nullable="false"/&amp;gt;
        &amp;lt;Property Name="LongName" Type="Edm.String" MaxLength="255"/&amp;gt;
        &amp;lt;Property Name="ShortName" Type="Edm.String" MaxLength="30"/&amp;gt;
        &amp;lt;Property Name="Intreno" Type="Edm.String" MaxLength="40"/&amp;gt;
        &amp;lt;NavigationProperty Name="Buildings" Relationship="MasterDataService.Buildings_SiteRef" FromRole="Sites" ToRole="Buildings"/&amp;gt;
      &amp;lt;/EntityType&amp;gt;
      &amp;lt;Association Name="BuildingUsageType_BuildingRef"&amp;gt;
        &amp;lt;End Role="BuildingUsageType" Type="MasterDataService.BuildingUsageType" Multiplicity="*"/&amp;gt;
        &amp;lt;End Role="Buildings" Type="MasterDataService.Buildings" Multiplicity="0..1"/&amp;gt;
        &amp;lt;ReferentialConstraint&amp;gt;
          &amp;lt;Principal Role="Buildings"&amp;gt;
            &amp;lt;PropertyRef Name="Irn"/&amp;gt;
          &amp;lt;/Principal&amp;gt;
          &amp;lt;Dependent Role="BuildingUsageType"&amp;gt;
            &amp;lt;PropertyRef Name="BuildingRef_Irn"/&amp;gt;
          &amp;lt;/Dependent&amp;gt;
        &amp;lt;/ReferentialConstraint&amp;gt;
      &amp;lt;/Association&amp;gt;
      &amp;lt;Association Name="Buildings_SiteRef"&amp;gt;
        &amp;lt;End Role="Buildings" Type="MasterDataService.Buildings" Multiplicity="*"/&amp;gt;
        &amp;lt;End Role="Sites" Type="MasterDataService.Sites" Multiplicity="0..1"/&amp;gt;
        &amp;lt;ReferentialConstraint&amp;gt;
          &amp;lt;Principal Role="Sites"&amp;gt;
            &amp;lt;PropertyRef Name="Irn"/&amp;gt;
          &amp;lt;/Principal&amp;gt;
          &amp;lt;Dependent Role="Buildings"&amp;gt;
            &amp;lt;PropertyRef Name="SiteRef_Irn"/&amp;gt;
          &amp;lt;/Dependent&amp;gt;
        &amp;lt;/ReferentialConstraint&amp;gt;
      &amp;lt;/Association&amp;gt;
      &amp;lt;Annotations Target="MasterDataService.EntityContainer/Buildings" xmlns="http://docs.oasis-open.org/odata/ns/edm"&amp;gt;
        &amp;lt;Annotation Term="Capabilities.DeleteRestrictions"&amp;gt;
          &amp;lt;Record Type="Capabilities.DeleteRestrictionsType"&amp;gt;
            &amp;lt;PropertyValue Property="Deletable" Bool="false"/&amp;gt;
          &amp;lt;/Record&amp;gt;
        &amp;lt;/Annotation&amp;gt;
        &amp;lt;Annotation Term="Capabilities.InsertRestrictions"&amp;gt;
          &amp;lt;Record Type="Capabilities.InsertRestrictionsType"&amp;gt;
            &amp;lt;PropertyValue Property="Insertable" Bool="false"/&amp;gt;
          &amp;lt;/Record&amp;gt;
        &amp;lt;/Annotation&amp;gt;
        &amp;lt;Annotation Term="Capabilities.UpdateRestrictions"&amp;gt;
          &amp;lt;Record Type="Capabilities.UpdateRestrictionsType"&amp;gt;
            &amp;lt;PropertyValue Property="Updatable" Bool="false"/&amp;gt;
          &amp;lt;/Record&amp;gt;
        &amp;lt;/Annotation&amp;gt;
      &amp;lt;/Annotations&amp;gt;
      &amp;lt;Annotations Target="MasterDataService.EntityContainer/Sites" xmlns="http://docs.oasis-open.org/odata/ns/edm"&amp;gt;
        &amp;lt;Annotation Term="Capabilities.DeleteRestrictions"&amp;gt;
          &amp;lt;Record Type="Capabilities.DeleteRestrictionsType"&amp;gt;
            &amp;lt;PropertyValue Property="Deletable" Bool="false"/&amp;gt;
          &amp;lt;/Record&amp;gt;
        &amp;lt;/Annotation&amp;gt;
        &amp;lt;Annotation Term="Capabilities.InsertRestrictions"&amp;gt;
          &amp;lt;Record Type="Capabilities.InsertRestrictionsType"&amp;gt;
            &amp;lt;PropertyValue Property="Insertable" Bool="false"/&amp;gt;
          &amp;lt;/Record&amp;gt;
        &amp;lt;/Annotation&amp;gt;
        &amp;lt;Annotation Term="Capabilities.UpdateRestrictions"&amp;gt;
          &amp;lt;Record Type="Capabilities.UpdateRestrictionsType"&amp;gt;
            &amp;lt;PropertyValue Property="Updatable" Bool="false"/&amp;gt;
          &amp;lt;/Record&amp;gt;
        &amp;lt;/Annotation&amp;gt;
      &amp;lt;/Annotations&amp;gt;
      &amp;lt;Annotations Target="MasterDataService.Sites/Intreno" xmlns="http://docs.oasis-open.org/odata/ns/edm"&amp;gt;
        &amp;lt;Annotation Term="Core.Computed" Bool="true"/&amp;gt;
      &amp;lt;/Annotations&amp;gt;
    &amp;lt;/Schema&amp;gt;
  &amp;lt;/edmx:DataServices&amp;gt;
&amp;lt;/edmx:Edmx&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The issue happens when the UI5 app is launched pointing to that metadata. The metadata is loaded but then it shows the error I have attached as image above.&lt;/P&gt;&lt;P&gt;On the other side, the very same app worked fine when using OData v4&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 10:10:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/model-isn-t-loading-when-using-cap-odata-v2-proxy/qaa-p/12224574#M4575861</guid>
      <dc:creator>mario_brandao2</dc:creator>
      <dc:date>2020-09-08T10:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: Model isn't loading when using CAP OData v2 Proxy</title>
      <link>https://community.sap.com/t5/technology-q-a/model-isn-t-loading-when-using-cap-odata-v2-proxy/qaa-p/12224575#M4575862</link>
      <description>&lt;P&gt;I have solved it. It was just some misconfiguration. Thank you anyway!&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 13:27:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/model-isn-t-loading-when-using-cap-odata-v2-proxy/qaa-p/12224575#M4575862</guid>
      <dc:creator>mario_brandao2</dc:creator>
      <dc:date>2020-09-10T13:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: Model isn't loading when using CAP OData v2 Proxy</title>
      <link>https://community.sap.com/t5/technology-q-a/model-isn-t-loading-when-using-cap-odata-v2-proxy/qaa-p/12224576#M4575863</link>
      <description>&lt;P&gt;Hello  &lt;SPAN class="mention-scrubbed"&gt;gregorw&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;I have a very similar issue. Using a generated fiori elements app and CAP.&lt;/P&gt;&lt;P&gt;I do not need the draft function (and "normal" edit seems not to be implemented with v4) and so I decided to move to ODATA v2. I added&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1982606-1.jpg" /&gt;&lt;/P&gt;&lt;P&gt;and my ODATA service is available with .../v2 in URL. Services are coming out of the db/schema entities.&lt;/P&gt;&lt;P&gt;As well changes my manifest.json of the UI app to:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1982607-2.jpg" /&gt;&lt;/P&gt;&lt;P&gt;Ending upin the same problem as described above.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1982608-3jpj.jpg" /&gt;&lt;/P&gt;&lt;P&gt;Tried the approach described here&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1982610-4.jpg" /&gt;&lt;/P&gt;&lt;P&gt;But it does not work. I was not sure what model to take. So I generated it with cds complie ../srv/Applications.cds --to csn.&lt;/P&gt;&lt;P&gt;Any idea ?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2021 12:38:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/model-isn-t-loading-when-using-cap-odata-v2-proxy/qaa-p/12224576#M4575863</guid>
      <dc:creator>T1mey</dc:creator>
      <dc:date>2021-10-01T12:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: Model isn't loading when using CAP OData v2 Proxy</title>
      <link>https://community.sap.com/t5/technology-q-a/model-isn-t-loading-when-using-cap-odata-v2-proxy/qaa-p/12224577#M4575864</link>
      <description>&lt;P&gt;Hi Mario,&lt;/P&gt;&lt;P&gt;I'm facing the same issue, could you explain how did you solve it please?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 04:56:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/model-isn-t-loading-when-using-cap-odata-v2-proxy/qaa-p/12224577#M4575864</guid>
      <dc:creator>former_member160153</dc:creator>
      <dc:date>2021-12-07T04:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: Model isn't loading when using CAP OData v2 Proxy</title>
      <link>https://community.sap.com/t5/technology-q-a/model-isn-t-loading-when-using-cap-odata-v2-proxy/qaa-p/12224578#M4575865</link>
      <description>&lt;P&gt;Hi  &lt;SPAN class="mention-scrubbed"&gt;mario.brandao2&lt;/SPAN&gt; . What was the misconfiguration? &lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 19:46:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/model-isn-t-loading-when-using-cap-odata-v2-proxy/qaa-p/12224578#M4575865</guid>
      <dc:creator>bdeboer</dc:creator>
      <dc:date>2022-05-26T19:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: Model isn't loading when using CAP OData v2 Proxy</title>
      <link>https://community.sap.com/t5/technology-q-a/model-isn-t-loading-when-using-cap-odata-v2-proxy/qaa-p/13794687#M4841564</link>
      <description>I am also facing the same issue. Please let me know if you have found the solution</description>
      <pubDate>Wed, 14 Aug 2024 12:59:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/model-isn-t-loading-when-using-cap-odata-v2-proxy/qaa-p/13794687#M4841564</guid>
      <dc:creator>Swetha__Balusamy</dc:creator>
      <dc:date>2024-08-14T12:59:00Z</dc:date>
    </item>
  </channel>
</rss>

