Quantcast
Channel: SCN : All Content - SAP HANA Cloud Platform Developer Center
Viewing all articles
Browse latest Browse all 3285

Expose calculation view as odata service authorization error

$
0
0

Hi Experts,

 

I'm creating a PoC on HCP trial and as part of the solution, I created a table as below:

 

CREATE COLUMN TABLE "NEO_..."."Kpi" (

"KPIID" INTEGER NOT NULL,

"YEAR" INTEGER NOT NULL,

"DESCRIPTION" NVARCHAR(100),

"KPIKEY" NVARCHAR(100) NOT NULL,

"VALUE" DOUBLE NOT NULL,

PRIMARY KEY ("KPIID"));

 

Then, I created calculation view called YEARS that returns some information about this table.

 

After, I created a xsodata service to expose this calculation view, as below:

 

service namespace "dashboard"{

    "p...trial.dashboard.models::YEARS" as "Years" key ("YEAR");

   

    "NEO_..."."Kpi" as "Kpi";

}

 

selecting the information directly from the table "Kpi", or from the view YEARS works fine:

 

select * from "_SYS_BIC"."p...trial.dashboard.models/YEARS";

select * from "NEO_..."."Kpi";

 

BUT...

 

consuming the view "/Years" in the xsodata service returns the following error:

 

exception 1: no.71000258 (ptime/query/checker/query_check.cc:2422) Not authorized NO exception throw location recorded. Stack generation suppressed.

 

BUT2...

 

consuming the table in the xsodata service works fine.

 

Any ideas what might be missing here? executing call "HCP"."HCP_GRANT_SELECT_ON_ACTIVATED_OBJECT"('p...trial.dashboard.models','YEARS') also works fine.

 

PS: I'm exposing the table itself in the xsodata service just to test, cause the objective is to expose just the view.

 

Thanks and regards,

Roberto Falk


Viewing all articles
Browse latest Browse all 3285

Trending Articles



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