Error in running a query in XSJS - column store error: [2950] user is not authorized :  at ptime/session/dist/RemoteQueryExecution.cc:1354]

Hi All,
I get the below error when i load my xsjs file in browser,
Error while executing query: [dberror(PreparedStatement.executeQuery): 2048 - column store error: column store error: [2950] user is not authorized : at ptime/session/dist/RemoteQueryExecution.cc:1354]
I am able to execute the same query in  HANA SQL editor
Please note that ,No Analytical privileges are applied to the view.
Could you please help solving this issue.
Regards,
Logesh Kumar.

Hay,
are you using the same Database user for both SQL Editor and XSJS ?
try the following.
Before executing the query , display it and copy the same from browser and execute in SQL editor.
Put the statement in  a try catch block and analyse the exception .
Sreehari

Similar Messages

  • Error running Web Services in DEMO : User is not Authorized error

    Hi all,
    We created a Web Service in our DEMO installation of ERP9 Tools 8.97, Database Local SSE (User - DEMO, Password-DEMO). The Web Service is using JDE Vanilla BSFN - B0100021 - Formatted Address and created through JDeveloper using JDE BSSV tool.
    When we are running the Web Service (TestCustomWebService) from JDeveloper (Right Click and Run) it is providng an url (http://moequbal:8988/context-root-JP55HOL/TestCustomWebServiceSoapHttpPort) and when we are pasting the URL in the browser and entering a valid value in the Input field and pressiing the 'Invoke' Button, the following Error pops up -
    "<env:Envelope
    xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:ns0="http://oracle.e1.bssv.JP55HOL/types/">
    <env:Body>
    <env:Fault>
    <faultcode>env:Server</faultcode>
    <faultstring>Internal Server Error (Caught exception while handling request: oracle.e1.bssvfoundation.exception.E1AuthorizationException: User is not authorized to invoke this published business service)</faultstring>
    </env:Fault>
    </env:Body>
    </env:Envelope>"
    Please help.
    Thanks,
    Tufan

    I can confirm that the lab and BSSV functionaly works in DEMO, I have it working nicely. However, I dont think you can deploy this to a Business Services server. I haven't tried as yet. but you can test all the published BSSV via jDeveloper to verify that you have the correct code. It starts O4CJ and web services locally and brings up an input web page to enter the AN8, the data outputs to XML.
    Tip:
    1) Make sure that you have an entry in the P00950 security workbench. .
    2) make sure that you select the BSSV item (i.e CustomAddressManager) and select 'set to publish' available (this only appears on checkin) when you check the object in. Make sure that you have entries in the F98601, 602, 603 tables in Object Librarian
    3) Open P00950 select published bssv, click on the grid line (1st column) in the grid form of W00950X click the searchlight, in W00950U hit find you must see your published BSSV in here.
    if not you go back to step 2. You must 'set to publish' for the bssv i.e CustomAddressManager object. Otherwise you will not be able to see in the W00950U form.
    4) Repeat for the 2nd column and Make sure you select the 'Secure by Method' this will take you to W00950Y form and you must select your bssv and select the 'Allow Execute' on the bottom of the form.
    Once you have these in place then you will not get the 'Not authorized' error messages.
    Christopher Koloszar
    JDE Senior Business Analyst
    Oracle 10g DBA
    [email protected]
    Edited by: user3025204 on 15-Oct-2009 02:00

  • Index does not exist error while running the query

    Hi Everone,
    I am facing some problem when i try to tun the query in BEx. When i run the query, it is giving the error "Index does not exist".  Please help me out.
    With Regards
    Pavan
    Edited by: PavanRaj_S on Mar 3, 2010 4:50 AM

    Hi,
    If you facing index problem go to mange create the index and you want to know what are all the infocubes not maintained index go db02 you can find out.
    Regards
    sivaraju

  • How to use : bind character in DB adapter Select Query SOA11g. Getting Error code :17003 .java.sql.SQLException: Invalid column index error

    Hi All,
    The Actual query to perform is below.
    SELECT name,number from emp  WHERE CASE WHEN :1='T' AND term_date IS Not NULL THEN 1 WHEN :1='A' AND term_date IS NULL THEN 1 WHEN :1='ALL' THEN 1 ELSE  1 END = 1;
    I have tried in DB adapter like below as a parameter for :1 as #vInputParam
    SELECT name,number from emp  WHERE CASE WHEN #vInputParam='T' AND term_date IS Not NULL THEN 1 WHEN #vInputParam='A' AND term_date IS NULL THEN 1 WHEN #vInputParam='ALL' THEN 1 ELSE  1 END = 1;
    Getting Error code :17003 .java.sql.SQLException: Invalid column index error.
    Please suggest me on using ':' bind character in DB adapter Select Query SOA11g.
    Can someone help me on this please?
    Thanks,
    Hari

    Hi,
    Could you please make sure your binding style(Oracle Positional,Oracle named..etc) of the Seeded VO and Custom Vo are same.
    This is the option you will get when you are extending your vo. So make sure that both are same.
    You can refer the below link too
    VO extension leads to "Invalid column index" exception
    Thanks
    Bharat

  • Query doesn't work in APD, Error: column store error: fail to create scenario: [340 2048

    Hi Experts,
    We got a problem here.
    We have a query ran without any problems in RSRT. But when I try to put it as data sources(infoprovider) in APD.
    I got following error:
    column store error: fail to create scenario: [340 2048
    We are in BW731006 & ABAP731006.
    Any advise?
    Thanks in advance!
    Tengran

    Hi,
    Can you check this part in error mentioned by clicking as highlighted in red box. It will give you a correct idea about the issue ::
    Also share the detailed error with us as well.
    Best Regards,
    Arpit

  • Column store errors during runtime

    Hi,
    I created a HANA instance in the trial landscape and directed my application to use the HANA instance schema. Over time, I get errors:
    SAP DBTech JDBC: [2048]: column store error: search table error: [29] attribute not defined for physical index;internal error: attribute 'NEO_29J91OPIP2IAEWXFUZRHT093R:CA_EV_VENUEen/PK_EVENT_VENUE_ID' not found in indexInfoMap
    I'm using the HANA instance instead of the default schema created from the application because I need to run spatial queries, which is currently only available in the HANA instance.
    Does anyone know what's wrong?

    Additional errors from the HCP logs:
    javax.persistence.PersistenceException: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.5.0.v20130507-3faac2b): org.eclipse.persistence.exceptions.DatabaseException
    Internal Exception: com.sap.db.jdbc.exceptions.JDBCDriverException: SAP DBTech JDBC: [2048]: column store error: search table error:  [10000008] exception 10000008:
    ims_search_api/Delta/impl/DeserializerContext.cpp:2099
    Failed to write data into NEO_95BOXA4K094KH5V4JNKE5KDPZ:CA_EV_VENUE$delta_1$en: Attribute engine failed(6900); $function$=writeDataIntoDelta
    Error Code: 2048
    Call: SELECT PK_EVENT_VENUE_ID, ADDRESS, DESCRIPTION, EMAIL, EXTERNAL_ID, FAX, LATITUDE, LONGITUDE, NAME, PHONE, WEBSITE, FK_EVENT_DATA_PROVIDER_ID FROM CA_EV_VENUE WHERE ((FK_EVENT_DATA_PROVIDER_ID = ?) AND (EXTERNAL_ID = ?))
      bind => [2 parameters bound]
    Query: ReadAllQuery(name="EventVenue.findByProvider" referenceClass=EventVenue sql="SELECT PK_EVENT_VENUE_ID, ADDRESS, DESCRIPTION, EMAIL, EXTERNAL_ID, FAX, LATITUDE, LONGITUDE, NAME, PHONE, WEBSITE, FK_EVENT_DATA_PROVIDER_ID FROM CA_EV_VENUE WHERE ((FK_EVENT_DATA_PROVIDER_ID = ?) AND (EXTERNAL_ID = ?))")
    The table CA_EV_VENUE contains spatial column and only this table is "failing". Other tables doesn't contain spatial columns are fine.
    I'm trying to get HANA DB traces from the HCP team and was wondering which traces will be helpful for the HANA team.

  • SAP HANA XSODATA service (Service exception: column store error.)

    Hi all,
    i have a problem with my calculation view using xsodata service on it. (There's an input parameter called P
    _SWERK)
    In my calculation view, the data origin are two analytic views (on which the input parameter P_SWERK should be filter data at beginning of the sql script code).
    First i read the analytic views with function CE_OLAP_VIEW and after i do a CE_PROJECTION function on them using the input parameter P_SWERK like a filter on field SWERK.
    But when i run my application on browser the following error occurs :
    <message xml:lang="en-US">Service exception: column store error.</message>
    The link is this :
    http://host:port/Project_DM/services/Test/TEST_ZIIG_PDM_CALC_VIEW_FINAL_service.xsodata/PianiDiManutenzioneParameters(P_SWERK='CO05')/Results
    The service definition is :
    service {
    "EricssonItalgas/TEST_ZIIG_PDM_VIEW_FINAL.calculationview" as "PianiDiManutenzione" keys generate local "ID"
    parameters via entity;
    The SAP HANA AWS revision is 60.
    Someone could you help me,please?
    Thanks in advance.
    Dario.

    Hi Dario,
    Does the calculation view work without xsodata service? From the URL, your XS project name should be Project_DM, but from the xsodata source, the project name is EricssonItalgas. I'm confused with this. Did you use rewrite_rules or?
    Best regards,
    Wenjun

  • Insufficient privilege: Not authorized at ptime/query/checker/query_check.cc on hdbsequence

    Hi All,
    I am currently trying to create a table (TOPIC) and a sequence (SEQ_TOPIC_ID) in HCP, and a XSJS service on top of it to insert a entry to the table.
    In my XS project, I placed a TOPIC.hdbtable and SEQ_TOPIC_ID.hdbsequence in it. Both table and sequence are generated correctly in my trial account schema in the hana db.
    Then,in order to grant the access to the table and sequence , I also placed a file model_access.hdbrole in the project folder.
    The content looks like follow:
    role i065831trial.bubuwork.TopicCenter::model_access {
        application privilege: i065831trial.bubuwork.TopicCenter::Basic;
        sql object i065831trial.bubuwork.TopicCenter::TOPIC : SELECT,INSERT;
        sql object i065831trial.bubuwork.TopicCenter::SEQ_TOPIC_ID : SELECT, DROP;
    The issue is, when I call the XSJS service from the web url, I will facing below error:
    Error while executing query: [dberror(Connection.prepareStatement): 258 - insufficient privilege: Not authorized at ptime/query/checker/query_check.cc:2547]
    the role has been granted to my account, and I am able to insert to the table TOPIC without sequence with above role setting, but If I try to read the SEQ_TOPIC_ID, an insufficient privilege will shown up.
    My question is: Is following line correct to grant the privilege to a role for sequence ? It does not seem to work for sequence  !
    sql object i065831trial.bubuwork.TopicCenter::SEQ_TOPIC_ID : SELECT, DROP;
    Thanks very much!

    Thanks Thomas for your reply, firstly I tried to embed my sequence in the insert SQL, as the problem happened. I pulled out the sequence into a single query string, like blow:
    var select_topic_next_val = "select \"i065831trial.bubuwork.TopicCenter::SEQ_TOPIC_ID\".nextval as seqid from dummy";
    function close(closables) {
        var closable; 
        var i; 
        for (i = 0; i < closables.length; i++) { 
                  closable = closables[i]; 
                  if(closable) { 
                            closable.close(); 
    function insertTopic(xargs){
        var connection = $.db.getConnection(); 
        var statement = null;
        var resultSet = null;
        try{
            //get next sequence id
            statement = connection.prepareStatement(select_topic_next_val);
            resultSet = statement.executeQuery();
            while(resultSet.next()){
                var seqId = resultSet.getString(1);
                break;
    //        statement = connection.prepareStatement(insert_topic_sql);
    //        statement.setString(1,seqId);
    //        statement.setString(2,xargs.owner);
    //        statement.setString(3,xargs.approver);
    //        statement.setString(4,xargs.name);
    //        statement.setString(5,xargs.status);
    //        statement.setString(6,xargs.description);
    //        //statement.setTimestamp(6,xargs.lastModify);
    //        statement.setTimestamp(7,null);
    //        statement.setDate(8,xargs.begda);
    //        statement.setDate(9,xargs.endda);
    //        statement.setString(10,xargs.keyword);
    //        statement.executeUpdate();
        }finally { 
            close([resultSet, statement, connection]); 

  • I cannot send or receive text messages from other iPhone users. I don't get an error I just don't receive any messages and the other users do not receive mine.

    I cannot send or receive text messages from other iPhone users. I don't get an error I just don't receive any messages and the other users do not receive mine.

    Reset the devices: Hold down the home button along with the sleep/wake button until you see the apple, then let go.

  • Error while running a Query on webi

    Hi Folks
    I just installed a BOBJ edge standard 3.1 and trying to configure and test it  the very first time, I have following issues if you can advise the solution., I would really appreciate.
    1. when i try to create a test query on Webi Rich Client and and run query, I get the follow messge:
    A databse error occured. The database error text is : [Microsoft] [ODBC Microsoft access driver] could not use (unknown);
    file already in use (WIS 10901)
    2. The other issue I have is that when i create a test query on the webi (infoview side) and try to run the query I dont see any result like column, rown or fields, all I see is a solid yellow block which I believe is because of kmissing Java connector. can you guys pls let me know if this is the reason I dont see the report or Is there any other reason for that.
    I would appreciate your help on this.
    Regards

    Hello,
    What type of database did you build your universe on? Access? SQL Server? or other? You would need to go into the universe you are trying to use for the report go into File, Parameters, and see what your connection is, and while you're there, click "test" to be sure it is working. If not, that is your problem. If it is, but the report still is not working, either way, you will need to go into Control Panel, Administrative Tools, Data Sources (ODBC) and set up a system DSN that links to the correct database. Again test it to be sure it works. Then make sure the universe has a connection that uses this same DSN. The report should run.
    Hope that helps.

  • Oracle DB Query Generating Invalid Column Index error

    Dear All,
    Apologies for a question on this rather basic error but I don't understand why i'm experiencing the behaviour described.
    The piece of code below connects to a database, runs a query, then attempts to display the contents of the resultset. I understand from other posts on the topic that the query I am executing (INSERT INTO table VALUES (...)) as in the comments below needs to have autocommit disabled to allow me to access the resultset without the transaction closing.
      public void runQuery(String query) throws Exception {   Class.forName("oracle.jdbc.driver.OracleDriver"); Connection con = DriverManager.getConnection(database, username, password); con.setAutoCommit(false); Statement st = con.createStatement();         ResultSet rs = st.executeQuery (query);         // "select * from user_tables"         // "INSERT INTO BH VALUES ('','2.25','Dark Red','Samsonite','4987638762')"         while (rs.next()) {         System.out.print (rs.getString(1)); // Exception thrown here     }         con.commit(); st.close();   con.close();   }
    I have removed try {} catch {} error handling for clarity.
    I am receiving the invalid column index error from the indicated line, which clearly suggest column 1 doesn't exist, however if i run the same query in another tool, something like the following is returned:
    Rows Affected
    1
    The query is being received by the database as the row ends up in the table intact, so I am clearly missing something about how to access the resultset correctly.
    I am guessing that I am either misusing/misunderstanding the autocommit option or that the resultset is different to what I am expecting...
    Can someone please shed a little light?
    Many thanks!
    George

    Ok, I've done a little more digging, and i've come to the conclusion that an INSERT query doesn't return a resultset (or returns an empty one)
    Could someone with a little more knowledge confirm this as I've had little luck finding an explicit yes or no from the web!
    Many Thanks in advance...

  • Error while running a query-Input for variable 'Posting Period is invalid

    Hi All,
    NOTE: This error is only cropping up when I input 12 in the posting period variable selection. If I put in any other value from 1-11 I am not getting any errors. Any ideas why this might be happening?
    I am getting the following error when I try and run a query - "Input for variable 'Posting Period (Single entry, mandatory)' is invalid" - On further clicking on this error the message displayed is as follows -
    Diagnosis
    Variable Posting Period (Single Value Entry, Mandatory) is used as a lower limit (X) and an upper limit () in an interval selection. This limit has the value #.
    System Response
    Procedure
    Enter a different value for variable Posting Period (Single Value Entry, Mandatory). If the value of the other limit is determined by another variable, you can change its value also.
    Procedure for System Administration

    OK.
    Well, if the variable is not used in any interval selection, then I would say "something happened to it".
    I would make a copy of the query and run it to check if I get the same problem with period 12.
       -> If not, something is wrong in the original query (you can proceed as below, if changes to original are permitted).
    If so, then try removing the variable completely from the query and hardcode restriction to 12.
       -> If problem still persists, I would have to do some thinking.
    If problem is gone, then add the variable again. Check.
       -> If problem is back, then the variable "is sick". Only quick thing to do, is to build an identical variable and use that one.
    If problem also happens with the new variable, then it's time to share this experience with someone else and consider raising an OSS.
    Good luck!
    Jacob
    P.S: what fisc year variant are you using?
    Edited by: Jacob Jansen on Jan 25, 2010 8:36 PM

  • 'ORA-01722: Invalid Number' error while Running a Query

    Hi,
    I'm trying to run a query built on a DSO. The DSO has a field 'Start Date'. This Start Date InfoObject has a reference Char as 0DATE.
    This Start Field has blank values due to which I'm getting the ORA-01722 error. I came across many threads with same topic of discussion. As mentioned in one of the Threads I have written a program to update 'Start Date' with 00000000. The code wriiten is "UPDATE /BIC/AZ_MONINV00 SET /BIC/ZSTR_DTE = '00000000' where /BIC/ZSTR_DTE = ' '.
    Now when I see the data in the active data table of DSO the blank value is replaced with '00000000'.
    But If I right click on the DSO click on display data the 'Start Date' field is blank. And now the Query also gets executed without any error. But in the output of the query the 'Start Date' Field has "#" values.
    Can anyone suggest on how can I make these "#" values appear as 00000000 in the report?

    In this case, you have to write a macro to avoid # in Analyzer.
    Right Click-->Display Data will show data from Active table of DSO only.
    If you don't want to show any blank date values in the report, you can exclude in Filter in Query.

  • Database Error while running the query.

    Hi,
    While running the query in webi rich client i am having a "database error IES 10901 and WIS 10901" , it is showing that the data source name not found and default driver is not specified.
    I am trying to generate report from efashion universe which is in .unx format, same client version and universe is running fine on another machine (webi rich client).
    PS: The above mentioned universe is running fine on my BI launch pad, the problem is with webi rich client only.
    Please help!!

    Hi,
    Which Database your are using .
    As explained by Yuvraj You need to install driver for specific database .
    Ask for client or (your Database ) driver from administrator .
    After installation you can see your database Driver in following path
    Control Panel\System and Security\Administrative Tools\Data Sources (ODBC)
    See in Drivers Tab .
    If you are using oracle & client is install on your system then Check TNS Names File in NETWORK folder .

  • BEx error when running a query or workbook

    Hi guys,
    We're experiencing the following issue (trace dumped below) within BEx, while running either queries or workbook.  Nothing special in ST22.
    SM21 says:
    Communication error, CPIC return code 020, SAP return code 223
    Conversation ID: 53497548
    CPI-C function: CMSEND(SAP)
    We're using:
    BEx version "7.x (based on 7.20)", SP3, revision 1728
    SAP version
    SAP_ABA     700     0023     SAPKA70023
    SAP_BASIS     700     0023     SAPKB70023
    PI_BASIS     2006_1_700     0013     SAPKIPYM13
    ST-PI     2008_1_700     0003     SAPKITLRD3
    SAP_BW     700     0025     SAPKW70025
    FINBASIS     600     0019     SAPK-60019INFINBASIS
    SEM-BW     600     0019     SAPKGS6019
    BI_CONT     703     0016     SAPKIBIIQ6
    ST-A/PI     01M_BCO700     0001     SAPKITAB7F
    Dump content:
    3/3/2011 12:39:15 PM----
    com.sap.bi.et.analyzer.api.BExApplication+BExConnectionLostException: CPIC-CALL: 'CMRCV : rc=20
    LOCATION    CPIC (TCP/IP) on local host
    ERROR       connection to partner '10.1.9.126:3320' broken
    TIME        Thu Mar 03 12:39:14 2011
    RELEASE     720
    COMPONENT   NI (network interface)
    VERSION     40
    RC          -6
    MODULE      nixxi.cpp
    LINE        5087
    DETAIL      NiIRead: P=10.1.9.126:3320; L=0.0.0.0:2225
    SYSTEM CALL recv
    ERRNO       10054
    ERRNO TEXT  WSAECONNRESET: Connection reset by peer
    COUNTER     6
       at com.sap.bi.et.analyzer.api.BExApplication.Process(BExParameter iParameter)
       at com.sap.bi.et.analyzer.addin.BExExcelApplication.Process(BExParameter iParameter)
    CPIC-CALL: 'CMRCV : rc=20
    LOCATION    CPIC (TCP/IP) on local host
    ERROR       connection to partner '10.1.9.126:3320' broken
    TIME        Thu Mar 03 12:39:14 2011
    RELEASE     720
    COMPONENT   NI (network interface)
    VERSION     40
    RC          -6
    MODULE      nixxi.cpp
    LINE        5087
    DETAIL      NiIRead: P=10.1.9.126:3320; L=0.0.0.0:2225
    SYSTEM CALL recv
    ERRNO       10054
    ERRNO TEXT  WSAECONNRESET: Connection reset by peer
    COUNTER     6
       at com.sap.bi.et.analyzer.api.BExApplication.Process(BExParameter iParameter)
       at com.sap.bi.et.analyzer.addin.BExExcelApplication.Process(BExParameter iParameter)
    Brgds,
    Olivier

    Hello Suman,
    Check the table rszglobv for this variable - ZCONLEH.
    If it is available there then see which infoobject it belongs to and then look for that in the query designer. May be resaving the query solves the issue.
    If the variable is not available in the table, then it seems that the variable is lost and you might have to recreate it for keeping the semantics of the query the same as it was before the upgrade.
    Regards,
    Shweta

Maybe you are looking for

  • Address Book and iCal not updating in iTunes

    After I make changes to my address book I try to sync the changes the old groups, information, and photos are not updating to iTunes and therefore nothing is changing on my devices.  I followed directions from this link http://support.apple.com/kb/ts

  • Graphics Issue - Crash

    I have a Late 2012 Imac that is exeprincing an extreme graphical glitch on my system. First the screen might tear a bit then jitter but eventually my whole screen in turn a solid colour of what's predominantly being displayed. For example my screen w

  • ISE Guest activity reports configuration

    Hi All, I am trying to obtain guest activity report pertaining to the websites accessed by the guests. I have a standalone ISE deployement (1.1.2) running all personas. I am following the instructions on this document in a way: http://www.cisco.com/e

  • Apex mobile Date-Picker (date with time) format mask error

    Hi together. I'm playing  a little bit with Apex mobile. I want to save a date with hours and minutes in the database. So i have an date field (type: date with time). On my phone i can select an date value with time, but when i want to save the value

  • Need to restore iPod, but how?

    Hi, my 5.5 video iPod freezes at the apple screen and when I reset it, it just goes back there again and stays. My computer won't recognize it, so I can't restore it through iTunes. What do I do? Thanks, Matt