Error Using DataExport function in Essbase

Hi there,
I'm using Hyperion Essbase version 9.3.1.
And rite now I'm trying to export data in Essbase by the new CalcScript function DataExport directly to SQL server.
I have 11 dimensions in my Essbase application. I did create 10 fields in SQL server for storing members information and 12 other fields for periodic data. Just, the time when I export data, all the rows returned with only 7 fields for members information and 12 data fields for periodic data.
Can anyone help? Please help!
Best regards,
Antony

Antony,
So when you use a calc script like the below:
SET DATAEXPORTOPTIONS
     DataExportLevel ALL ;
     DataExportDynamicCalc OFF ;
     DataExportRelationalFile ON ;
     DataExportOverwriteFile ON ;
DATAEXPORT "File" "," "b:\exports\jan.txt" "#MI";
Your export works just as you want? (I realize you have lots of other logic, but for the sake of argument use the above).
And then when you take the exact same code except that the DATAEXPORT command now looks like:
SET DATAEXPORTOPTIONS
     DataExportLevel ALL ;
     DataExportDynamicCalc OFF ;
     DataExportRelationalFile ON ;
     DataExportOverwriteFile ON ;
DATAEXPORT "DSN" "cur_sale" "newyork" "admin" "password";
You don't get the same results?
I get the same results regardless. Yes, one is written to a table as defined by the DSN and the other a text file but the contents are exactly the same.
Are you seeing different rows/columns? If so, that would either suggest your table is somehow limiting what gets written to the RDBMS (it would be nice to think that Essbase would log this as an error/fail) or there is a bug in the export. I have not come across this issue.
Regards,
Cameron Lackpour

