Use a delivers agent on a report with "Is Prompted" column, 11g

Hi all,
I have a report with is prompted filter on a column. And the report are working fine.
But now the customer have asked me to set up a deliver agent on the report. And when the agent is running the report it is not working.
The column that is set to "is prompted" has a expression in business layer and in that expression we are using a session variable. If I changes "is prompted" to a static filter or no filter the agent works fine. I'm getting this error when the agent tries to run the report:
[nQSError: 77006] Oracle BI Presentation Server Error: A fatal error occurred while processing the request. The server responded with: Odbc driver returned an error (SQLExecDirectW).
Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P:OI2DL65P
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred.
[nQSError: 43113] Message returned from OBIS.
[nQSError: 23006] The session variable, NQ_SESSION.access_voc, has no value definition. (HY000)
SQL Issued: {call NQSGetQueryColumnInfo('SELECT "Espor voc fields"."Field name" FROM "Esporingdata"')}
SQL Issued: SELECT "Espor voc fields"."Field name" FROM "Esporingdata"
Error Codes: AGEGTYVF
AgentID: /users/weblogic/Linus_test_agent
...Trying main Agent loop again.... Sleeping for 6 seconds.[nQSError: 77006] Oracle BI Presentation Server Error: A fatal error occurred while processing the request. The server responded with: Odbc driver returned an error (SQLExecDirectW).
Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P:OI2DL65P
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred.
[nQSError: 43113] Message returned from OBIS.
[nQSError: 23006] The session variable, NQ_SESSION.access_voc, has no value definition. (HY000)
SQL Issued: {call NQSGetQueryColumnInfo('SELECT "Espor voc fields"."Field name" FROM "Esporingdata"')}
SQL Issued: SELECT "Espor voc fields"."Field name" FROM "Esporingdata"
Error Codes: AGEGTYVF
AgentID: /users/weblogic/Linus_test_agent
...Trying main Agent loop again.... Sleeping for 8 seconds.[nQSError: 77006] Oracle BI Presentation Server Error: A fatal error occurred while processing the request. The server responded with: Odbc driver returned an error (SQLExecDirectW).
Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P:OI2DL65P
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred.
[nQSError: 43113] Message returned from OBIS.
[nQSError: 23006] The session variable, NQ_SESSION.access_voc, has no value definition. (HY000)
SQL Issued: {call NQSGetQueryColumnInfo('SELECT "Espor voc fields"."Field name" FROM "Esporingdata"')}
SQL Issued: SELECT "Espor voc fields"."Field name" FROM "Esporingdata"
Any Help Much Appreciated
Linus

Hi Linus,
Where you able to solve this issue or do you have additional findings to your issue? I'm facing a similar problem: a session variable has no value defined when running from the agent.
Please let me know,
Thanks,
Santiago

