HANA odata service issue

Hi,
I've created at basic odata service on my AWS HANA Instance but I'm having issues when testing in the browser.
Whenever I add the parameter "inlinecount=allpages" as a parameter to the service call I get the error -
400 Bad Request Error - "Service exception: column store error."
e.g. http://<hanaserver>:8000/com/kringas/temperature/services/tempService.xsodata/StationDetails?$top=3&$format=json&$inlinecount=allpages
If I remove the parameter or have it set to "inlinecount=none" the service works correctly, returning the expected results.
e.g. http://<hanaserver>:8000/com/kringas/temperature/services/tempService.xsodata/StationDetails?$top=3&$format=json&$inlinecount=none
The reason I need it to work with the "inlinecount=allpages" set is the SAPUI5 app where I'm trying to bind the odata service to a table seems to append this parameter to the service call.
Thanks,
Stephen

&$count=allpages works but
$inlinecount=allpages gives the below error :
<error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
<code/> 
<message xml:lang="en-US">
Service exception: column store error. 
</message>
</error>
I have the exact same situation that since it is internally placed by UI5 API.
Were you able to find the solution / work around for that ?

Similar Messages

  • Creating OData Service Issue on AppBuilder ?

    HI Experts,
    I have an error when i'm trying to create a New OData Service in AppBuilder.
    Here is the Response getting from Browser using this link
    And in the AppBuilder i'm getting this HTTP Error Now.
    Yesterday i worked on same Service it works, But Now i getting HTTP request failed,
    Here is the Yesterdays Service Response
    How can solve this Issue ?
    thanks in advance,
    Vamsi K.

    Hi Vamsi,
    Please check if there is any proxy enabled / to be enabled
    I just tried with the northwind service and was successful.
    -virinchy

  • Binding to Odata Service with Input Parameters from HANA

    Hello,
    I'm developing a UI5 application that consumes a SAP HANA OData service to search a database (using fuzzy search). This service receives an Input Parameter, used to query the database.
    So every time the user searches for something I build a new binding path and refresh the model to show the search results in the sap.m.List.
    The Model:
    var hanaModel =  new sap.ui.model.odata.ODataModel("…/services/seed.xsodata");
    this.setModel(hanaModel);
    The search event handler from sap.m.SearchField:
    var listBinding = this.getView().byId("list").getBinding("items");
    listBinding.sPath = "/FoodstuffByNameValuesParameters(P_NAME='" + searchString + "')/Results";
    this.getView().getModel().refresh();
    My question is if this is the correct approach to create the model and bind the list when we have a service with an Input Parameter, or if there is a better way to do it.
    (This approach is actually working).
    Regards,
    Paulo

    i would do
    var       filter = [];
    var selectFilter = new sap.ui.model.Filter("name", sap.ui.model.FilterOperator.Contains, sVal);
          filter.push(selectFilter);
    listBinding .filter(filter);

  • How to use Alias name in OData service in SAP HANA

    Hi,
         I need to change one column name with alias of another name in odata service definition or odata url running in rest client. I am trying to give alias name with as key in the service definition like sql query.
    ex:
    There is one table with column name of PRODUCT_ID. I exporting that table via odata service to SAP UI. In the UI i dont want the product id column as PRODUCT_ID. It should be ike "Prodcut". Like we are using in SQL example
    select "PRODUCT_ID" as "Product" from "producttab";
    But i can't use as key for alias name. So i am getting syntax error.
    I have tried in rest client also ie executing odata file in rest based service. But i got error only.
    If anyone knows about this alias name in odata service, Please help me to resolve this issue..

    Hi Thomas
         Thanks for your reply.
         Actually in odata service definition i am using attribute and calculation views only. But in some case from the model view itself i need to use some alias names to the UI through odata service.
         For example in attribute view i have some columns with name col1,col2... I am getting those columns in UI using  odata service, for particular col2 column i need to change column name as product. And i am using the same view as source of another odata service in that service i need to change that column name as productname.
         In that case i need alias name usage. So that only i am searching alias keyword in odata service.
         Is there any possibility to use alias names in odata service.

  • Issues with ODATA service creation

    Hi Gurus,
    I am facing some issues with ODATA service creation. I have an analytic view which I want to consume via SAP UI5.
    As per guides and blogs, I need to create 3 files, namely .xsaccess, .xsapp and .xsodata. I created these three files but at the same time .xsodata and .xsaccess got created at one more place. That place is my package which I checked out while creating the repository. Now when I try to activate my .xsaccess or .xsapp file, I get an error message - "The file name .xsaccess or .xsapp already exists and only 1 file is allowed per package"
    for more info please revert.
    Kindly help.
    Best regards,
    Chandan

    Chandan Sinha wrote:
    Can we add multiple analytic views in one ODATA service?
    Certainly.  You just have multiple entities then. You can even create associations between them. Here is an example that uses a combination of CDS Views, Attribute Views, and Analytic Views:
    service namespace "Wile.services" {
      "Wile.data.models::AN_EPISODES" as "Episodes"
      keys ("EPISODE_ID")
      navigates ("ToACMEItems" as "ACMEItems",
                "ToCoyoteNames" as "CoyoteNames",
                "ToRoadRunnerNames" as "RoadRunnerNames",
                "ToDirectors" as "Directors",
                "ToWriters" as "Writers");
      "Wile.data.models::AT_ACME_ITEMS" as "ACMEItems"
      keys ("EPISODE_ID","ITEM_ID");
      "Wile.data.models::AT_ACME_CATALOG" as "ACMECatalog"
      keys ("ITEM_ID")
      create using "Wile.services:ACMECatalogExits.xsjslib::itemsCreate"
      update using "Wile.services:ACMECatalogExits.xsjslib::itemsUpdate"
      delete using "Wile.services:ACMECatalogExits.xsjslib::itemsDelete";
      "Wile.data::WileECoyote.Episode.CoyoteNamesView" as "CoyoteNames"
      with ("EPISODE_ID","NAME_ID","NAME")
      keys ("EPISODE_ID","NAME_ID");
      "Wile.data::WileECoyote.Episode.RoadRunnerNamesView" as "RoadRunnerNames"
      with ("EPISODE_ID","NAME_ID","NAME")
      keys ("EPISODE_ID","NAME_ID");
      "Wile.data::WileECoyote.Episode.DirectorsView" as "Directors"
      with ("EPISODE_ID","NAME_ID","NAME","URL")
      keys ("EPISODE_ID","NAME_ID");
      "Wile.data::WileECoyote.Episode.WritersView" as "Writers"
      with ("EPISODE_ID","NAME_ID","NAME","URL")
      keys ("EPISODE_ID","NAME_ID");
      association "ToACMEItems" principal "Episodes"("EPISODE_ID")
       multiplicity "1"
       dependent "ACMEItems"("EPISODE_ID") multiplicity "*";
      association "ToCoyoteNames" principal "Episodes"("EPISODE_ID")
       multiplicity "1"
       dependent "CoyoteNames"("EPISODE_ID") multiplicity "*";
      association "ToRoadRunnerNames" principal "Episodes"("EPISODE_ID")
       multiplicity "1"
       dependent "RoadRunnerNames"("EPISODE_ID") multiplicity "*"; 
      association "ToDirectors" principal "Episodes"("EPISODE_ID")
       multiplicity "1"
       dependent "Directors"("EPISODE_ID") multiplicity "*";
      association "ToWriters" principal "Episodes"("EPISODE_ID")
       multiplicity "1"
       dependent "Writers"("EPISODE_ID") multiplicity "*";

  • Hana BOBI dashboard exposed as odata service

    I am planning for a business case where I need to get the dashboard output as Odata service which can be consumed by WEBIDE from HCP for SAPUI5 development. Please guide me how i can do that

    This leads to the folloing error: Invalid value: not supported type conversion.
    The post is splitted as Ctrl+V blocks the editor....
    Calling URL:
    leads to:

  • Getting a syntax error while creating the simple OData service.

    Hi Folks,
    That is what I typed in a in .xsodata file but it is giving me a syntax error..any idea why this can be?
    Thank you for your help.
    service namespace "sap.hana.test.service"
    { "SYS" , "AFL_AREAS_" as "TEST";

    Hi,
    I tried creating the same. I was able to activate all three files i.e. .xsapp,.xsaccess,*.xsodata. The three file contents are mentioned below. The data might not be displayed in the browser due to privileges issue as it is SYS table.
    .xsapp contains
    .xsaccess contains
      "exposed" : true
    *.xsodata contains
    service
    "SYS"."AFL_AREAS_" as "mytable";

  • Anyone been able to get the sap.ca.ui.FileUpload control working with a Gateway OData service?

    Hi,
    I have been trying to get the sap.ca.ui.FileUpload control working with an OData Gateway service, specifically /IWPGW/TASKPROCESSING which is the service used by both Fiori Approve Requests and the Unified Inbox.
    I have looked at the sample application in the Explored at SAPUI5 Explored
    I have managed to replicate that and get it to work, but as soon as I switch it from a JSONModel to an ODataModel I get javascript errors from within the setModel method of the control. I have redefined that method and corrected the errors, which enables me to get a bit further, but then I hit more errors, and other strange behaviour.
    Either I am doing something completely wrong, or to me it appears as if this control is still extremely buggy and maybe either not designed to work with an ODataModel, or just hasn't been tested using an ODataModel. I'm hoping it is my mistake.
    So has anybody out there successfully managed to use this control connecting it to a Gateway OData service? If so please share your experience.
    Thanks,
    Brad

    Hi Pauline,
    Same issue I had, I switched to using a sap.m.list and handling the press as follows:
    attachmentsList.bindItems(workItemPath + "/Attachments", new sap.m.StandardListItem({
                               type: sap.m.ListType.Active,
                               title: "{FileName}",
                               description: "{CreatedByName}",
                               icon: "sap-icon://doc-attachment",
    //                         counter: "{FileSize}",
                          info: {path : "CreatedAt", formatter: dateTimeFormatter},
                          tap: function(oEvent){
                                var oContext = oEvent.getSource().getBindingContext();
                                var media_src = oContext.getProperty().__metadata.media_src;
                                sap.m.URLHelper.redirect(media_src, true);
                        }), new sap.ui.model.Sorter("CreatedAt", true));
    So sap.m.URLHelper.redirect(media_src, true); is what loads the attachment.
    See the full function handler:
    function(oEvent){
    function(oEvent){
                  var oContext = oEvent.getSource().getBindingContext();
                  var media_src = oContext.getProperty().__metadata.media_src;
            sap.m.URLHelper.redirect(media_src, true);
    This should be enough if you only want to list and display the attachments, then you don't really need the FileUploader control as that is more advanced and handles upload, display, change and deletion of files.
    I only needed to upload and display files, so I used a list to display it and created a separate upload button using the sap.ui.unified.FileUploader control.
    Hope that helps.
    Cheers,
    Brad

  • Unable to parse the OData service in JSON

    Hi,
    Need to parse the OData Service in JSON format.Able to successfully get Service and MetaData documents. After that, when try to parse OData service returning response in JSON.
    Below  code is throwing exception.
    Server Used:SMP3.0
    ODATA SDK Used:SMP3.0 ODATA SDK
    Service Used: http://services.odata.org/v2/Odata/Odata.svc/Products?$format=json
    Code Snippet:
       @try {
          ODataCollection *collc = [[self.serviceDocument getSchema] getCollectionByName:_srvcInfo.serviceEntityName];
          ODataEntitySchema *schema = [collc getEntitySchema];
          //Instantiate parser for Carrier entity
         ODataDataParser *dataParser=[[ODataDataParser alloc] initWithEntitySchema:schemaandServiceDocument:self.serviceDocument];
          //Parses a feed or an entry xml or json
          [dataParser parse:entriesData];
          results = dataParser.entries;
      @catch(NSException *e) {
          NSLog(@"Exception:%@, %@", e.description, e.debugDescription);
    Exception:
    -[__NSCFArray objectForKey:]: unrecognized selector sent to instance
    However Service Used:http://services.odata.org/V3/Northwind/Northwind.svc/Products?$format=json. Not
    throwing any exception, but dataParser.entries is returning 0 objects
    Please let us know, is the same API is used for parsing JSON.
    What can be the reason of issue and what are possible resolution.
    Thanks,
    Parveen.

    My expert area is not IOS but you can check this IOS Odata development tutorial that might help you,Getting started with SMP3 Native OData iOS apps
    Midhun VP

  • How to deploy an WCF OData Service in windows azure

    I am having a WCF OData service in visual studio which i need to deploy in windows azure for accessing in IPad app.
    thanks in advance

    Hi Pilid,
    Thanks for posting!
    About this issue, I suggest you could refer to those documents:
    OData Team Blog:Deploying an OData Service in Windows Azure 
    Docs and code sample :Windows Azure WCF Data Service
    Please try it.
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Create a record using SAPUI5 and ODATA Service

    Hi there,
    since SPS6, SAP HANA should allow CRUD operations using an ODATA Service.
    That sounds nice and so I wanted to give it a try.
    I've started by creating a simple table and set up a tiny application that displays the data in a grid (using a JSON Model) and allows to insert new records by entering data into two textfields and save them as a new record to the databse. That works well, the grid shows the records which I have created using the SAP HANA Studio.
    So I wanted to create new records, and the documentation says very clearly how to create a new record.
    I've tried it this way, but when the request is send I get an 501 Not Implemented error.
    Thats the code I'm using in my SAVE-Button:
    btnSave.attachPress(function() {
       var entry = {};
       entry.id = tfUserId.getValue();
       entry.username = tfUserName.getValue();
       oData.create('/tbl_user', entry, null,
       function() {
          alert("Create successful");
       function() {
          alert("Create failed");
    After that I've tried to create a record using the POSTMAN extension for Chrome browser as mentioned in this cool video by Thomas Jung.
    Unfortunately, this also doesn't work for me. After sending the request I get as respone a sap hana xs login window with Status Code 200 instead of a status code "201 created".
    Here's a screenshot:
    I'm using SAP HANA Cloud Trial.
    Anybody got an idea what I'm doing wrong? Or does ODATA CRUD not work an SAP HANA Cloud Trial?
    Many thanks,
    ben

    Hi Jason,
    exactly, it's the logon page returned that is opened when I open the service URL in the browser. After logging on I can see the results of the ODATA service call.
    The URL must be correctly defined, the grid shows up the data from the ODATA Service.
    And yes, the URL looks OK when expecting in Chrome developer tools...
    Thanks,
    ben

  • Odata services in Design studio 1.2 ?

    Hello All,
    I am exploring Design studio at the moment and I know that we can do scripting along with drag and drop functionalities.
    But I would like to know if it also possible to consume Odata services or send Odata requests to HANA database to get data back and display on charts or tables and so on.
    Any help would be appreciated.
    Thanks

    Hi Sangamesh,
    Based on what you've described, I'd say it's most likely you will need to create a Calculation View.  For more general information about using HANA with Design Studio you may find the following posts useful:
    Using Design Studio with SAP HANA end to end-Part 1
    Using Design Studio with SAP HANA end to end-Part 2
    Regards,
    Mustafa.

  • Testing tools for OData services

    Hi all,
    I managed to get my oData services up and running on my local/Cloud HANA server, using Olingo libraries and JPA.
    Now I'd like to test my services. I can test the queries from the browser and from multiple clients found on the web.
    However PUT/POST requests require to type in manually the body, and this is really time-consuming.
    As a consequence, I'm looking for any tool which could generate POST/PUT request body for oData (much like XMLSpy/soapUI does for SOAP)
    There is no SAP NW Gateway in my landscape so it is not an option, I'd like a desktop tool or browser plugin
    Does anyone know whether such a tool exists?
    Thanks, Regards
    Vincenzo

    Hi Vicenzo,
    you can use the Chrome plugin Postman REST Client. There are two versions available, an extension and a packaged app. I've installed both, but only the extension is able to use the authentication cookie. Thus the packaged app is not suitable if you want to test service which require authentication.
    Regards, Mathias
    Message was edited by: Mathias Boettcher

  • Getting error while quering the odata service

    Hi Everyone,
    I have used "Query Service(Method => EMPLOYEECOLLECTI_GET_ENTITYSET)"  for update data to backend system and I have written logic in that method from the below link:
    http://scn.sap.com/community/netweaver-gateway/blog/2014/03/06/let-s-code-crudq-and-function-import-operations-in-odata-service.
    But when I test in SAP NW Gateway Client I am getting below error
    Browser showing below output/error
    Kindly help me on this
    Regards,
    Soumya

    Hello Sowmya,
    It cannot happen that GW is throwing EMPLOYEECOLLECTI_GET_ENTITYSET is not implemented even after you have written code in that method by redefining it.
    I could see that you are raising an exception in the code shared by you here . i.e.,
    RAISE EXCEPTION TYPE /iwbep/cx_mgw_not_impl_exc
        EXPORTING
          textid = /iwbep/cx_mgw_not_impl_exc=>method_not_implemented
          method = 'EMPLOYEECOLLECTI_GET_ENTITYSET'.
    Please remove above code and return your response as below.
    copy_data_to_ref( EXPORTING is_data = et_tab CHANGING cr_data = er_entityset )
    where et_tab is your local table where you would have stored the results which you intend to send back to GW. i.e., et_entityset in your case
    Activate DPC class and check.
    This should resolve the issue
    Regards,
    Ashwin

  • Access cloud for customer Odata Service from HCP

    Hi 
    I have a UI(sapui5) which consumes ODATA Service from "cloud for customer" system.
    I am using connectivity proxy servlet(using destinations) to avoid cross origin issue.  when i deploy and access this UI from cloud, the response of the odata service is " HTTP status 500 javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated".
    I tried giving the http url and that says "502 bad gateway".
    How to resolve SSL issue for cloud.?
    Is there any other configuration that needs to be done to consume ODATA from "Cloud for customer" system
    Regards
    Priyal

    Hi Priyal:
    For the SSL handshake at the destination level either you would have to set the property "TrustAll=TRUE" or you have to create a JKS keystore which contains the Server Certificate for the Cloud for customer system and then upload this either via the Admin cockpit (at destination level) or deploy the same via the NEO console tool.
    Best regards
    Venki

Maybe you are looking for