Advanced tutorial 3.0 : Error 403 when executing own PL/SQL procedure

Hello,
Advanced tutorial 3.0 Chap 9 : Upload and download Files in an application.
As written, I have created the procedure "download_my_file" to download a file content from a custom table....
Granted the execute on download_my_file to public
==> OK.
When trying to downdload the file from the given URL :
http://... apex/myOWNER.download_my_file?p_file=..id..
==> I get a forbidden access 403.
Could someone give me an advice ?

Hello,
I'll wager 1 UK Pound Sterling (or any other currency you care to name) that you forget to perform the grant (as specified in the document and yet so many people seem to miss that step out).
John.
http://jes.blogs.shellprompt.net
http://apex-evangelists.com

Similar Messages

  • An error occurred when executing a REMOTE FUNCTION CALL.

    Dear all,
    We have two syetms called DXD and GRD , we have a remote enabled function module in the DXD system , when i am trying to call this Function module from
    GRD system it is going for the short dump, and giving the follwing error,
    <b>Error analysis
        An error occurred when executing a REMOTE FUNCTION CALL.
        It was logged under the name "RFC_NO_AUTHORITY"
        on the called page.</b>
    But i do have the access for the DXD system also, i am really struggling to solve this problem, if any lights are there to help me , i will be thank full for then,
    some body suggested for me that we need to maintain the Trusted system tables in the target system.
    Thanks & regards
    Satya.

    first u( user id ) have to get the Authorizations to use RFC ?
    object will be  like S_RFC or some thing like this.
    when u get this kind of error just call /NSU53 then u will come to know which Authorization Object is missing from ur User Profile.
    Regards
    Prabhu

  • Error 801 when executing external command on

    Hello,
    I have installed CCMS agents and CCMS ping in my system yesterday. And activated the CPH BGD jobs for SL reporting purpse. Now I am getting an error "Error 801 when executing external command on" under class LC 2. I am not able to find any relevant note or help for this error. Any idea why this happens? How can I solve this? The details as follows:
    EXTERNAL COMMAND: rc = Error 801
    SXPG_COMMAND_EXECUTE(LONG):
    <timestamp>: 20100310144206
    COMMANDNAME: PING
    ADDITIONAL_PARAMETERS: s-sapcae
    LONG_PARAMS:
    OPERATINGSYSTEM: AIX
    TARGETSYSTEM: sapasmc1
    DESTINATION:
    SY-SUBRC:  801
    Regards,
    Rajeev

    Hi,
    I have activated the trace level to 3 and now I get some messages in dev_cp which is as follows:
    Trace file of control program (trace level 3)
    < Function: BtcTrcInit> Function: main  SAPXPG 720
    2010-03-11  08-52-09 : Before BtcXpgDetach
      > Function: BtcXpgDetach  < Function: BtcXpgDetach  Accept RFC connection from R/3 system
    2010-03-11  08-52-09 : Before RfcAccept
    2010-03-11  08-52-09 : RfcAccept returned OK
    Begin of check_if_security_list
    security check switched OFF
    End of check_if_security_list
    Begin of check_trace_option
    End of check_trace_option
      Install RFC call SAPXPG_START_XPG
      Install RFC call SAPXPG_START_XPG_LONG
      Install RFC call SAPXPG_END_XPG
      Wait for RFC call SAPXPG_START_XPG or SAPXPG_START_XPG_LONG
    2010-03-11  08-52-09 : Before first call of RFCDispatch
    Security: rfcexec_logon_check
      rfcexec_logon_check: logon_user = TT4WNUC
      sapxpg_logon_check: rfc_attr.user = TT4WNUC
      rfcexec_logon_check: client = 100
    2010-03-11  08-52-09 : After first call of RFCDispatch
    2010-03-11  08-52-09 : Before call of RfcClose (sequencing error)
    2010-03-11  08-52-09 : After call of RfcClose (sequencing error)
    < Function: main
    2010-03-11  08-52-09 : End of SAPXPG: main
    I think the issue is with the user TT4WNUC. Could you please let me know from where I can change this user?
    Rajeev

  • Sm_SolmanSID error 503 when executing external command

    Hello,
    On one of my managed system (my productive ECC),
    I have the following error ,everyday at 20:00,
    for the user SM_SolamnSID.
    "Error 503 when executing external command on (xpgid=0,convid=.)"
    The role ZSAP_SOLMAN_READ has been given to this user.
    Could you tell me what I should perform to avoid this problem?
    Regards,

    Hi Benoit,
    Pls refer below threads for external error of 503,
    Cannot run SM69 external commands from application server
    Cannot run SM69 external commands from application server,&amp;nbsp;SM21&amp;nbsp;|&amp;nbsp;ABAP,&amp;nbsp;SAP,&amp;nbs…
    Regards
    K.N

  • Error 801 when executing external command

    Dear all,
    One of our PRODcution system (PI) system getting lot of  below error in SM21.
    00:07:17 sappip_PIP_03 BTC  038 400 BASIS                LC  2 Error 801 when executing external command on (xpgid=0,convid=.)
    00:07:17 sappip_PIP_03 BTC  038 400 BASIS                LC  2 Error 801 when executing external command on (xpgid=0,convid=.)
    00:07:17 sappip_PIP_03 BTC  038 400 BASIS                LC  2 Error 801 when executing external command on (xpgid=0,convid=.)
    00:07:17 sappip_PIP_03 BTC  038 400 BASIS                LC  2 Error 801 when executing external command on (xpgid=0,convid=.)
    00:07:17 sappip_PIP_03 BTC  038 400 BASIS                LC  2 Error 801 when executing external command on (xpgid=0,convid=.)
    00:07:17 sappip_PIP_03 BTC  038 400 BASIS                LC  2 Error 801 when executing external command on (xpgid=0,convid=.)
    00:07:17 sappip_PIP_03 BTC  038 400 BASIS                LC  2 Error 801 when executing external command on (xpgid=0,convid=.)
    00:07:17 sappip_PIP_03 BTC  038 400 BASIS                LC  2 Error 801 when executing external command on (xpgid=0,convid=.)
    00:07:17 sappip_PIP_03 BTC  038 400 BASIS                LC  2 Error 801 when executing external command on (xpgid=0,convid=.)
    OS : HP-UX , DB : Oracle and sapnetweaver2004s
    Kindly advise and let me know what should i check SM49 ?
    Thanks
    Edited by: satheesh0812 on Aug 18, 2011 4:37 PM

    Hi,
    Perhaps the steps and solution in this thread could help.:
    Error 801 when executing external command on
    Regards,
    Srikishan

  • LC  2 Error 1003 when executing external command brconnect on (xpgid=0,con

    Dear all,
    I am getting error in sm21.Please suggest .
    Details Page 2 Line 23 System Log: Local Analysis of clusa                    1
    Time     Type Nr  Clt User TCode Grp N Text
    10:00:32 DIA  000 600 DDIC       LC  2 Error 1003 when executing external command brconnect on (xpgid=0,convid=.)
    Error 1003 when executing external command brconnect on (xpgid=0,convid=.)
    Details
    Recording at local and central time........................ 10.05.2010 10:00:32
    Task...... Process                     User...... Terminal Session TCode Program  Cl Problem cl      Package
    06952      Dialog work process No. 000 DDIC                      1       SAPMSSY1 S  Operation Trace SBTC
    No documentation for syslog message LC 2 exists
    Parameter
      1 .... xpgid=0,convid=.
    Technical details
    File Offset RecFm System log Grp N variable message data
      224 260640                  LC  2 brconnect & &Error 1003 & & &
    Regards,
    Kumar

    Dear Juan,
    Please find the logs.Please suggest.
    dev_cp log
    Trace file of control program (trace level 3)
    < Function: BtcTrcInit> Function: main  SAPXPG 720
    2010-05-10--09-33-29 : Before BtcXpgDetach
      > Function: BtcXpgDetach  < Function: BtcXpgDetach  Accept RFC connection from R/3 system
    2010-05-10--09-33-29 : Before RfcAccept
    2010-05-10--09-33-29 : RfcAccept returned OK
    Begin of check_if_security_list
    security check switched OFF
    End of check_if_security_list
    Begin of check_trace_option
    End of check_trace_option
      Install RFC call SAPXPG_START_XPG
      Install RFC call SAPXPG_START_XPG_LONG
      Install RFC call SAPXPG_END_XPG
      Wait for RFC call SAPXPG_START_XPG or SAPXPG_START_XPG_LONG
    2010-05-10--09-33-29 : Before first call of RFCDispatch
    Security: rfcexec_logon_check
      rfcexec_logon_check: logon_user =
      sapxpg_logon_check: rfc_attr.user = BASIS      
      rfcexec_logon_check: client =   
      > Function: BtcXpgStartXpgLong   
    2010-05-10--09-33-29 : Beginning of BtcXpgStartXpgLong
        > Function: BtcXpgStartXpgImportLong      > Function: BtcXpgParam      < Function: BtcXpgParam      > Function: BtcXpgParam      < Function: BtcXpgParam      > Function: BtcXpgParam      < Function: BtcXpgParam      > Function: BtcXpgParam      < Function: BtcXpgParam      > Function: BtcXpgParam      < Function: BtcXpgParam      > Function: BtcXpgParam      < Function: BtcXpgParam      > Function: BtcXpgParam      < Function: BtcXpgParam      > Function: BtcXpgParam      < Function: BtcXpgParam      > Function: BtcXpgTable      < Function: BtcXpgTable    < Function: BtcXpgStartXpgImportLong   
    BtcXpgStartXpgLong: special_trace_flag = <6>
        > Function: BtcXpgStartXpgInt      > Function: BtcXpgItTransfer        Content of source log table:
              Line  Text
              <No StdOut/StdErr output reported>
            Target log table is not identical to source
            ItGetLine terminated with NULL
          < Function: BtcXpgItTransfer      > Function: BtcTrcReset      < Function: BtcTrcReset      Call mode: VIA RFC
          Input arguments of BtcXpgStartXpg:
            External program: brtools
          tracecntl = : 6
          Display of Parameter string switched off !!
            Contents of control flags:
              StdIn control flag: redirect StdIn
              StdOut control flag: store StdOut output in memory
              StdErr control flag: store StdErr output in memory
              Trace control flag: unknown contents
              Termination control flag: control program will wait for termination
          > Function: BtcXpgCheck        > Function: BtcXpgArgv
              parameter number 1:
              parameter number 2:
              parameter number 3:
              parameter number 4:
              parameter number 5:
              parameter number 6:
              parameter number 7:
              Total number of arguments scanned: 7
              Argument argv[0]: brtools
            < Function: BtcXpgArgv      < Function: BtcXpgCheck      > Function: BtcXpgSigInst      < Function: BtcXpgSigInst      > Function: BtcXpgStart        Rearrange stderr to be collected in memory
            Rearrange stdout to be collected in memory
            Redirect stdin, read from NUL:
            > Function: BtcTrcInit< Function: BtcXpgStartStart status of external program: external program successfully started
    Id of external process: 0000005296
    StdOut/StdErr collected in memory
      Line  Text
      <No StdOut/StdErr output reported>
    < Function: BtcXpgStartXpgInt> Function: BtcXpgStartXpgExport  > Function: BtcXpgParam  < Function: BtcXpgParam  > Function: BtcXpgParam  < Function: BtcXpgParam  > Function: BtcXpgParam  < Function: BtcXpgParam< Function: BtcXpgStartXpgExport
    2010-05-10--09-33-29 : End of BtcXpgStartXpgLong
    < Function: BtcXpgStartXpgLong
    2010-05-10--09-33-29 : After first call of RFCDispatch
    Wait for RFC call SAPXPG_END_XPG
    2010-05-10--09-33-29 : Before second call of RFCDispatch
    Security: rfcexec_logon_check
    rfcexec_logon_check: logon_user =
    sapxpg_logon_check: rfc_attr.user = BASIS      
    rfcexec_logon_check: client =
    > Function: BtcXpgEndXpg 
    2010-05-10--09-33-29 : Beginning of BtcXpgEndXpg
      > Function: BtcXpgStartXpgExport    > Function: BtcXpgTable    < Function: BtcXpgTable  < Function: BtcXpgEndXpgImport  > Function: BtcXpgEndXpgInt    > Function: BtcXpgItTransfer      Content of source log table:
            Line  Text
            <No StdOut/StdErr output reported>
          Target log table is not identical to source
          ItGetLine terminated with NULL
        < Function: BtcXpgItTransfer    > Function: BtcXpgReadChild      Output of external command not written to log !!
          Process executing external program has terminated
        < Function: BtcXpgReadChild    > Function: BtcXpgEnd    < Function: BtcXpgEnd    Termination status of external program: no errors reported
        StdOut/StdErr collected in memory
      < Function: BtcXpgEndXpgInt  > Function: BtcXpgEndXpgExport    > Function: BtcXpgParam    < Function: BtcXpgParam    > Function: BtcXpgParam    < Function: BtcXpgParam  < Function: BtcXpgEndXpgExport 
    2010-05-10--09-33-30 : End of BtcXpgEndXpg
    < Function: BtcXpgEndXpg
    2010-05-10--09-33-30 : After second call of RFCDispatch
    2010-05-10--09-33-30 : After call of RfcClose (wait)
    < Function: main
    2010-05-10--09-33-30 : End of SAPXPG: main
    dev_xpg
    Trace file of External Program (trace level 3)
    < Function: BtcTrcInit> Function: BtcXpgStart  External program: brtools -sid prd -F printout alert_log 20100401000000 0128
    Regards,
    Kumar

  • HT204053 It show error 403 when I try to log in

    It show error 403 when I try to log in
    I can't log in on iCloud

    Hi Alkaysi,
    Thanks for using Apple Support Communities.  This article has some steps you can try if you're unable to log in to your iCloud account:
    iCloud: Account troubleshooting
    http://support.apple.com/kb/ts3988
    Cheers,
    - Ari

  • Error message when executing a report through a VB application

    Hello,
    I have a problem when I want to launch a Crystal Report 10 report in a Visual Basic application.
    I created a report using "Add a command" to add a SQL query to this report, the report is working well when I launch it in Crystal Report. But when I launch it in the application I get an error message "The table 'Command' could not be found".
    (Other reports are working in VB when I create a report whitout the sql command tool)
    How can I do to make this working through VB ?
    This application uses a sql server 2005 database.
    Thank's in advance for your help,
    Régis

    Thank's for your answer, yes I'm connecting through an ODBC connection, yes the VB app is running the same odbc entry.
    When I have only a "normal" link to a table the report is working well, the problem is that when I add a sql command in this report, the VB application thinks it's a "normal" sql table and it gives me the error message. The VB application didn't recognize that the table command in the report is a sql request. I don't know what's the difference between executing this report directly in CR or in the VB application, the report didn't react in the same way even if the ODBC entry is the same.
    I don't know if what I try to do is possible, is it possible to execute a CR report with a sql command in a VB application ?
    FI : I found yesterday the way to create the same report without a sql command, its working in the VB app. But it would be great if I could solve this problem because it's much more easier to create a report giving only the sql request and not to do that manually in the report (attaching all the tables, making the group by, sort...).

  • Error 403 when I try to connect to iCloud

    I recently bought a used iphone 4 (iOS 7.0.4) and when I try to connect this iphone to icloud with my apple username and password, I get an error 403 (I haven't got any icloud account before). When I try to create a new icloud account, It tells me that it's impossible and that this iphone is not more allowed to create a icloud free account. How can I do to create a new icloud account?
    thanks

    They told me that my Iphone has reached the maximum number of iCloud accounts creations, 3 as you wrote. But I spoke to a very kind guy from the Apple assistance and after two long calls for trying to find wherefrom my problem was, he contacted Apple engineers and they allowed me to create one more icloud account with my iphone.
    So, for others who got this 403 error, it means that your ID is an Apple ID but not An iCloud ID and that you cannot create a iCloud account ... unless if you phone them maybe.
    Many thanks to Apple assistance.

  • Error 403 When Click on "Sign in"

    Our Company has Server with name Like : Sp2010 and their Server has domain like : xxx.Example.com (not
    www.Example.com)
    now I created Web application on Port 8080 and then extended
    to Port 80 for Internet and Intranet then Created Site Collection.
    Default Url is http://Sp2010:8080 , Url for Internet is xxx.example.com , Url for Intranet is
    http://Sp2010:80
    I enabled "Enable Anonymous" for All Stat. When I browse Url "xxx.example.com" in Address Bar , I can see "Welcome Webpage" inside Intranet and also Internet but with a strange problem, I get Error 403 only on Internet
    when I click "Sign in" Except I can log in inside Intranet. What's going on with anonymous ? Why SharePoint Says :
    <id id="L_defaultr_3">The page cannot be displayed</id>
    Explanation: There is a problem with the page you are trying to reach and it cannot be displayed.
    Try the following:
    Refresh page: Search for the page again by clicking the Refresh button. The timeout may have occurred due to Internet congestion.
    Check spelling: Check that you typed the Web page address correctly. The address may have been mistyped.
    Access from a link: If there is a link to the page you are looking for, try accessing the page from that link.
    Technical Information (for support personnel)
    Error Code: 403 Forbidden. The server denied the specified Uniform Resource Locator (URL). Contact the server administrator. (12202)
     I work in company which The Hardware Firewall won't allow any Computers to access any ports Except Port 80.

    Hi Behrouz,
    Please try if you can access the site on computers outside your Company network. This could help us to narrow down the issue and see if the “The Hardware Firewall
    won't allow any Computers to access any ports Except Port 8” causes the issue.
    The error message you encountered is described in the article below, please see if it suits your situation:
    http://support.microsoft.com/kb/947124
    In addition, you could check ULS log or IIS log and see if there is any related message.
    Regards,
    Rebecca Tu
    TechNet Community Support

  • Error 403 when trying to run a web application

    I am trying to run a web application(J2EE and velocity) that works perfectly fine on Tomcat but doesn't work on weblogic. I was initially getting a nullpointer error but I got rid of it when I removed xercesImpl.jar from my application's library folder and repackaged the war file. However, when I try to run the application now, I get the following error:-
    *Error 403--Forbidden
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.4.4 403 Forbidden
    The server understood the request, but is refusing to fulfill it. Authorization will not help and the request SHOULD NOT be repeated. If the request method was not HEAD and the server wishes to make public why the request has not been fulfilled, it SHOULD describe the reason for the refusal in the entity. This status code is commonly used when the server does not wish to reveal exactly why the request has been refused, or when no other response is applicable.*
    The application has been deployed successfully but I am unable to run it using the link generated in the testing tab. The application. I was wondering if there is any workaround for this error.

    The testing link is using, the host:port/contextroot. Note that the URL is per default not accessible and give justly the 403 forbidden error.
    When you have an index.jsp (or something similar) in the root of your Web application it will automatically load that one, otherwise
    you will get the forbidden message.

  • What is error 403 when trying to set up iCloud on my iPhone under settings-iCloud?

    I already added my Apple ID on my phone but when trying to open my iCloud account it asks me for my Apple ID and when I enter it it says error 403, you need to know the phone it is already activated so I am not on the first setup menu. Please help...

    Device reached the limit of three free icloud accounts that Apple allows to be created on one device. Need to use another Apple device to create new account. Still can use icloud accounts but can't create new one.

  • Error when executing DBMS_ERRLOG through Stored Procedures...

    Hi,
    We have TWO schemas like IDWH_ODS and IDWH_ERR running on Oracle 10g Rel.2.
    The schema IDWH_ERR has direct SELECT privilege on all the base tables in IDWH_ODS schema. (As Pl/sql doesn't support ROLE, we have granted direct SELECT on each of the tables)
    IDWH_ODS schema has tables like ACCOUNT & CUSTOMER, for which I need to create DML Error logging tables in IDWH_ERR schema.
    I have one procedure 'Cr_Errlog_Tabs' in IDWH_ERR schema which gets all tables in IDWH_ODS and creates Error logging table in IDWH_ERR schema using DBMS_ERRLOG package. My problem starts here,
    When I execute the DBMS_ERRLOG package in IDWH_ERR through SQL*Plus LIKE,
    > exec DBMS_ERRLOG.CREATE_ERROR_LOG('idwh_ods.ACCOUNT','ERR$_ACCOUNT','idwh_err');
    it's creating the error log table 'ERR$_ACCOUNT' in IDWH_ERR schema.
    (...the same will be working when execute through Anonymous plsql block)
    BUT, when i execute the DBMS_ERRLOG package with same parameters through the stored Procedure 'Cr_Errlog_Tabs', it throws the following error...
    ORA-01031: insufficient privileges
    Please let me know how the solution at the earliest.

    WHY DO YOU FEEL YOU HAVE TO START A NEW THREAD FOR YOUR PROBLEM!?
    Insufficient priv error when executing DBMS_ERRLOG through PLSQL

  • ORA-04052: Error occurs when execute the block

    I'm trying to run one block and his query definition uses an active public database link. When I ran the script to block I get the following message:
    ERROR in line 1:
    ORA-04052: error occurred when looking up remote object
    SQ_DSV.temp_tipo_contr@SQ_DSV tc
    ORA-00604: error occurred at recursive SQL level 1
    But when I execute his definition query all is ok, the query works fine.
    I mean, I'm using the following sentence to block:
    declare
    Cursor Tipo_Contr is
    Select tc.rec_id, tc.tipo_contr from SQ_DSV.temp_tipo_contr@SQ_DSV tc;
    begin
    For Reg_Tipo_Contr in Tipo_Contr Loop
    Begin
    Update recursos Set tpcontr_id = Reg_Tipo_Contr.tipo_contr
    where rec_id = Reg_Tipo_Contr.rec_id;
    exception when others then
    dbms_output.put_line(Reg_Tipo_Contr.rec_id || ' Not find');
    end;
    end loop;
    -- Commit;
    end;
    I checked for the GLOBAL_NAMES parameter and it is set to FALSE. Please help me, How can I fix this problem ?
    I'm using Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production running over Win XP for run block.
    Thanks you, Paulo.

    ORA-04052 error occurred when looking up remote object stringstringstringstringstring
    Cause: An error has occurred when trying to look up a remote object.
    Action: Fix the error. Make sure the remote database system has run KGLR.SQL to create necessary views used for querying/looking up objects stored in the database.
    Regards
    Marcio Paiva

  • Report Painter: Error RG102 when executing report

    Hi All!
    I need help with an error I'm facing with Report Painter...
    When executing a report with a large amount of variables and columns I'm receiving the error:
    Message no. RG102: Syntax error in GP3NDZHLG3MURI7VJEVF29KI876800, row 0
    If in the General Data Selection instead of using a Variable for the Version I use a fix value, it works OK. However, other reports are working properly with the same Gen. Data Selection.
    Does anyone has an idea of the cause of this report?
    Thanks!

    Hi All,
    I will try to clarify a little bit on my Issue.
    First of all, it's not a BW issue, but a Reporting Problem with the Report Painter for the Consolidation (EC-CS).
    The row is configured with a Set of Data regarding a Consolidation Item that includes all the P&L Accounts. It is configured to 'Expand'.
    Regarding the columns, I have a large number, between 40 and 50 mixing Ratio with Characteristics and Formulas. Within them, I'm using as well variables for Period, Consolidation Unit and so on.
    In the Selection Screen I have configured the following paramters
    Version - 100
    Dimension - T1
    Cons chart/acct - C1
    Ledger - US
    Cons group (Set and Variable) ZSETUNV
    Year for CG breakdwn (Variable) ZEJERAM
    Period for CG breajdw (Variable) ZPERAM
    With all the above-mentioned configurations the report works great. However, if in the Selecion Parameteres I try to replace the Version (Instead of having fix value 100, to have a variable ZVER) in order to deal with several versions in the same report when I save and execute I receive the posted error:
    Message no. RG102: Syntax error in GP3NDZHLG3MURI7VJEVF29KI876800, row 0
    Does anyone has an idea if there is a Maxium of Variables for Report Painter or any idea which may be the origin of this error?
    Thanks again!

Maybe you are looking for