Checksum not generated from dbms job

APEX version 3.2.0.00.27
DB version 11.2.0.1.0
I've built a database procedure which builds a string that includes a hyperlink, and which then passes that string to a procedure that sends the string as the body of an email.
The procedure calls apex_util.prepare_url to generate a checksum for the link.
I've added to the application a button which calls the procedure.
When I press the button, I get an email which contains the link with checksum.
I've also created a dbms_job that runs nightly. It calls the same email-generating procedure.
However, the email that the dbms_job generates does NOT include the checksum.
How can I ensure that the link includes a checksum when the dbms_job calls the procedure?
Thanks,
-Ken

Hello Ken,
>> Does anyone out there know if there is a way that I can obtain a valid APEX session id from within a procedure invoked through dbms_job?
I’m under the impression that you are trying to achieve a security goal using the wrong tool.
The Session State Checksum feature was design to prevent URL tampering within a specific APEX Session. That is why the Session ID is part of the computed checksum. Session State (represented by Session ID) is not persistent beyond the current and specific (user client) APEX Session. Even if you were able to obtain a valid APEX Session ID within an (APEX) external process (like stored procedure), for generating the *&cs* URL parameter, it won’t help you much. The user that received your e-mail, with the checksum protected URL, will not have the same APEX Session ID when he/she will try to use the URL (which includes a Session ID no longer valid), and the security check will fail (which is one of the purposes of this mechanism).
In your case, it seems that you need to generate a checksum parameter that is not dependent on the APEX Session, and you’ll need to do so yourself.
Regards,
Arie.
♦ Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
♦ Author of Oracle Application Express 3.2 – The Essentials and More

