Skip to content

Expected response to contain an array but got an object  #116

@gowrisankarreddy

Description

@gowrisankarreddy

Hi ,

i am getting this error.How can i fix these error.
Error in resource configuration for action odata. Expected response to contain an array but got an object

Here is my sample code

var myData = angular.module("sample",['ODataResources']); myData.controller("MyController",function($scope,$odataresource){ $scope.results = $odataresource("http://ServerURL/ODS/SAP_SUP_WM_DLITE_SRV/ProductHeaderSet") .odata() .filter('EnteredBy','DEMOUSER') .orderBy('OrderType','asc') .query(); });

Please Suggest me to fix these error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions