Can't use procedure in the .rdl file.

Hi experts,
I created a simple River project, and I can active the project successfully.
But when i added some codes to call a procedure, then i can't active the rdl file.
This is the code I used to call a procedure:
action callExternalProc2() : DecimalFloat[]
      let x  = sap.hana.catalog.RIVERPRJ.MY_PROCEDURE_TEST3();
      return x;
The error message met when active the project is:
A transaction rollback may have left the object in an inconsistent state.
exception 40183:
repository/base/activation/activator.cpp:884
Transaction rollback detected. Activation failed.
When i commented the above codes, the activation will be successful.
And the procedure can execute in SQL console.
Can you give me some suggestions?

Hi Omer,
I tried to create my stored procedure in another schema(owned by my user), but I still can't active the rdl file.
Also, I can't execute the following sql statement using my user or the system user:
       set schema "RIVERPRJ";
       grant execute on MY_PROCEDURE_TEST3 to _SYS_REPO with grant option;
The error message is:
     Could not execute 'grant execute on MY_PROCEDURE_TEST3 to _SYS_REPO with grant option' in 10 ms 659 µs .
     SAP DBTech JDBC: [258] (at 17): insufficient privilege: Not authorized to grant the privilege on the procedure: line 1 col 18 (at pos 17)
If I active the rdl file, the error message is as follows:
In the procedure, if I do some queries from the tables created by the rdl, it did not work, but it works if I do some queries from the tables which were not created by the rdl file.
I think this maybe the reason for the error message "A transaction rollback may have left the object in an inconsistent state." .
In my opinion, I think we can not use a stored procedure that do some queries from tables created by the rdl entities.
Because create the entity and call the procedure at the same time may left the object in an inconsistent state.
Put the queries in an action is ok, but the river can not support some key words like "lag over",.
So i am trying to put these things in a procedure and call it in the action.
If  we can't use procedure, how could I use some sql key words like "lag over"?
Could you give me some suggestions?
Thanks very much for your help.
Regards
Eric

Similar Messages

  • Trying to delete file from trash but get this: The operation can't be completed because the item "File name" is in use. All other files delete except this one. Please help

    Trying to delete file from trash but get this: The operation can’t be completed because the item “File name” is in use. All other files delete except this one. Please help

    Maybe some help here:
    http://osxdaily.com/2012/07/19/force-empty-trash-in-mac-os-x-when-file-is-locked -or-in-use//

  • Iomega UltraMax 4Q PLUS the following message appears: The operation can not be completed because the item "FILE NAME" is in use. "

    Help, I need to solve. No speculation please bomas or attempts to restart, confirm that the HD is formatted for MAC and etc. .....
    Whenever I try to copy my files from my HDD Western Digital 2T for my new Iomega UltraMax 4Q PLUS the following message appears: The operation can not be completed because the item "FILE NAME" is in use. "
    I can not stand it anymore ...
    I need to work and not temnho more space on my machine.
    Scenario - iMac11, 10.6.8 + WD + 2 + 2T 4T Iomega UltraMax Plus, formatted for both Mac and connected via Firewire 800
    Trying to copy the message aborts the copy - "The operation can not be completed because the item" FILE NAME "is in use."

    Hello,
    As I said earlier, properly formatted for Mac.
    Mac OS Extended (Journaled)
    This HD is formatted for MAC factory, but I even did a few times in my attempts I can say that this is entirely correct formattingwith it - Mac OS Extended (Journaled)

  • Problems copying iTunes folder to an external hard drive - "The operation can't be completed because the item FILE NAME is in use"

    Hi,
    I have been trying to back up my iTunes folder from my MacBook hard drive over to a new LaCie external hard drive.  However, whenever I try to do it at some point during the copying I keep getting the warning "The operation can’t be completed because the item FILE NAME is in use".  Each time I have tried it, it is always a different file name that comes up and at different points of the copying.  Following the warning, the copying stops and cannot be restarted.
    I tried copying the iTunes folder to another Lacie external hard drive that I have, and it worked fine so I am guessing that it maybe something wrong with the hard drive.
    I've been trying various approaches all day and can't seem to get anywhere with it - all very frustrating, so any help would be much appreciated!
    Thanks.

    If you don't have other backup data on it, reformatting external drive could solve the problem.

  • How can I use Applescript to copy a file's icon to the clipboard?

    Hello,
    How can I use Applescript to copy a file's icon to the clipboard?
    Thanks.
    Lennox

    there is no way to do that that I know of. but you can extract an icon of a file to another file using command line tool [osxutils|http://sourceforge.net/projects/osxutils]. you can then call the relevant command from apple script using "do shell script".

  • How can I print stuff from the 'Help' file using my MacBook Air?

    How can I print stuff from the 'Help' file using my MacBook Air?

    Open the Help viewer, select a category then from the menu bar top of your screen, click File > Print

  • The log file which can be used to track the HTML preview of HFR Reports

    Hi,
    Could you please let me know the log file which can be used to track the HTML preview of HFR Reports?
    Thanks,
    Aparna

    You could check the FinancialReporting0.log and FRLogging.log .You could refer the same in the
    " http://docs.oracle.com/cd/E17236_01/epm.1112/epm_install_troubleshooting_11121.pdf" page 47.

  • SPSiteDataQuery - filter by file Title - Can I use variable for the filter value?

    I use SPsiteDataQuery to search across multiple lists and filter by file title. I have the file title information in a variable.
    Can I use variable in the filter value?
    string fileName = "Policies.doc"
    SPSiteDataQuery spQry = new SPSiteDataQuery();
    spQry.ViewFields = "<FieldRef Name='Title'/><Value Type='Text'>fileName</Value>"

    If I have understood correctly, you want to search based upon a File title in all the sites. You can include a query to filename in the spQry
    spQry.Query = "<Where>" +
    "<Eq>" +
    "<FieldRef Name=\"FileLeafRef\"/>" +
    "<Value Type=\"Text\">" + fileName + "</Value>" +
    "</Eq>" +
    "</Where>";
    get2pallav
    Please click "Propose As Answer" if this post solves your problem or "Vote As Helpful" if this post has been useful to you.

  • Cannot use file for clustered server. Only formatted files on which the cluster resource of the server has a dependency can be used. Either the disk resource containing the file is not present in the cluster group or the cluster resource of the Sql Serve

    Hi
    Windows serv 2012 cluster on sql 2012 cluster with 2 instance. on works fine , Second instanc ewhen i try to creat DB a get this message. 
    Cannot use file  for clustered server. Only formatted files on which the cluster resource of the server has a dependency can be used. Either the disk resource containing the file is not present in the cluster group or the cluster resource of the Sql
    Server does not have a dependency on it.
    CREATE DATABASE failed. Some file names listed could not be created. Check related errors. (Microsoft SQL Server, Error: 5184)
    Any help please
    kam
    KAMEL

    Hi Saurabh
    Exactly I have SQL SERVER 2012
    Failover Clustering   in windows server 2012 with two nodes with
    two instances and exactly I run them in the same server and each instance with
    three drives Backup, Data and log.   
    KAMEL

  • I don't own a MAC. I can probably use one at the library. I am trying to publish my book with Apple's ibooks, etc. Since my files are in Word.doc or html; how can I format my book so as to publish it?

    I don't own a MAC. I can probably use one at the library. I am trying to publish my book with Apple's ibooks, etc. Since my files are in Word.doc or html; how can I format my book so as to publish it?
    www.amessageforthehumanrace.org

    Use an aggregator and follow their instructions for formatting.

  • Can I use Migration Assistant to Copy files from one mac to another, but not delete the original files off of the original Mac?

    I just purchased a new Macbook Pro Retina, and I have an old Macbook Pro w/o Retina and wish to use migration assistant. I still want to use the older Macbook Pro and keep all the files on it, but copy them and also put them on my new Macbook. What I'm trying to say is, can I use migration assistant to move files to a new Mac, while keeping the files on the old computer?

    You can omit some broad categories, but you can't pick and choose individual items.
    See Using Setup Assistant on Mountain Lion or Lion (preferred method), or the similar Using Migration Assistant on Mountain Lion or Lion for the gory details.

  • After upgrading to Mountain Lion, I cannot open my File Maker Pro files. Can I use Numbers to open these files?

    After upgrading to Mountain Lion, I cannot open my File Maker Pro files. Can I use Numbers to open these files?

    Numbers is a spreadsheet program and FileMaker is a database program, so you probably can't use Numbers to open them unless you had first exported them from FileMaker in a spreadsheet-compatible format.
    If you upgraded from 10.6 Snow Leopard or earlier and your old copy of FileMaker won't open anymore, it might be a PowerPC application that is not compatible with 10.7 and later. If that is the case, to work with your FileMaker files you should upgrade your copy of FileMaker to the latest version, which seems to be FileMaker 12.

  • I have an itunes account in Euro. I received iTunes and AppStore Gift Cards in $US. How can I use these on the same iWhatever?

    I have an itunes account in Euro. I received iTunes and AppStore Gift Cards in $US. How can I use these on the same iWhatever and keep together music/apps bought in the 2 currencies?
    Thx

    Barbara Hunt wrote:
    Would it be possible for me to download iTunes in Parallels and get the files into that and then onto my iPod?
    Yes, you can download iTunes for Windows using Parallels. If planning on making purchases here and/or authorizing already purchased tracks (from your Mac iTunes library), you are permitted to authorize five (5) computers as per iTunes Store terms of use, regardless of computing platform. No need to create a separate new iTunes Store account.
    However, judging from what you would like to do, your best bet would be to convert the WMAs to AAC/MP3 in iTunes-Windows (iTunes-Mac cannot import WMA files), and drag the files from the Parallels window to your desktop to add to the iTunes-Mac library. (as the iPod itself is currently linked to your iTunes-Mac library)
    Hope this helps,
    Steve

  • When Syncing, got error msg "iphone4 can not be synced as the required file can not be found", When Syncing, got error msg "iphone4 can not be synced as the required file can not be found"

    i've upgraded to IOS5 and also my iMac to latest iTunes.
    i now found Itunes frequently issued a error during syncing "iphone4 can not be synced as the required file can not be found".   i have connected the iphone4 to my iMac using USB (i.e., wired).   but without doing any thing further, i go to iTunes and just hit the button to "SYNC" the iphone4 again, it will work.
    so, why am i getting that error usually first time around when i connect the iphone?

    Hi folks. Am REALLY struggling here and hoping for some help. I too am constantly getting the 'iPhone can not be synced' message since upgrading to a new MacBook and trying to sync my iPhone 3GS. Have tried updating to latest iPhone software and hasn't helped. Have tried all the stuff mentioned above (dumping that file etc) and no luck. When I go to my sync page for photos, even if i un-tick the sync photos option altogether, this error keeps appearing. Very odd and very frustrating. Can't sync - seems to stall at last step of the process every time.
    I'm guessing it is photo related as the pics on my iPhone are now all lowres and blurry, and it is asking for sync to iTunes to get high res images onto the phone.
    Also have problem going the 'other way'! WHen I go to iPhoto on Mac and try to download new photos taken on iPhone.. I keep getting the message 'The following file could not be imported. The file is an unrecognized format."
    help please
    Nick

  • Is there any way to an index that can be used to include the "OR condition "?

    Hello I have some questions.
    The test was conducted in the following procedure .
    create table test
    c1 varchar2(10),
    c2 varchar2(10),
    primary key(c1)
    create index test_idx1 on test(c2);
    Command> explain select * from test where c1 = 'AAAAAAAAAA' or c2 = 'AAAAAAAAAA';
    Query Optimizer Plan:
      STEP:                1
      LEVEL:               1
      OPERATION:           RowLkRangeScan
      TBLNAME:             TEST
      IXNAME:              TEST
      INDEXED CONDITION:   <NULL>
      NOT INDEXED:         TEST.C2 = 'AAAAAAAAAA' OR TEST.C1 = 'AAAAAAAAAA'
    Command>
    Command> explain select * from test where c1 = 'AAAAAAAAAA' and c2 = 'AAAAAAAAAA'
    Query Optimizer Plan:
      STEP:                1
      LEVEL:               1
      OPERATION:           RowLkRangeScan
      TBLNAME:             TEST
      IXNAME:              TEST
      INDEXED CONDITION:   TEST.C1 = 'AAAAAAAAAA'
      NOT INDEXED:         TEST.C2 = 'AAAAAAAAAA'
    Command>
    By including the "OR condition " in this test does not use the index.
    Is there any way to an index that can be used to include the "OR condition "?
    Thanks.
    GooGyum.

    A database cannot in general use indexes in this way for an 'or' involving two different columns. However, for this specific example one can easily rewrite the query using 'UNION' to use the relevant indexes while still giving the same (correct) result:
    Command> explain select * from test t1 where t1.c1 = 'AAAAAAAAAA' union select * from test t2 where t2.c2 = 'AAAAAAAAAA';
    Query Optimizer Plan:
      STEP:                1
      LEVEL:               1
      OPERATION:           RowLkRangeScan
      TBLNAME:             TEST
      IXNAME:              TEST
      INDEXED CONDITION:   T1.C1 = 'AAAAAAAAAA'
      NOT INDEXED:         <NULL>
      STEP:                2
      LEVEL:               2
      OPERATION:           RowLkRangeScan
      TBLNAME:             TEST
      IXNAME:              TEST_IDX2
      INDEXED CONDITION:   T2.C2 = 'AAAAAAAAAA'
      NOT INDEXED:         <NULL>
      STEP:                3
      LEVEL:               1
      OPERATION:           OrderBy
      TBLNAME:             <NULL>
      IXNAME:              <NULL>
      INDEXED CONDITION:   <NULL>
      NOT INDEXED:         <NULL>
      STEP:                4
      LEVEL:               2
      OPERATION:           UnionMergeSort
      TBLNAME:             <NULL>
      IXNAME:              <NULL>
      INDEXED CONDITION:   <NULL>
      NOT INDEXED:         <NULL>
    Maybe you can apply a similar trick? If you know there is no possibility of duplicate rows then you can further optimise this (in terms of performance) by using UNION ALL.
    Chris

Maybe you are looking for

  • To display a TelnetInputStream

    hello i am using ftpclient with the method list it reterns me a telnet in put stream and i want to display the list getted how can i do

  • Ipad locked up on white Apple black screen and empty status bar

    i was loading new software for ipad and my daughter unplugged it from itunes before it was finished loading and now it just stuck on apple and empty status bar Please help

  • Instructions on how to install the SAP Cryptographic Librabry

    Hi all, Earlier today I posted this query under the "Security" Forum but was told it's better posted here... so apologies in advance if you're seeing this thread again. What I would like to know is how to install the SAP Cryptographic software?... I

  • Problems since Quicktime 7.6 updater install

    Have been unable to open and use my Sims2 games since the most recent Quicktime 7.6 installation via the software update last week. According to Aspyr, the distributor of Sims2 for Mac, this problem was reported last week. Any news here as to when we

  • Local adjustement strange behavior. Bug ?

    Hallo,      Whilte retouching picture from a wedding I got some strange behavior. I wanted to hightlight the couple using local adjustement / Brightness. But the result get "noisy". Look at the screenshot. More about the picture:   Very low light, EO