Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9238

Error when fetching data using OData Services: "Multiple resources found. Inconsistency between data model and service description found."

$
0
0

Hi everyone,

 

I get an error message ("Multiple resources found. Inconsistency between data model and service description found.") when I fetch data from a table in a database which contains more than one record.

 

This is my Rest service (based on view)

service {  "SYS"."M_TABLES"  as "Table" keys ("SCHEMA_NAME") ;
}

 

This is the function which consumers Rest Service

 




showTables: function(selectedSchema) {

    var oModel = new sap.ui.model.odata.ODataModel("/DataGenerator/services/table.xsodata/", true);    var jsonModel = new sap.ui.model.json.JSONModel();    sap.ui.getCore().byId("T_Table").setModel(jsonModel, "tables");    oModel.read(        "/Table('" + selectedSchema + "')",        null, [],        true,        function(oData, oResponse) {            var tableResult = {                results: [oData]            };            jsonModel.setData(tableResult);        }    );    sap.ui.getCore().byId("T_Table").bindRows("tables>/results");

}

 

Would you please advise ?

Thank you,

Regards,

Shady


Viewing all articles
Browse latest Browse all 9238

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>