Similar Messages

  • Creating an Exception Report with a Prompt

    All,
    Having difficulties with this report, and I wanted to see if I'm trying to make it do too much.
    Report: Opportunities Exception Report
    Prompt: List of exceptions we are tracking (ie...Custom Field #1 not populated, Source not populated, etc).
    I tried to combine criteria to account for each exception (since each exception is based on a seperate field), but doing so prevents me from then adding a Prompt. I have also created individual reports to account for each exception. I'm wondering what the best approach would be to achieve the results I need?
    Is it possible to:
    1. Combine all individual exception reports (all have same columns, with first column hard-coded to identify which exception type that report contains) into one master exception report, with a prompt on the column that lists the exception type?
    2. Create a prompt to a master report that, when selected, applies exception criteria that is appropriate for what is chosen from the Prompt?
    3. Somehow work with a Master that that has all the exceptions built into the combined criteria, but still gives a Prompt to select which criteria you're wanting to see?
    Thanks in advance for any/all help.
    Regards,
    JT

    Mike,
    Thanks for your response. Looking at the suggestions you gave, the first two wouldn't work for this scenario because of what it is we're trying to do. Essentially, we're just trying to find the missing pieces of data that the Sales Team didn't enter in on an Opportunity. So every report is going to be like this:
    1. Show me ALL Opportunities that do not have field 1 populated. (Exception Type 1)
    2. Show me ALL Opportunities that do not have field 2 populated. (Exception Type 2)
    3. Show me ALL Opportunities that do not have field 3 populated. (Exception Type 3)
    The report with combined analysis worked great in putting these exceptions into one report, but you're limited in what you can do with it.
    I've toyed with the pivot table, but if have a drop down list of the exception types, can I then change the filter of the complete Opportunity list to be the just the one you select?
    Thanks again for your response,
    JT

  • Drill through to another report with bins in OBIEE 11g

    Hi Everyone,
    We have a specific scenario that is as follows:
    Bar chart with 3 bars: '0-30', '31-60' and 'other'
    these bars repsent the number of people who are in that age bucket.
    This was accomplished by taking the peron's Age (a dimension with an age column) and using the 'bin' option in obiee 11g answers.
    When the user clicks on one of the bins in the bar chart (e.g. 0-30), it should navigate to another report which contains details (a table) of ONLY the people who are in that age bucket.
    In order do this I created the same 'age bucket' in the drilll through report and set the field as prompted.
    This works in OBIEE 10g but in OBIEE 11g when I click the 'bin' (e.g. 0-30) on the top report, it navigates to the other report via action link and displays ALL of the people, not just the people in the bucket 0-30.
    Can anyone advise?
    P.s. if I remove the bin for the age bucket, and display the actual age, the drill down works fine. I think the issue is specific to the bin feature. I am using OBIEE 11.1.1.6.4

    Just confirmed with Oracle this is bug 13996544 . FYI just incase it helps anyone

  • Is it possible to sort an interactive report with a default column ?

    Hi,
    I have a nice request used with an interactive report.
    select "ID",
    "DATE_CREATION",
    "SERVICE",
    "RESPONSABLE",
    "NATURE_CONTRAT",
    "SOCIETE",
    "DATE_DEBUT",
    "DATE_FIN",
    "DELAI_RENOUVELLEMENT"
    from "#OWNER#"."CONTRATS_MAINTENANCE"
    order by DATE_FIN descUnfortunately, the interactive report does not displays using the order into the SLQ query.
    I tried to de select the "sort" option of each other columns into the Column attributes Section, but without any improvement. If I remove the order statement from the SQL query, nothing changes in the order.
    Do you have an idea on how to display the lines in the order of the sql query ?
    Thank you for your knid answers !
    Chrstian

    Christian,
    This can be a little tricky at first. Try this:
    1. Remove the order by clause from the query.
    2. Log out of the application, not the builder, just the application.
    3. Log back in and try using the options in the interactive report to sort the information.
    Does it work? If so:
    4. Get the order the way you would like it as the default. Note: you get more sort options if you use the Action Menu (grind wheel) and selecting Sort over just clicking the column headers.
    5. Save the report by selecting the Save Report option from the Action Menu. If you see a drop down, save the report as the "default".
    6. Log out of the application again and back in.
    Does it work?
    Regards,
    Dan
    http://danielmcghan.us
    http://sourceforge.net/projects/tapigen
    You can reward this reply by marking it as either Helpful or Correct ;-)

  • SQL Report with 1 updatable column - help urgent

    Hi,
    I have a SQL report. I am using collection to store value of selected record by link column.
    I have a updatable text item (NULL) in the column. I am able to store that value in the collection.
    Any clue?
    Code
    1. Creating a collection in parent page:
    apex_collection.create_or_truncate_collection
    (p_collection_name => 'ORDER');
    2. Query to populate item rows with option to key 'QTY' before pressing 'Add to Order' link.
    select
    itemcode,
    description,
    NULL AS qty,
    'Add to Order' add_to_order
    from itemtab
    3. Made 'QTY' to Text item -- to allow users to key value
    4. Created 'hidden & protected' items P1_ITEMCODE, P1_QTY
    5. Set values of itemcode, qty in add_to_order link
    6. Created a process to add values into collection:
    for x in (select * from itemtab where itemcode = :P1_ITEMCODE)
    loop
    apex_collection.add_member(p_collection_name => 'ORDER',
    p_c001 => x.ITEMCODE,
    p_c002 => x.DESCRIPTION,
    p_c003 => :P1_QTY
    end loop;
    7. Display value of itemcode, description, qty in report region
    select c001, c002, c003
    from apex_collections
    where collection_name = 'ORDER'
    Probem: The value of qty is not being stored in the collection and not appearing in the #7 report. itemcode and description values are fine.
    Thanks,
    Dip

    Dip,
    I'm guessing here as I can't see your application, I think your missing the page process to collect the data from your QTY field.
    I created a quick demo of what i think your trying to achieve on apex.oracle.com
    http://apex.oracle.com/pls/apex/f?p=19923:2
    I added this to the html expression on the report Field add to:
    <input type="button" onclick="doSubmit(#RANDOM_ID#)" value="Add To" />
    Then the page process to collect and set the page item:
    DECLARE
    l_qty number;
    BEGIN
    FOR i in 1..APEX_APPLICATION.G_F03.COUNT LOOP
    l_qty := nvl(APEX_APPLICATION.G_F03(i),0);
    IF l_qty > 0
    THEN
    :P2_QTY := l_qty;
    :P2_RANDOM_ID := :REQUEST;
    EXIT;
    END IF;
    END LOOP;
    END;
    Let me know if this helps
    Mark
    Don't forget to mark reply as helpful or correct as this may help others reading this thread in the future!
    Edited by: cptbutcher on Mar 25, 2010 10:40 PM

  • Dynamic Report with Hundreds of Columns in APPS -- Possible ?

    I am working on a design of building a dynamic report with up close to 1000 columns in Oracle MFG. Depending on the number of item parameters user entered, the report could have 100, 200, 500, up to 1000 columns. User wants the report exported to EXCEL to do analysis.
    Is this huge report possibly built and run in Oracle APPS? What are the major issues and limitations involved and what attentions I should give to design and build? Thanks in advance.

    Since formatting is not important, I would use pl/sql. Pl/sql is better suited for dynamic sql. With utl_file you can write the results of your dynamic query to a csv fiel for import in Excel.

  • Scheduling in Webi Reports with Changing Prompts.

    Hi Experts,
    I have a Webi report which is on top of 2 BEx queries connected through BICS. The Webi report has more than 4 crore records which makes it difficult to load each time when I refresh. I need to schedule this report so that the user can view the report based on the last instance.
    The report has 3 prompts namely Plant, Material and As of Date.
    The user uses only Plant and As Of Date. There are only two plants for example A and B. The user needs to run the report for each plant separately for all the days.
    Suppose today is 03/07/2013.
    The user will run the report with Plant A and As of Date: 03/07/2013 and second time with Plant B and As of Date: 03/07/2013.
    Next today is 04/07/2013.
    The user will run the report with Plant A and As of Date: 4/07/2013 and second time with Plant B and As of Date: 4/07/2013.
    I need your expert opinion in achieving this while scheduling. Hope you understood the scenario and will be helping me out in this.
    Thanks in Advance,
    Abdul

    Hello experts,
    I am very interested in this topic, as I have the exact same requirement as Abdul:
    Daily scheduling of Webi reports, based on BEx queries and connected through BICS. Done on BO4.
    I followed Aashutosh's link above, and i read something very interesting on page 3:
    Current Options Using Standard Functionality
    Until BusinessObjects 4.0 is released, it is not possible to use BEx variables (which will be made available by
    the BICS connector) or the last load date variable. This makes it impossible to automate the scheduling of
    Web Intelligence queries filtered by dynamic dates or time-slices (for example, yesterday, last week) using
    standard functionality. "
    Is this already functioning on BO4/Bex? Do you have an idea of how to implement it?
    Thank you!
    Best regards,
    Francisco

  • How to use "do shell script" when Terminal replies with a prompt?

    Hey all,
    I'm wondering how to properly use "do shell script" when Terminal replies with a question? In this example, I'm building a small tool in AppleScript that will auto-update the Android SDK via command line prompts. The problem is when I tell it to update all ("update sdk --no-ui"), I need to accept licence agreements before it continues, and the amount of licence agreements brought up is different every time.
    So, basically, I'm wondering how to handle a case where "do shell script" encounters a case where Terminal would normally need a user's response to?
    Thanks,
    Behn

    If it is variable number of prompts that is a problem.  Look around hd and figure out how many prompts there will be. Ask around android forum for a bash solution. There are some test case apps that will let you put conditionals on output from running programs.
    # traditional way.  Pipe output to command.
    do script "echo 'ok' | update sdk --no-u"
    Here is the preferred way of getting administrator privileges.
    It is easier to diagnose problems with debug information. I suggest adding log statements to your script to see what is going on.  Here is an example.
        Author: rccharles
        For testing, run in the Script Editor.
          1) Click on the Event Log tab to see the output from the log statement
          2) Click on Run
        For running shell commands see:
        http://developer.apple.com/mac/library/technotes/tn2002/tn2065.html
    on run
        -- Write a message into the event log.
        log "  --- Starting on " & ((current date) as string) & " --- "
        --  debug lines
        set unixDesktopPath to POSIX path of "/System/Library/User Template/"
        log "unixDesktopPath = " & unixDesktopPath
        set quotedUnixDesktopPath to quoted form of unixDesktopPath
        log "quoted form is " & quotedUnixDesktopPath
        try
            set fromUnix to do shell script "sudo ls -l  " & quotedUnixDesktopPath with administrator privileges
            display dialog "ls -l of " & quotedUnixDesktopPath & return & fromUnix
        on error errMsg
            log "ls -l error..." & errMsg
        end try
    end run

  • Execution of xquery with sql prompt(oracle 11g)

    Hi All I am executing the following query with squl prompt:
    SELECT XMLQuery('xquery version "1.0"; (: :)
    declare default element namespace "eNodeB"; (: :)
    for $m in ora:tokenize('oracle~','~')
    return ($m)'
    RETURNING CONTENT) AS RESULT
    FROM DUAL;
    But its giving the following exception
    for $m in ora:tokenize('deepa~','~')
    ERROR at line 3:
    ORA-19109: RETURNING keyword expected
    2) With the below mentioned query
    SELECT XMLQuery('xquery version "1.0"; (: :)
    declare default element namespace "eNodeB"; (: :)
    for $x in $eNodeBRef/eNodeBFile/eNodeB/eNodeBTop[eNodeBTopIndex='1']
    for $m in ora:tokenize('eNodeBTopAttr1~','~')
    let $r:=$x/following-sibling::*[local-name(.)=$m]
    where (exists($x/*[local-name(.)=$m]) or exists($r))
    return (
    if(exists($r) and not(exists($x/*[local-name(.)=$m]))) then
    element{local-name($r)}{data($r)} else(), if(exists($x/*[local-na
    me(.)=$m])) then element{local-name($x/*[local-name(.)=$m])}{data($x/*[local-name(.)=$m])} else()' PASSING p.OBJECT_VALUE AS
    "eNodeBRef"
    RETURNING CONTENT) AS RESULT
    FROM A_ENODEB p
    WHERE
    existsNode(p.OBJECT_VALUE,
    '/eNodeBFile/fileHeader[@fileName="eNodeB_inst_1.xml"]') =1;
    its giving the below error while executing through sql prompt
    *for $x in $eNodeBRef/eNodeBFile/eNodeB/eNodeBTop[eNodeBTopIndex='1']
    ERROR at line 3:
    ORA-19109: RETURNING keyword expected*

    Login to SQL Developer as the SYS user for Getting Started tutorial

  • Use SSAS Tabular KPI in SSRS report with groups

    I have a SSAS tabular model that I have built KPIs in. I have tried several attempts to use the KPI in SSRS with multiple groups, but as you probably know when you aggregate the KPI it does not calculate correctly. How do you use SSAS KPIs with SSRS groups?
    Thanks in advance.

    Hi Micheal,
    According to your description, you want to use the KPI created in SSAS tabular for SSRS multiple groups. Right?
    In Analysis Services, when we create KPI, it works for each detail record. This KPI will not consider any aggregation value. So when you aggregate the KPI in SSRS, it can't return correct result. However, in Reporting Services, you can use Variable
    to define a "KPI" and apply condition with aggregation function(like sum, average) based on this "KPI" in Expression to return the correct result. Also you can use the Indicator in SSRS to achieve this requirement. Please refer to
    links below:
    Report and Group Variables Collections References (Report Builder and SSRS)
    Indicators (Report Builder and SSRS)
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou
    TechNet Community Support

  • Can i use adobe form to produce a report with grouping and subtotal?

    Hi,
    i need to produce a report that allows me to group against a field and do a subtotal for the group, then finally a total for the whole report.
    i m using web dynpro java, i can do grouping in the table component, but i have no idea how to do subtotal for the group.
    is there any built-in function in adobe form that i can produce this kind of report relatively easily?
    thank you.

    Hi,
    go throught this link
    check the tutorials.
    saptechnical -> tutorials -> Adobe forms ->Calculating Page-wise Sub-Totals and Grand Total in Adobe forms
    Regards,
    sandeep

  • Report with a prompt for a variable

    Post Author: tpham
    CA Forum: Desktop Intelligence Reporting
    I am using BO 6.5.1 and would like to figure out how to create a prompt for a user to type in when the report refreshes to be computed in the variable. Is this possible?

    Post Author: amr_foci
    CA Forum: Desktop Intelligence Reporting
    i've started with BO XI R2
    but i have no doubt that its also available in all the BO versions
    sure you can do it
    good luck
    Amr

  • Invalid Year error when refreshing the report with date prompt

    Hi All,
    I am working on BO XI 3.1 with Informix database.
    When refreshing the report without any date prompt the report is running fine,but when applying the date prompt it is giving the error message
    "Invalid year in the date".
    I have tried changing the value in the advance tab of the object property to 'yyyy-mm-dd hh:mm:ss'
    But it also din't work for me.
    Please suggest.
    Thanks and Regards,
    Rishabh

    Hi Experts,
    Thanks for your suggestions.
    Since changing the PRM file was not a fesiable solution for us.
    We have manged to find a work around to solve this issue
    We have created the filters at universe level with following formula for all the date objects which we ere using at report level as a prompt:
    @Select(classname\objectname)=TO_DATE(@Prompt('Enter Date:','D',,mono,free,not_persistent), '%Y/%m/%d')
    Although when we parse this formula it wil give an error message saying 'illigle operation',
    still it will work when we use this at report level.
    Thanks and Regards,
    Rishabh

  • Report with multiple COUNT columns with counts from same table

    I am new to discoverer so I am a bit lost.
    I am working to create a report to show usage data from the eBusiness Knowledge Base. I have the query written in SQL using subqueries that is in the format:
    Solution Number | Soultion Title | Solution Views | Positive Feedback | Negative Feedback
    12345 ___________ Title ________ 345 ____________ 98 _______________ 34
    The 'Views', 'Positive' and 'Negative' entries are stored in the same table so i am doing a count where setid=setid and usedtype=VS, then counting where usedtype=PF and usedtype=NF
    In discoverer I can get the solution number, title and ONE of the totals but I can't seem to figure out how to get a COUNT for three different things from the same table in columns on the same row.
    When I go to edit sheet -> select items once I select the COUNT option for the UsedType column in the table CS_KB_SET_USED_HISTS I can't select it again. I also have found now way to add a column based on an entered query.
    If anyone could help it would be much appreciated.
    Thanks
    Edited by: Toolman21 on Dec 2, 2010 2:17 PM
    added ______ to correct spacing.

    Hi,
    You can separate the column by using a case or decode.
    for example create 2 calculations:
    case
    when usedtype='PF'
    then <you original column> --- the one contain them both
    else 0
    end
    case
    when usedtype='NF'
    then <you original column> --- the one contain them both
    else 0
    end
    after that you can create the count aggregation over those.
    Tamir

  • Trying to use ODAC on 64 bit Windows 7 with 64 bit Oracle 11g?

    I have been trying to connect to Oracle 11g with VS 2010 .NET Framework 4.0 on Windows 7 for about 5 days with no luck.
    Background: VS 2010, .Net Framework 4.0 and Oracle 11g 64 bit are running on the same maching.
    I have found that are two versions of the 64 bit ODAC.
    1) The XCopy bersion and 2) the Oracle Universal Installer version.
    To install the XCopy version, I right click on the cmd window, change to the folder where my xCopy install is and type install.bat all d:\oracle\myoraclehome odac just like the documentation says. The files are created in my Oracle home and there are registry keys under HKLM\Software\Oracle like the documentation says. I don't have a clue how to prove weather it's doing anything usefule though. When I go to VS 2010, I don't have System.Data.Oracleclient of Oracle.DataAccess.client or any other namespace that can talk to Oracle. How would I test the XCopy version and see if it is actually able to do anything?
    I like the Windows Installer version much better and set it up just like the readme.txt said to. I used the Oracle Data Access Components for Oracle Client 11.2.0.2.1. I wound up with two oracle homes, one for my server and one for the ODAC install. I copied tnsnames.ora and sqlnet.ora over to the odac client home's Network\Admin folder. From my server's oracle home, I ran sqlplus and was able to successfully login to the server. I liked the fact that it came with sample code and I saw that the Oracle.DataAcces.client dll was added as a project reference. I ran the samples with my userid and password and got a TNS Adapter error.
    Since the Oracle server is on the same server that everything else is on, I ASS-U-ME that I would want to install the Oracle Data although I didn't see it documented anywhere. I tried creating it in a different directory, but it says it must be installed on top of an existing oracle home. I tried creating it in my oracle home and got err message OUI-10044 - The selected oracle home location already contains an oracle home or APPL_TOP created while running a different OS.
    Can someone tell me how to correctly install either one of these and test it to make sure it is working?
    TIA I know someone on planet Earth must be using the 64-bit odac to connect to Oracle,
    George

    George,
    It sounds like I have the same setup as you and I am no expert on Oracle install issues but VS 2010 is 32bit. You need to install the 32 bit version of ODAC to make VS all happy. I was under the impression ther was no 64 bit version of ODAC? Then again I am no expert on the topic.
    I then installed the 64 bit xcopy version, decided upon the location for tnsname and then defined TNS_ADMIN. All works well. I create most of my exe's as AnyCPU and Windoze/Oracle seems to figure out what to do.
    r,
    dennis

Maybe you are looking for