Similar Messages

  • Which iDOC Type for Credit/Debit notes generated from SD Module ?

    Hi,
    We are implementing an EDI Solution for SD Invoices which would involve sending EDIFACT Messages generated out of mapping the SAP iDOC TYPE INVOIC02 to the EDIFACT fields.
    We also have to send Credit and Debit Notes generated from SAP in the SD Module in the same path. We are currently planning on using INVOIC02 for doing this.
    My Question: Is this the proper approach ? We don't want to use the Credit / Debit advises in FI-GL to post to Credits to Customer Account.
    Is there any other iDOC Type or message type that we should be using for SD Credit/Debit Notes ?

    Hi Mahesh,
    Thank you for your help.
    In my client location data is posted non-sap to sap through SAP XI/PI.
    so i need to tell the xi guy to which IDOC is used for this interface and technical names.
    Can you help me.

  • Mails are not generated in background Jobs and not shown in SOST.

    Dear All,
    I have facing issue regarding to system mails. I want to send mails the various reports automatically from SAP System to different recipients. So I scheduled that reports at background and in their spool list recipient I have added distribution list.
    But that mails are not generated, it is not shown in transaction SOST also. When I send mails manually it goes successfully to only our company domain recipients. But not other domains. How should I resolve this problem?
    Please help me out.
    Thanks in advance.
    Amit

    Hi Srihari,
    I have checked the background jobs they showed it finished. Following logs are shown in job logs. Is problem is due to 3rd log??
    18.03.2012 14:23:34 Job started    00           516          S
    18.03.2012 14:23:34 Step 001 started (program RFITEMAP, variant PDC FARMAR, user ID DEVELOPER1)      00           550          S
    18.03.2012 14:23:37 No items selected (see long text)                                              MSITEM         033          I
    18.03.2012 14:23:42 Spool request (number 0000026302) created without immediate output               SY           355          S
    18.03.2012 14:23:46 Job finished                                                                     00           517          S
    When I saw further details of 3rd log it following message.
    No items selected (see long text)
        Message no. MSITEM033
    Diagnosis
        No line items meeting your selection criteria could
        be for the following reasons:
        1.) No corresponding items have been posted.
        2.) You are not authorized to display this data.
        3.) The items have already been archived.
    Please help me out.
    Thanks
    Amit

  • Return Completion Message from DBMS Job

    I have an application that includes a button that creates a dbms job. Is it possible to display a message in the HTML DB application when the job completes on the back-end?
    Currently, if you add a success message to the button, it will come back right away with "Success" since the application successfully submitted the job. I would like for a message to be returned when the job actually completes (whether it be 1 minute or 1 hour from the time it was submitted.)
    Any ideas?

    Is this a one shot job or a recurring job?
    If it is a recurring job, you would probably have to create another job to poll the user_jobs view every so often to determine whether it has run or not. If it is a one shot deal, you would have to store the job number in either an application item or a database table. If you store it in an application item, the user will have to keep the app "open" (assuming it takes an hour) or else it will be cleared from session state.
    Storing the job number in a database table, along with the userid, and then checking to see whether the job exists in user_jobs would probably be the best way. You could create a "success" message on Page 0 and set it only to display when the job doesn't exist. That would allow the user to close the app and come back to it later. Of course you would have to delete the row in the table when it is displayed otherwise it will always be there.
    Anyway, just thinking out loud...
    chet

  • Spool not generated in BAckground Job

    Hi,
    I am trying to schedule RSNAST00 in a background job. My problem is that when the job gets finished i cannot see a spool for the output, any pointers to this issue will be appreciated.
    Regards,
    Sharadendu

    Go to transaction SM37 and check job log.
    It is possible that something is going wrong in your program. I would suggest you to debugg background job.
    To debugg just select job in SM37 and in command window(Where we type T codes) type JDBG and press enter. This will open debugger. Press F7 for approx 4-5 times. Now your program will be opened in debugg and you check why spool is not generated.
    let me know ig this helps.
    Regards,
    Jigar Thakkar.

  • Checksum not generated

    Hi,
    We are using the apex_util.prepare_URL in one the APEX application pages to generate the page URL with the parameter: p_checksum_type => 'PUBLIC_BOOKMARK'.
    The checksum is not generated. Does anyone out there encountered a similar issue?
    Regards,
    sak

    Please only post ! message in regards to an issue. You have 3 (THREE) threads open for the same issue..
    Thank you,
    Tony Miller
    Webster, TX
    On the road of life...There are 'windshields', and there are 'bugs'
    (splat!)
    "Squeegees Wanted"
    If this question is answered, please mark the thread as closed and assign points where earned..

  • EWA reports not generated from Solman

    Hi All,
    EWA reports are not been generated from Solution manager system.
    Earlier they were working fine. But now it is not. We need to troubleshoot it.
    Kindly suggest some healthy steps so that this could be started again.
    Regards,
    Sujit Takale

    Hi man you dont gave to us a lot of informations, they are tons of reasons ... If RFC connection are generated correctly, make sure your followed the tree setps using the transaction ags_update.
    Just double check that to see and provide to us more informations like error logs or something else
    regards

  • PDFs are not generated from Burst

    Hi all
    I am getting this error when i schedule my report to run:
    Document generation failed
    [INSTANCE_ID=V110APLFFC006.1305547398367] [OUTPUT_ID=1035][ReportProcessor]Error rendering documentoracle.xdo.servlet.scheduler.ProcessingException: [ReportProcessor]Error rendering document
    at oracle.xdo.enterpriseScheduler.bursting.BurstingReportProcessor.renderReport(BurstingReportProcessor.java:455)
    at oracle.xdo.enterpriseScheduler.bursting.BurstingReportProcessor.onMessage(BurstingReportProcessor.java:127)
    at oracle.xdo.enterpriseScheduler.util.Checkpoi
    This is my bursting delivery query below (which took me a loooong time to figure out!). I am bursting to the file system on the OBIEE server. Funnily enough when i change the output format to RTF, then the bursting works perfectly, but if i change it to PDF, i get this error. I have looked and looked for a reason as to why this happens but i have no idea. I can see in the job history that the data is split correctly and i can see that it generates the documents (they are shown when i click on Republish). Please if anyone has any idea, please reply - i desperately want to get this working, and i have no idea why it doesnt work.
    I have checked the logs and it seems that everything generates correctly, and when i open the .out files produced in AdobeReader everything opens successfully and the document has the correct information. It is also not related to permissions on the folder specified in the bursting query -> if i use the runReport webservice for the same report and specify C:\Temp as the output path ( and pdf as the attributeFormat), the file is written out correctly. It seems that the problem is with writing out more than one pdf file, but why???????? Not sure if it has anything to do with the scheduler at all ( i run the report by using the RunNow option in the scheduler)?
    Thanks very much for any and all help!
    SELECT nvl("NAME",0) KEY,
    'OIC' TEMPLATE,
    'en-us' LOCALE,
    'PDF' OUTPUT_FORMAT,
    'FILE' DEL_CHANNEL,
    'C:\Temp\' PARAMETER1,
    "NAME" PARAMETER2
    from
    (select "EXT"."NAME" as "NAME",
    "RES"."AT12" as "AT12"
    from "JM"."EXT" "EXT",
    "CN"."RES" "RES"
    where "RES"."AT12" = "EXT"."ID" )

    HI,
    Kidnly check whether Cost Center is maintained in the Work Center which is attached in the Maint. Plan
    Regards,
    Chandru.

  • Invoice not generated through Batch Job

    Hello
    I am facing a Problem in Batch Job. When the delivery is created through VL01n transaction manually, the Invoice for this delivery is created automatically. However for one of the delivery the Invoice was not created automatically through Batch Job.
    Can some one help me how to go further on this problem? I have checked the Batch Job and found that it is schedule daily, However the Delviery was created after this schedule time. So ideally this delivery should have been considered for automatic generation of Invoice in the next schedule run of the Batch Job. However this has not happened.
    Any views on this
    Regards
    Screams

    Hello,
    Please check the billing date and the billing date which is in the variant. in the variant there could be that the billing date might have been specified from and to, in any case billing date for the document is not past the variant billing date it will pick up.

  • Email Not generated from VF06 - more than one invoice created same BP

    Customer is creating invoice in VF01, they need a email output (medium 5) along with SAP Script attached . I coded the logic in subroutine Entry of the print program. Email is getting generated successfully .
    But it production the customer is creating invoices by VF06, infact VF06 is a batch Job to create Invoices.
    For eg: using VF06 if they run batch job, 2 or more invoices are getting created for the same business partner, only for the first invoice email is getting generated, but it only sends one email related to the first invoice generated. Though the outputs are getting processed for other invoices we are not getting any emails.
    We are sending email by using the FM SO_DOCUMENT_SEND_API1, if i use commit = 'X', and run Vf06, its sending an error notification stating error doing commit.
    Also I checked all the sort options in VF06, Still it wont work.
    Can any body  please help me how to proceed. Your valuable help is appreciated <removed by moderator>.
    Regards
    Ravi
    Edited by: Thomas Zloch on Jul 2, 2011 7:24 PM

    Standard program is modified by customer.

  • Spool not generated for background job

    Hi all!
    I have a Zprogram that does some validation and submits the data to transaction ME59 using SUBMIT statement. The program is running fine in foreground.When it is scheduled for background, the spool is not getting generated. I know that if a program contains SUBMIT statement, the spool will not be generated when run in background. But is there a way to make it work? The client requires the exact output that we get in foreground.

    Hi,
      All spool requests will be stored in TSP01 table
    TSP01 - Spool Requests
    field name for Spool request number is RQIDENT
    Hi,
    Take a look at OSS Note 422136 which states:
    "2. You can only store one spool request even if a step generates several spool requests during processing. The application is responsible for a "spool overview" in this case. If a step generates several spool requests during processing, only one request can be stored. In this case, the application report should issue the number with a message when writing a spool request so that it is then displayed in the job log."
    Also take a look at OSS Note 519059 which further supports the case that you must capture the individual spool numbers as they are being created (i.e. within the job step's program). The note contains the following:
    8] Question: How are the spool requests assigned?
    Answer: The step information is stored in table TBTCP. This has space for exactly one spool request (field LISTIDENT). If a step generates several spool requests during the processing, only one can be stored. In this case the application is responsible for a "spool overview
    <b>Reward points</b>
    Regards

  • COPA Document not generating from MM postings

    Hi,
    Can anybody help me figure out my problem in COPA? I have set up the flow of actual values for direct postings from FI/MM.  When I made a test posting via F-02 for GL account Raw Material Consumption, I could see that a COPA document is being generated and it flows correctly to a customised KE30 I have created.  But when I posted a test transaction via MIGO for the same GL account, the COPA document is not being generated.  Any advice is highly appreciated.
    Regards,
    Thess

    Hi Thess,
    you are missing some thing very important. That is the value flows in Product Costing and COPA.
    When you post material consumption to Production Order, there is not COPA Document generated. because, Production Order is the real cost object and there is no need to post another cost object say Profitablity segment.
    When the postings to COPA will happen?
    1. When sales are made and delivery happend. Through SD conditions, the value of Sales and Cost of sales and other direct sales cost from SD condition types will flow to COPA
    2. When you settle production Order. The variances will get settled to COPA
    3. When you settle Sale Order (when sale Order is the cost object). the values will flow to COPA
    4. Direct posting from FI to COPA. Say Subsequent customer discounts rebates etc
    5. MM automatic postings using OKB9 settings.  automatic postings like inventory differences etc
    6. there are few more cost object from where the settlement can happen to COPA like Project Systems, Service Orders etc
    In you case, just consumption posting to Production order will not have any COPA impact.
    please let me know if you need futher clarifications
    Best Regards
    Surya

  • WSDL file not generated from wscompile using jwsdp-1.2.

    Hi,
    I used following config.xml file to generate the WSDL file.......but it didn't got genereted. Other artifacts got generated. I'm using jwsdp-1.2.
    <?xml version="1.0" encoding="UTF-8"?>
    <configuration
    xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config">
    <service name="PersonWebService"
    typeNamespace="http://rahuls_person_service.org/type"
    targetNamespace="http://rahuls_person_service.org/wsdl"
    packageName="rahul.ws.test">
    <interface name="rahul.ws.test.PersonWS"
    servantName="rahul.ws.test.PersonWSImpl"/>
    </service>
    </configuration>
    And I have following entry in the build.xml file.........
    <target name="generate-server_wsdl" depends="prepare">
    <antcall target="edit-config">
    <param name="config.rpcenc.file" value="${config.rpcenc.file}"/>
    </antcall>
    <wscompile
    keep="true"
    base="${samplesbuild}/${appname}/classes/server"
    xPrintStackTrace="true"
    gen="true"
    verbose="false"
    model="${samplesbuild}/${appname}/${model.rpcenc.file}"
    classpath="${compile.classpath}"
    config="${config.rpcenc.file}">
    <classpath>
    <path refid="compile.classpath"/>
    </classpath>
    </wscompile>
    <antcall target="unedit-config">
    <param name="config.rpcenc.file" value="${config.rpcenc.file}"/>
    </antcall>
    </target>
    Can any body point me what may be the problem.
    thanks in advance.
    Rahul

    The following is from the jwsdp-1.1 tutorial at http://java.sun.com/webservices/docs/1.1/tutorial/doc/
    The tutorial for 1.2 is not available yet.
    Seems you need to modify your config.xml to have a <service> element.
    The wscompile tool reads the configuration file (config.xml), which contains information that describes the web service. The basic structure of config.xml follows:
    <?xml version="1.0" encoding="UTF-8"?>
    <configuration
    xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config">
    <service> or <wsdl> or <modelfile>
    </configuration>
    The <configuration> element may contain exactly one <service>, <wsdl>, or <modelfile> element.
    The <service> Element
    If you specify this element, wscompile reads the RMI interface that describes the service and generates a WSDL file. In the <interface> subelement, the name attribute specifies the service's RMI interface, and the servantName attribute specifies the class that implements the interface. For example:
    <service name="CollectionIF_Service"
    targetNamespace="http://echoservice.org/wsdl"
    typeNamespace="http://echoservice.org/types"
    packageName="stub_tie_generator_test">
    <interface name="stub_tie_generator_test.CollectionIF"
    servantName="stub_tie_generator_test.CollectionImpl"/>
    </service>
    The <wsdl> Element
    If you specify this element, wscompile reads the service's WSDL file and generates the service's RMI interface. The location attribute specifies the URL of the WSDL file, and the packageName attribute specifies the package of the classes generated by wscompile. For example:
    <wsdl
    location="http://tempuri.org/sample.wsdl"
    packageName="org.tempuri.sample" />

  • PReq not generated from Service Order SM03 using Control Key SM02

    Hi,
    The PReq is not getting generated for Control Key SM02 for service order SM03. I am using PReq generation as "Immediately". The issue is I am filling all the required fileds in the External Processing Operation Popup Screen & saving my Service Order. After that when i check the Document flow - there is no Preq number & in Actual Data for External opration, i find the fileds i have filled in the Preq popup screen as blank (such as Material group, Purc. grp, cost element, vendor etc). I have checked the config also, but cant find any clue.
    Thanks.

    did you check the control key settings for sm02?
    is it happening for this control key with other order types nd sm03 order type with sm03 ( external services ) control key?
    is it possible to replicate it? it is also possible tht the order didnt get saved as the user didnt see some warning info in the bottom bar

  • Dbms job vs unix job

    Hi all
    I have a big discussion going on in our team with dbas and developers.....
    we have some tasks such as dropping partitions on a monthly basis and clean up of log tables in the database that have to be scheduled on a monthly basis.
    we have written stored procedures to do such tasks
    Now a simple dbms scheduler would do the scheduling part ... but dba's are proposing that they do not accept such dbms jobs on the db servers and suggestin us to
    create a unix shell script on other application server and connect to the databse through the script. and schedule the script through controlm or autosys tool.
    why cant we leverage dbms jobs to do these tasks.... and going for a complex soltuion
    what is best solution?

    I don't know about RAC, but I would think that Oracle has made DBMS_Scheduler RAC-aware. Worth looking into.
    As for monitoring, of course they can monitor it! ("They" are DBA's, yes?) Grid Control or OEM will show DBMS_JOB/SCHEDULER information as it will your SQL Plus query.
    I don't understand how the tasks you describe in your first post are not "core" DBA functions, so even if they have the policy you say they have, why do your tasks not fit nicely into the things the DBAs say they want to do in the database? Specifically, +"we have some tasks such as dropping partitions on a monthly basis and clean up of log tables in the database that have to be scheduled on a monthly basis."+
    I found an interesting thread on the topic as well. Re: DBMS scheduler v/s Cron
    Given that people are asking how to make things run on the same node in the following thread, it looks like by default it will not be stuck running on the same RAC node every time (but for performance reasons it appears to have a slight bias to do so).
    dbms_scheduler on RAC database
    Edited by: Gaff on Apr 7, 2010 10:39 AM

Maybe you are looking for