Similar Messages

  • Error using Rank function in Answers

    Hi All,
    Am trying to generate a report in Answers which lists Top Accounts with Revenue.
    I Ranked the Revenue field and it is returning me correct values. ( Rank(account.revenue) )
    But, when I try to filter on this field and restrict the rows which shows only top 10 Accounts, it is returning the following error:
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 17001] Oracle Error code: 1792, message: ORA-01792: maximum number of columns in a table or view is 1000 at OCI call OCIStmtExecute. [nQSError: 17010] SQL statement preparation failed. (HY000)
    Can any one help me on this.
    Thanks in Advance,
    Imtiaz.

    Hi Joe,
    This is the Physical query generated when I use Rank function and the report is fine.
    select distinct D1.c1 as c1,
    D1.c2 as c2,
    D1.c3 as c3,
    D1.c4 as c4,
    D1.c5 as c5,
    D1.c6 as c6,
    D1.c7 as c7,
    D1.c8 as c8,
    D1.c9 as c9,
    D1.c10 as c10,
    D1.c11 as c11,
    D1.c12 as c12,
    D1.c13 as c13,
    D1.c14 as c14,
    D1.c15 as c15
    from
    (select D1.c1 as c1,
    D1.c2 as c2,
    D1.c3 as c3,
    D1.c4 as c4,
    D1.c5 as c5,
    D1.c6 as c6,
    D1.c7 as c7,
    D1.c8 as c8,
    D1.c9 as c9,
    D1.c10 as c10,
    D1.c11 as c11,
    D1.c12 as c12,
    D1.c13 as c13,
    D1.c14 as c14,
    D1.c15 as c15
    from
    (select Case when D1.c1 is not null then Rank() OVER ( ORDER BY D1.c1 DESC NULLS LAST ) end as c1,
    D1.c2 as c2,
    D1.c3 as c3,
    D1.c1 as c4,
    D1.c4 as c5,
    D1.c5 as c6,
    D1.c6 as c7,
    D1.c7 as c8,
    D1.c8 as c9,
    D1.c9 as c10,
    D1.c10 as c11,
    D1.c11 as c12,
    D1.c12 as c13,
    D1.c13 as c14,
    D1.c14 as c15,
    ROW_NUMBER() OVER (PARTITION BY D1.c1, D1.c2, D1.c3, D1.c4, D1.c5, D1.c6, D1.c7, D1.c8, D1.c9, D1.c10, D1.c11, D1.c12, D1.c13, D1.c14 ORDER BY D1.c1 ASC, D1.c2 ASC, D1.c3 ASC, D1.c4 ASC, D1.c5 ASC, D1.c6 ASC, D1.c7 ASC, D1.c8 ASC, D1.c9 ASC, D1.c10 ASC, D1.c11 ASC, D1.c12 ASC, D1.c13 ASC, D1.c14 ASC) as c16
    from
    (select distinct T690.SUM_REVN_AMT as c1,
    T690.NAME as c2,
    T2216.NAME as c3,
    T690.X_PETROFAC_REVN as c4,
    T690.SUM_WIN_PROB as c5,
    T690.X_PERCENT_GET as c6,
    T690.SUM_WIN_PROB * T690.X_PERCENT_GET / nullif( 100, 0) as c7,
    T690.X_EC_PRIORITY as c8,
    T19028.LOGIN as c9,
    T690.X_COUNTRY as c10,
    T690.X_REGION as c11,
    T18311.NAME as c12,
    T18641.NAME as c13,
    T18238.NAME as c14
    from
    SIEBEL.S_BU T18238 left outer join (
    SIEBEL.S_USER T19028 left outer join (
    SIEBEL.S_OPTY T690 left outer join SIEBEL.S_STG T2216 On T690.CURR_STG_ID = T2216.ROW_ID) left outer join SIEBEL.S_ORG_EXT T1189 On T690.PR_DEPT_OU_ID = T1189.ROW_ID) left outer join SIEBEL.S_ORG_EXT T18311 /* Competitor */ On T690.PR_CMPT_OU_ID = T18311.ROW_ID) left outer join SIEBEL.S_ORG_EXT T18641 /* Partner */ On T690.PR_PRTNR_ID = T18641.ROW_ID) left outer join SIEBEL.S_POSTN T19114 On T690.PR_POSTN_ID = T19114.PAR_ROW_ID) left outer join SIEBEL.S_OPTY_BU T18280 On T690.ROW_ID = T18280.OPTY_ID) left outer join SIEBEL.S_OPTY_X T19415 On T690.ROW_ID = T19415.PAR_ROW_ID) On T19028.PAR_ROW_ID = T19114.PR_EMP_ID) On T18238.ROW_ID = T18280.BU_ID
    ) D1
    ) D1
    where ( D1.c16 = 1 )
    ) D1
    order by c1 desc
    But When I apply Filter on this Rank column then it gives me the error. THis is the Physical query for that
    select distinct Case when D1.c1 is not null then Rank() OVER ( ORDER BY D1.c1 DESC NULLS LAST ) end as c1,
    D1.c2 as c2,
    D1.c3 as c3,
    D1.c1 as c4,
    D1.c4 as c5,
    D1.c5 as c6,
    D1.c6 as c7,
    D1.c7 as c8,
    D1.c8 as c9,
    D1.c9 as c10,
    D1.c10 as c11,
    D1.c11 as c12,
    D1.c12 as c13,
    D1.c13 as c14,
    D1.c14 as c15
    from
    (select D1.c1 as c1,
    D1.c2 as c2,
    D1.c3 as c3,
    D1.c4 as c4,
    D1.c5 as c5,
    D1.c6 as c6,
    D1.c7 as c7,
    D1.c8 as c8,
    D1.c9 as c9,
    D1.c10 as c10,
    D1.c11 as c11,
    D1.c12 as c12,
    D1.c13 as c13,
    D1.c14 as c14
    from
    (select T690.SUM_REVN_AMT as c1,
    T690.NAME as c2,
    T2216.NAME as c3,
    T690.X_PETROFAC_REVN as c4,
    T690.SUM_WIN_PROB as c5,
    T690.X_PERCENT_GET as c6,
    T690.SUM_WIN_PROB * T690.X_PERCENT_GET / nullif( 100, 0) as c7,
    T690.X_EC_PRIORITY as c8,
    T19028.LOGIN as c9,
    T690.X_COUNTRY as c10,
    T690.X_REGION as c11,
    T18311.NAME as c12,
    T18641.NAME as c13,
    T18238.NAME as c14,
    Case when T690.SUM_REVN_AMT is not null then Rank() OVER ( ORDER BY T690.SUM_REVN_AMT DESC NULLS LAST ) end as c15
    from
    SIEBEL.S_BU T18238 left outer join (
    SIEBEL.S_USER T19028 left outer join (
    SIEBEL.S_OPTY T690 left outer join SIEBEL.S_STG T2216 On T690.CURR_STG_ID = T2216.ROW_ID) left outer join SIEBEL.S_ORG_EXT T1189 On T690.PR_DEPT_OU_ID = T1189.ROW_ID) left outer join SIEBEL.S_ORG_EXT T18311 /* Competitor */ On T690.PR_CMPT_OU_ID = T18311.ROW_ID) left outer join SIEBEL.S_ORG_EXT T18641 /* Partner */ On T690.PR_PRTNR_ID = T18641.ROW_ID) left outer join SIEBEL.S_POSTN T19114 On T690.PR_POSTN_ID = T19114.PAR_ROW_ID) left outer join SIEBEL.S_OPTY_BU T18280 On T690.ROW_ID = T18280.OPTY_ID) left outer join SIEBEL.S_OPTY_X T19415 On T690.ROW_ID = T19415.PAR_ROW_ID) On T19028.PAR_ROW_ID = T19114.PR_EMP_ID) On T18238.ROW_ID = T18280.BU_ID
    ) D1
    where ( D1.c15 <= 10 )
    ) D1
    order by c2, c3, c4, c5, c6, c7, c8, c9, c10, c11, c12, c13, c14, c15
    Thanks,
    Imtiaz

  • Error using LISTAGG function to aggregate the strings.

    HI
    I am using LISTAGG function to aggregate the strings but throws a error ORA - 19011
    The output of the aggregated function exeeds the varchar limit.
    I dont know how to change it to a LOB.
    Can you please help me.
    This is the code.
    I have used both the functions.
    RTRIM(XMLAGG(XMLELEMENT(e,FDCT.USER_NAME || ' ')).extract('//text()'), ' ')
    or
    LISTAGG(FDCT.USER_NAME, ',') WITHIN GROUP (ORDER BY FDCT.USER_NAME)
    Edited by: 787819 on Jun 22, 2011 1:46 PM

    If a function returns a VARCHAR2, then it will error (or sometimes truncate depending on function) when reaching the limit of the datatype.
    Perhaps an alternative would be to write your own user-defined aggregate function that works with a CLOB.
    http://download.oracle.com/docs/cd/E11882_01/appdev.112/e10765/aggr_functions.htm#ADDCI2120
    A comma-separated string over 32767 in length sounds of dubious value to me anyway...

  • Getting error using  getXMLString() function

    When I use the getXMLString() function I get the following error at compile time.
    Error(57,23): cannot access class org.w3c.dom.Node; file org\w3c\dom\Node.class not found
    I don't understand why I am getting this error or how to resolve the issue. Is there a work around ? Any help is appreciated. Below is the code.
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.PrintWriter;
    import java.io.IOException;
    import java.sql.*;
    import oracle.jdbc.driver.*;
    import oracle.xml.sql.query.OracleXMLQuery;
    public class LoginServlet extends HttpServlet
    private static final String CONTENT_TYPE = "text/html; charset=windows-1252";
    public void init(ServletConfig config) throws ServletException
    super.init(config);
    public void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException
    response.setContentType(CONTENT_TYPE);
    String username = request.getParameter("UserName");
    String password = request.getParameter("Password");
    String domain = request.getParameter("Domain");
    System.out.println("going to try to connect");
    try
    // register the JDBC driver..
    DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
    // Create the connection using the OCI8 driver
    Connection conn =
    DriverManager.getConnection("jdbc:oracle:thin:@" + domain ,username,password);
    out.println("connected to database "+ domain);
    String sqlString = "select * from atu_service";
    //OracleXMLQuery qry = new OracleXMLQuery(conn, sqlString);
    OracleXMLQuery qry = new OracleXMLQuery(conn, "select * from attrib_def ");
    // Get the XML string
    String str = qry.getXMLString(); // error occurs here.
    // Print the XML output
    out.println(str);
    // Always close the query to get rid of any resources..
    qry.close();
    out.close();
    catch(Exception e )
    e.printStackTrace();

    You need to include the Oracle XML Parse v2 class library in JDeveloper.

  • Error using insertPages function - Acrobat X Standard

    Hi there!
    i hope you can help me, since Acrobat support avoids to help me because of OEM :/
    I try to add several pages in a PDF using Javascript.
    I am getting the following message:
    NotAllowedError: Security settings prevent access to this property or method. .
    Doc.insertPages:7:Field Produktionsauftrag dt:Mouse Up
    My code:
    this.insertPages
         nPage: 0,
         cPath: "/H/Produktionsauftrag_Deutsch.pdf",
         nStart: 0,
         nEnd: 13
    I already found a solution - but that solution is pain.
    if i insert the PDF with the button using insertPages to this location it works:
    [img]http://i.imgur.com/0qbE2xw.png[/img]
    BUT!
    I have many many folders and subfolders where dozens of copys can appear.
    Acrobat is not smart enough to include all of the subfolders.
    In my case it is the shared network drive I:
    in the Folder I, there are several subfolders like I: 200, 300, 400, 500 and many coming.
    If the PDF is in Folder I: it works. If it is in folder I:\200 it won't.
    So if someone is creating a new folder e.g. 700 and copy the PDF into it, the insertPages wont work, because the folder is not trusted anymore.
    Is there an option to avoid this?
    I hope you can help me
    Thank you very much in advance!

    Thank you. This is very helpful.
    But i do not understand what to do =/
    What i think:
    Create a insertPages.js in C:\Program Files (x86)\Adobe\Acrobat 9.0\Acrobat\Javascripts
    Content of insertPages.js:
    this.insertPages(
    {nPage: 0,
    cPath: "///eukexsrv/Vorlagen_Prod_Auftr_PDF/Produktionsauftrag Deutsch.pdf",
    nStart: 0,
    nEnd: 13
    Then open the PDF file and Add a button which runs the insertPages.js
    -> HOW?
    I can't see any option to run a script from mouse up
    Also i get an error while opening acrobat:
    TypeError: this.insertPages is not a function
    7:Folder-Level:App:insertPages.js
    Edit:
    i edited my insertPages.js:
    function inpa () {
    this.insertPages(
    {nPage: 0,
    cPath: "///eukexsrv/Vorlagen_Prod_Auftr_PDF/Produktionsauftrag Deutsch.pdf",
    nStart: 0,
    nEnd: 13
    And in the button i made Mouse up -> javascript
    Code:
    inpa();
    Now i get this message:
    NotAllowedError:Security settings prevent access to this property or method.
    Doc.insertPages:8:Field Produktionsauftrag dt:Mouse Up

  • Error using Analytic function in reports

    Hi,
    I am trying to use Oracle analytic function (lag) in a report. But am getting the below error:
    Encountered the symbol "(" when expecting one of the following:
    ,from into bulk
    This is the code in the formula column:
    function extend_lifeFormula return VARCHAR2 is
    l_extend_life VARCHAR2(80);
    l_life_in_months VARCHAR2(80);
    l_asset_id NUMBER;
    begin
    SRW.REFERENCE(:P_BOOK_NAME);
    SRW.REFERENCE(:ASSET_ID);
    SELECT asset_id,
         lag(life_in_months,1,0) over (PARTITION BY asset_id
                   ORDER BY transaction_header_id_in) Extend_Life
    INTO l_asset_id,
    l_life_in_months
    FROM fa_books
    WHERE book_type_code = 'US GAAP'
    AND asset_id = 1;
    return life_in_months;
    end;
    Has anyone experienced this error before? Does client pl/sql engine not support Analytic functions? The above query runs fine in SQL.
    Thanks,
    Ashish

    From our version of 6i Reports Builder Help, I got ...
    Oracle ORACLE PL/SQL V8.0.6.3.0 - Production
    You may check yours.

  • Error using time function AGO()

    Hi everyone
    I am trying to make this report using OBIEE 11.1.5 with Essabas as datasource:
    Account     ActualMonth     MonthPreviousYear     PreviousMonth     Actual Year
    I have the time dimension (like in HFM), divided into two dimensions Years (Total -> Years) and Period (Total -> Quarters -> Months).
    I use the AGO() function in the repository (BML) to get PreviousYear and PreviousMonth:
    PreviousYear: AGO("Essbase_1"."Data"."Measure" , " Essbase_1"."Year"."Gen2,Year" ,1)
    PreviousMonth : AGO("Essbase_1"."Data"."Measure" , " Essbase_1"."Period"."Gen4,Period" , 1)
    If I use the columns PreviousMonth or PreviousYear separately they work fine. However using both in the same query, I get an error:
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 22036] Level in Ago function (Gen2,Year) must be a rollup of (or equivalent to) the measure level (Gen4,Period). (HY000)
    Any idea how to solve this issue?
    Many Thanks in advance
    Mojito

    Look at the following links:
    http://obiee101.blogspot.com/2008/11/obiee-ago-and-todate-series.html
    http://oraclebiee11g.blogspot.com/2011/01/ago-function-in-obiee-11g-answers.html
    hope this helps.

  • Error using @MDShift Function

    I'm trying to create a calc script that will move the prior month's ending balance into the current month's beginning balance. After looking through the technical reference guide, I thought using the @MDshift function would be my best option. My calc script is as follows: FIX ("Test Scenario") "1016 LB Beg Balance" = @MDSHIFT("101600", 1, YTD, -1, Scenario,); ENDFIX Receiving the following error message: Error: 1200366 Error parsing formula for [1016 LB Beg Balance] (line 3): invalid arguments number in macro[@MDSHIFTMBR] What does this error message indicate? Where can I find the information needed to resolve this? A sample of my outline structure is as follows:YTD Time (Active Dynamic Time Series Member Y-T-D, Q-T-D) Quarter 1 03 02 01 Quarter 2 06 05 04Fiscal Year 2003 2004 2005Scenerio Actual Average Budget Test Scenario Any suggestions?

    Is this using Planning?I had the same, fixed it with a loop statement. Loop for the number of years you have plus one (for backcalc). First fix on BegBalance, second on the elements of the time dimension. Hope this formats ok ...Loop(4)Fix(Begbalance)"Beginning Balance" = @mdshift("Beginning Balance", 12,"Time Periods",,-1,Years, );"Ending Balance" = @mdshift("Ending Balance", 12,"Time Periods",,-1,Years, );EndfixEndLoopLoop (4)Fix(@levmbrs(Time,0))"Beginning Balance" = @PRIOR("Ending Balance");"Ending Balance" = "Beginning Balance" - "A" - "B";EndfixEndloopHope this helps.

  • Error using BI EE with Essbase

    Hi all,
    I'm using BI EE 10.1.3.3.2 with Essbase 9.3.1.1.
    No problem importing metedata with Administrator; I can also use administrator in online mode.
    When I try to use answer to view data I have the following error:
    ===============================
    Odbc driver returned an error (SQLExecDirectW).
    Error Details
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError:
    10058] A general error has occurred. [nQSError: 12002] Socket communication error at call=recv: (Number=10038) An operation was attempted on something that is not a socket. (HY000) SQL Issued: SELECT FedMog.Cost saw_0 FROM "127.0.0.1"
    ===============================
    If I use a releational database I don't have any problem.
    Do you have any suggestion?
    Thank you in advance
    Edoardo

    Edoardo,
    After you import the outline Metadata into the Physical layer of the BI Administrator are you able to right click on the Essbase souce and view the members?
    Paige

  • Internal error using XML function in procedures

    Hi all,
    I use the XML function in a stored procedures but when i compile these i have this error PLS-00801: internal error (74806).
    The strangeness is that the single instruction launched from sql plus type
    SELECT XMLElement("? xml",xmlattributes('1.0' as "version")) FROM dual; it's right.
    thank.

    Are you sure you don't want to use the XMLROOT functionality to achieve that?
    http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14200/functions225.htm
    SQL> SELECT XMLROOT ( XMLType('<poid>143598</poid>'), VERSION '1.0', STANDALONE YES)
      2     AS "XMLROOT" FROM DUAL;
    XMLROOT
    <?xml version="1.0" standalone="yes"?>
    <poid>143598</poid>
    SQL>

  • Error using utl_mail function in database 10.0.1.2

    I am try to use the utl_mail function in database 10.0.1.2 using this declaration
    but when i trye to execute it returns this errror :
    ERROR LINE 1:
    ORA-29261: error argument
    ORA-06512: a "SYS.UTL_TCP", line 28
    ORA-06512: a "SYS.UTL_TCP", line 257
    ORA-06512: a "SYS.UTL_SMTP", line 116
    ORA-06512: a "SYS.UTL_SMTP", line 139
    ORA-06512: a "SYS.UTL_MAIL", line 228
    ORA-06512: a "SYS.UTL_MAIL", line 350
    ORA-06512: a line 12
    DECLARE
    vSender VARCHAR2(30) := '[email protected]';
    vSubj VARCHAR2(50) := 'text of yhe subjext';
    vMesg VARCHAR2(4000);
    vMType VARCHAR2(30) := 'text/plain; charset=us-ascii';
    BEGIN
    vMesg := 'message text';
    utl_mail.send(vSender, '[email protected]', NULL, NULL, vSubj, vMesg, vMType, NULL);
    END;
    Noone Know how is the problem ???

    ok, i restart the database server and now work, but
    only if i am connect with the "sys" user
    if i connect with an other user and execute the execute UTL_MAIL.SEND i receive the following messge error
    ERROR line 1:
    ORA-06550: line 1, colums 7:
    PLS-00201: 'UTL_MAIL' must be declared
    ORA-06550: riga 1, colonna 7:
    PL/SQL: Statement ignored
    I must create a synonym, grat the function ???
    please give an help !!!
    Thank's Again!!

  • XSLT mapping error using document function

    Hello,
    We migrated from XI 3.0 to PI 7.1. XSL is made use of for mapping. We are encountering this error of 'File not found' when we use the document funcion to look into an xml file. The xml file along with the xsl map is zipped and uploaded. I am not sure of why this is happening in PI 7.1. What is the cause. Looking forward to your early replies with solutions.
    Kind Regards,
    InduShekar

    Check the file contents and see whether the content is same as that of the older version.  You can export the same file from xi and pi and  see both are same and having same contents. Check the file is imported in the right namespace.

  • Error using WEEKDAY function in view filter

    I want to be able to display all events in a calendar for the following week (Saturday to Saturday). I have created a column called week_end that is a calculated column and gives the date of the Saturday after the event:
    =[Start Time]+(7-WEEKDAY([Start Time]))
    I then want to use a filter based on Today as follows:
    Show only items when week_end is greater than
    [Today]+(7-WEEKDAY([Today]))
    and less than  
    [Today]+(7-WEEKDAY([Today]))+7
    However I get the error: Filter value is not in a supported date format
    Any ideas what the problem is? I seem to be able to do things like [Today]+3, but I want the view to be from Saturday to Saturday regardless of what day I look at it.
    Thanks
    Kate

    Hi,
    According to your post, my understanding is that you wanted to display all events in a calendar for the following week (Saturday to Saturday).
    You can't use complex formula in Filters - you have to keep it simple like [Today]-30 for last 30 days.
    The solution is to turn the problem on its head and add calculated columns to work out the start of the week and the end of the week then filter when the current date is between those dates (i.e. Start <= [Today] AND End >= [Today])
    Please follow the steps as below to achieve what you want:
    Create a “WeekStart” calculated column, select “Date and Time” as a data type returned by the formula:
    =[Start Time]-WEEKDAY([Start Time])
    Create a “WeekEnd” calculated column, select “Date and Time” as a data type returned by the formula:
    =WeekStart+7
    Create a “PerWeekStart” calculated column, select “Date and Time” as a data type returned by the formula:
    =WeekStart-7
    Modify view, show items only when the following is true:
           PreWeekStart is less than or equal to [Today]
           And
           WeekStart is greater than [Today]
         5. Open the view, it will
    display all events in a calendar for the following week.
    Generally, the week goes Sunday to Saturday. If you want to display all events in a calendar for the following week (Sunday to Saturday), you need to modify the calculated column:
    WeekStart: =[Start Time]-WEEKDAY([Start Time])+1
    WeekEnd:   =WeekStart+6
    Here are two similar threads for you to take a look at:
    http://blog.pentalogic.net/2012/09/complete-guide-to-filtering-sharepoint-lists-by-the-current-week/
    http://rehmangul.wordpress.com/2010/10/06/filter-views-based-on-a-week/
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Missing expression Error using pivot function

    Hi,
    When i am running the query:
    The query needs to display name and total:
    {select  *}
    {  from  (select name,nvl(sal,0) tot from tablea }
    {                          GROUP BY name,nvl(sal,0) }
    {  pivot(SUM(tot) for name in (select ltrim(sys_connect_by_path(''''||name||'''', ','), ',') str}
    {from ( select row_number() over(order by name) rn}
    {       ,      name}
    {       from  tablea}
    {where connect_by_isleaf=1}
    {start with rn=1}
    {connect by rn=prior rn+1);}
    When running the above query its giving error:
    ORA-00936: missing expression at line select ltrim(sys_connect_by_path
    Any help will be needful for me

    If you use pivot, you have to hardcode all your values in the FOR IN clause.
    SQL> select *
      2   from (select ename,nvl(sal,0) tot from emp
      3   GROUP BY ename,nvl(sal,0)
      4   )
      5   pivot(SUM(tot) for ename in ( 'SCOTT' ,'KING') )
      6  ;
       'SCOTT'     'KING'
          3000       5000You can't substitute the literal list of values (in my example ('SCOTT','KING') with a subquery producing similar result.
    Only with pivot xml you can put there a subquery, in that case, the result however doesn't have to be in form of comma separated values (like you try to achieve with sys_connect_by_path)
    SQL> select *
      2   from (select ename,nvl(sal,0) tot from emp
      3   GROUP BY ename,nvl(sal,0)
      4   )
      5   pivot xml (SUM(tot) for ename in ( select ename from emp where ename like 'S%' ) )
      6  ;
    ENAME_XML
    <PivotSet><item><column name = "ENAME">SCOTT</column><column name = "SUM(TOT)">3000</column></item><
    item><column name = "ENAME">SMITH</column><column name = "SUM(TOT)">800</column></item></PivotSet>Best regards
    Maxim

  • Error using wait() function

    hi friends,
    i am very new to java so please help me out of this.
    while using wait() and nullify() i got error like " unreported exception interrupted exception caught or declared to be thrown""
    please help me...

    How should we help you?
    What are you trying to do?
    Where is the connection to jdeveloper and adf?
    Timo

Maybe you are looking for

  • Table for finding out the User details

    Hi All, We need to create a KPI for number of hours a user has looged into a system. Is there any specific table where all the user related information is captured.If the information is not present in a table where  can we find the above information?

  • Remote Panels not working in embedded viewing mode

    Hello, I'm trying to develop a web version of my project using Labview remote panels. I configured the web server properties as it's described here: http://www.ni.com/white-paper/4791/en/ Currently I'm trying to create the web page on the web publish

  • Receiving Transaction Processor

    Hi, I have inserted the data in RCV_headers_interface and RCV_transaction_interface and run the Receiving Transaction Processor program, no error in log file. The PROCESSING_STATUS_CODE column in the rcv_transactions_interface is updated as ' ERROR'.

  • Signal flow chart for using DIO on 5640R

    Hi, There are a bunch of good templates to get me started with analog I/O but not for digital I/O. My project needs the host to send out a value through digital lines @10MHz. Now I have a few  basic questions regarding the standard procedures to work

  • Unable to view Image in IPM worklist

    Hi, I have configured IPM worklist for an application created in IPM 11g. All the menus and actions in worklist is working fine but it i am not able to see the image in viewer along with actions. Error is 'There are no documents in the viewer'.I have