YTD syntax is invalid

Hi,
I am using OBIA 7.9.6.3 and now I am formulating YTD for Active Headcount in OBI analytic as below:
TODATE("Workforce Profile Facts"."Active Headcount", "Time"."Year" )
but I am hitting
Formula syntax is invalid.
[nQSError: 10058] A general error has occurred.
[nQSError: 43113] Message returned from OBIS. [nQSError: 27037] Unresolved
level: "Time"."Year". (HY000)
SQL Issued: SELECT TODATE("Workforce Profile
Facts"."Active Headcount", "Time"."Year" ) FROM "Human Resources - Workforce
Profile"
Any advice?
Thanks in advance.

OK,
Then try with   Date  Time Dimension Hierarchy....
For example:
ToDate("Core"."Fact - HR - Absence Event"."Absence Days" ,  "Core"."Date"."Year" )
Let me know if you still facing this issue....
Regards,
Naga

Similar Messages

  • HPLIP: "Syntax error: invalid syntax" installing HP LaserJet 1018

    I'm trying to install my HP LaserJet 1018 on my new laptop with fresh arch installation. I have installed Cups and hplip, and now run hp-setup to install the proprietary plugin from HP that will load the firmware to the printer. However, I get an error running hp-setup and so the plugin cannot be installed.
    * my printer is plugged in and turned on. In the system log, I can see something is recognized
    * I run "hp-setup -i" as root
    * Specify that the printer is installed on USB, then proceed to download the plugin. This succeeds
    * Then it tries to install the plugin, and that is where it fails, with this message:
    | INSTALLING PLUG-IN |
    Verifying archive integrity... All good.
    Uncompressing HPLIP 3.10.9 Plugin Self Extracting Archive.........................................
      File "./plugin_install.py", line 78
        except ImportError, e:
                          ^
    SyntaxError: invalid syntax
    error: Python gobject/dbus may be not installed
    (I don't really know how to do proper formatting on this forum, but the ^ indicating where the error is is on the comma , after ImportError)
    Does anyone know what is going wrong? It seems to me that there is an error in the plugin_install.py-file which then makes the installer believe that the pygobject and dbus-python are not installed, but they both are. Also, "hp-check -t" shows that all dependencies are there. Can anyone help me?

    Delete the /usr/bin/python file which is just a link to /usr/bin/python3
    Change to /usr/bin folder
    Create a new link, this time pointing to python 2.7
    The commands
    rm -rf /usr/bin/python
    cd /usr/bin
    ln -s /usr/bin/python2.7 python

  • FindServerBehaviors in DynAttribute.htm ... Syntax error Invalid quantifier ??

    I get this error: While executing findServerBehaviors in
    DynAttribute.htm the following JavaScript errors occured:
    SyntaxError { Invalid quantifier
    I get this sort of thing from time to time when I handwrite
    php / mysql code and DW8 can't digest it for some reason. My files
    always work fine on the server, but DW8 (and MX, MX2004) seem to
    get confused by things that don't fit in its idea of how recordsets
    and queries work.
    I have NO EXTENSIONS installed, and have already reinstalled
    this once in the past to no avail.
    It's just annoying, as I can hand code fine and just click
    "OK" about the error, but it happens every time DW changes from
    codeview to design view, or upon opening the doc, or saving it.
    Any ideas?
    BTW, I really wish Adobe / MM would give us a way to disable
    these warnings (i.e., "do not show this message again...) for a
    given file. Maybe it could be in the file notes? Are you listening,
    Adobe? Probably not...

    Try this:
    Troubleshooting JavaScript errors in Dreamweaver
    http://www.adobe.com/go/tn_19105
    David Alcala
    Adobe Product Support

  • Syntax error: Invalid CSS after "" (iphone.sass) [Wikipedia]

    Using the newest build (iOS 4.2.1) I am getting the above error for all wikipedia pages on my phone only. Can anyone confirm this?

    I too am having this problem in my iPhone. The problem seems to be localized to mobile safari as iCab Mobile has no problems displaying the mobile wiki page properly.

  • Syntax error when adding variables in recordset (query)

    MySql,PHP,Dreamweaver,WindowsVista
    Hi I am receiving a syntax error: invalid quantifier ++ $orderNum;s*?> when adding two variables in the recordset (query) dialog box. I get the error when clicking OK.
    Here is what is entered:
    name: fieldname
    type: text
    default: -1
    runtime value: $_GET['Field']
    name: searchvalue
    type:text
    default: -1
    runtime value: $_GET['Search']
    Can anyone help with this?

    That's a completely separate issue. The error message is telling you that you have not defined the testing server correctly in the Site Definition dialog box.
    The Host directory field and URL prefix should both point to the same place, in other words, the root of your website. Host directory is the physical path, while URL prefix is the address you would put in a browser address bar.
    Select Site > Manage Sites. Select the name of the site, and click the Edit button. In the Site Definition dialog box, select the Advanced tab, and then choose Testing server from the Category list on the left.
    Depending on how your remote login works, Host directory should probably be public_html or just /. Use the same value as in the Remote server part of the Site Definition dialog box. The URL prefix should be http://gaylehansen.aisites.com/.

  • OBIEE timestampdiff function syntax error

    Hi all,
    I am getting an error while applying timestampdiff function .help me to sort it out.
    TIMESTAMPDIFF(SQL_TSI_DAY,"- Sanction and Disbursment"."Value Date" , VALUEOF(NQ_SESSION.VAR_CAL_CURR_DATE))
    error details
    Formula syntax is invalid.
    [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 22025] Function TimestampDiff is called with an incompatible type.Please have your System Administrator look at the log for more details on this error. (HY000)
    SQL Issued: SELECT TIMESTAMPDIFF(SQL_TSI_DAY,"- Sanction and Disbursment"."Value Date" , VALUEOF(NQ_SESSION.VAR_CAL_CURR_DATE)) FROM "SIDBI Master"

    Aswin,
    Syntax looks to be fine but before applying it here can you check if both these 2 parameters returns date in same format:
    "- Sanction and Disbursment"."Value Date" = 08/21/2011 (No Timestamp)
    VALUEOF(NQ_SESSION.VAR_CAL_CURR_DATE) = 08/21/2011 (No Timestamp)
    Both shud have same format.
    Also, try this for verification
    TIMESTAMPDIFF(SQL_TSI_DAY,"- Sanction and Disbursment"."Value Date" , CURRENT_DATE)
    Hope this helps

  • Documaker 12.1 XPath Syntax Issue

    We are moving to Documaker Studio 12.1 from Docucreate 11.0. So, I am importing few forms into 12.1 and doing test runs. I ran into a XPath syntax issue. We use XPath manual triggers to trigger forms and sections.
    In 11.0, the following trigger (use as Search Mask (True/False) in Manual Triggers) works perfectly fine. But it doesn't work in 12.1
    *!/Acord/Bills/Form/[FormNumber='U61']FormNumber*
    In 12.1, I have to remove the "/" present before "[" to make it work - as shown below.
    *!/Acord/Bills/Form[FormNumber='U61']FormNumber*
    Is there a way we can make the old syntax work with 12.1 as well? It would save us from changing thousands of Form and Section Triggers?
    Thank you,
    SGov.

    I suspect the short answer is No. The initial xPath syntax appears invalid as you would not define a slash between the node and the attribute that belongs to the node. The fact that it somehow succeeded was an anomaly that must have been corrected.

  • Syntax Error in Filter with USING

    I have an expenditure and I need to select it for a particular group value. To display it in the OBIEE analysis, I am using a Pivot table and Summary Group is the measure label.
    My issue is I have a condition that the Expenditure for a particular summary group <> 0. Below is what I had and then received the error.
    My Filter is:
    Column = "Fact - Snapshot Aggregate"."Fye Dc Expenditure" USING ("Summary Group"."Summary Group" IN ('Agency Fees', 'IDC'))
    Operator = is not equal
    Value = 0
    When doing so i receive the following error:
    Formula syntax is invalid.
    [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 27002] Near : Syntax error [nQSError: 26012] . (HY000)
    SQL Issued: SELECT "Fact - Aggregate"."Expenditure" USING ("Summary Group"."Summary Group" IN ('IDC')) FROM "Grants Snapshot"
    I don't see what is wrong with the syntax. Any help is appreciated

    Srini,
    Thank you for replying.
    I have tried that as well. I have FILTER("Fact - Aggregate"."Expenditure" USING ("Summary Group"."Summary Group" IN ('IDC'))). The same error occurs:
    Formula syntax is invalid.
    [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 26002] Near <'>: End of input has been reached. Illegal syntax. (HY000)
    SQL Issued: SELECT FILTER("Fact - Snapshot Aggregate"."Expenditure" USING ("Summary Group"."Summary Group" IN ('IDC'))) FROM "Grants Snapshot"
    I have to do it again with a two word value "A B". I am finding the error is mainly happening on that one. Before I had them ("A B", "IDC") but removed "A B" and it worked. Not with just "A B" it doesn't work.

  • OBIEE 11g Time Series Function

    Hi All,
    I am trying to compare this year to date sales to last year to date sales and this code is not working:
    TODATE(<Measure>,<Time_Level>) For bellow syntax we are getting an error Formula syntax is invalid.
    TODATE("Fact - Sales Order Lines"."Net Ordered Amount", "Time"."Enterprise Year").
    Is the above example wrong?. Please provide one example for Time level value.
    Actually what should be the value for second parameter (Level)
    Thanks in advance.

    Hi,
    What error are u getting? make sure year hierarchy level on u r time dimension and then test it
    example: (via bmm)
    ToDate("Subject area"."Presentation table"."measure Column", "Subject area"."Time dim table name"."year dimensional hierarchy" )
    ToDate("Sample"."Fact_ICA"."Sales_Amt", "Sample"."Period"."Year" )
    <<Measure>> represents the logical measure column from which you want to derive. In this example, you would select the measure "Dollars" from your existing logical fact tables.
    <<Level>> is the time series grain you want to use. In this example, you would select "Quarter" from your time dimension.
    Refer section About the TODATE Function
    http://docs.oracle.com/cd/E23943_01/bi.1111/e10540/dimensions.htm#BABBEGHH
    Thanks
    Deva
    Edited by: Devarasu R on Feb 18, 2013 6:02 PM

  • Error in edit formula of a logical column in report

    Hi All,
    I'm getting the below error when I click ok in 'Edit Formula for a logical column in Criteria of Report.
    Formula syntax is invalid.
    Assertion failure: !sFormula.empty() at line 998 of C:\ADE\aime_bi\bifndn\analytics_web\main/project/webreport/reportquery.cpp
    Could anybody help me out in this?
    Thanks in adv.

    Hi,
    did u included any case condition over there..kinly check the syntax and correct it.
    Thanks
    Deva

  • Concatenate two columns

    Hi,
    In BI 11g, I am trying to concatenate DAY/DATE Columns.
    1."TM_Details"."Day" || "TM_Details"."Date"
    2.concat("TM_Details"."Day")+concat("TM_Details"."Date")
    But it displays some error, like
    Formula syntax is invalid.
    [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 22020] Function Concat does not support non-text types. (HY000)
    SQL Issued: SELECT "TM_Details"."Day" || "TM_Details"."Date" FROM "TMD"
    Thanks
    Kavitha

    Hi kavitha,
    1."TM_Details"."Day" || cast("TM_Details"."Date" as char)This works out perfectly as the syntax is right.But you need to cast it accordingly.
    2.concat("TM_Details"."Day")+concat("TM_Details"."Date")concat(cast("TM_Details"."Day as char),"cast(TM_Details"."Date" as char)) this is the right syntax.
    Before check what is the datatype of day column and Date column as it is erroring out as mismatch.Accordingly convert
    Use cast function to convert it to the format needed and here is the cast syntax cast(column as datatype)
    *UPDATED POST*
    Invalid Alias Format : Table_name.Column_name requiredDont type the table name and column name manually.Please select it from the subject area into the criteria and check if this table name and column name are correct and coming from the same table.
    hope answered.award points.
    Cheers,
    KK
    Edited by: Kranthi.K on May 24, 2011 11:50 PM

  • Visibility formula for checking on two fields for deciding on visibility of row

    I have a row that has groups in it where I need to check for Risks and Issues availability and if both are not there, make the row invisible.  If either of them or both are there, go ahead and display.  I have the following expression for one of
    them and it works for the risk group but for the life of me I cannot figure out how to check for both risk and issue fields; have tried many different possibilities but it keeps telling me the syntax is invalid.  Any ideas would certainly
    be helpful. 
    =Iif(IsNothing(Fields!Risk_Title.Value),True,False)
    Cletus51

    Your statement syntax worked...thanks!  However, due to the way I have two rows structured, for the second row, in order to not display the project name twice, I had to use your statement in the negative (inverse).  Here it is.  Again, statement
    worked. 
    =IIF (Not IsNothing(Fields!Risk_Title.Value)
    and
    Not IsNothing(Fields!Issue_Title.Value) ,True,False)
    Cletus51

  • Grant permission through dynamic parameters entered by user through web app

    This is my code.
    f1=request.getParameter("URL");
    out.println("parameter f1 ===>"+f1);//user name
    f2=request.getParameter("URL1");
    out.println("parameter f2 ===>"+f2);//table name
    f3=request.getParameter("URL2");
    out.println("parameter f3 ===>"+f3);//privilege name
    sql="GRANT f3 to \"" + f1 + "\""+"on \""+f2+"\"";
    st= con.createStatement();
    st.execute(sql);
    out.println("grant succeeded");
    it is giving error that invalid SQL query.please help in writing this code.Any other method for giving dynamic SQL query for granting permission.

    Welcome to the forum!
    >
    Any other method for giving dynamic SQL query for granting permission.
    >
    You should NOT be using dynamic SQL for issuing grants. Security is something that should be taken seriously and grants should ONLY be given to users that need the permission. The necessary grants should be created and reviewed BEFORE they are executed.
    Best practices are to create scripts containing your DDL and place those scripts in a version control system.
    The scripts can then be executed in sql*plus, sql developer or another tool and the results reviewed to ensure that they executed properly.
    If dynamic SQL is needed you:
    1. create a sql statement manually and test it to make sure it works properly
    2. create the code to assemble similar statements and VIEW the output DDL to make sure that it is valid
    3. add exception handling and security handling to the code so that is can only be used for the intended operations and is not subject to SQL injection.
    4. manually execute the DDL produced by the code to make sure there are no syntax errors.
    Clearly you did not even test your SQL before trying to write code to produce it or you would have known your syntax is invalid.
    >
    sql="GRANT f3 to \"" + f1 + "\""+"on \""f2"\"";
    >
    >
    it is giving error that invalid SQL query.
    >
    Of course it is. That code might try to produce the equivalent of:
    GRANT select to "scott" on "hr.employees";There are SEVERAL errors in that code.
    1. You are enclosing the SCHEMA in double-quotes. That means the actual user name will be treated as case-sensitive. So if someone provides 'scott' it will be considered lower-case. There is NO user "scott" in Oracle unless you created that user yourself and used double-qoutes to preserve the case.
    ALL of the schemas created by Oracle, and most users, are UPPER case. So your code will not find any name if the user supplies a LOWER case or mixed-case value.
    2. You are enclosing the target schema and object name in double quotes. There are two things wrong. The same case issue applies again. And the string "hr.employees" will be treated as ONE value. The proper way to quote such a value is:
    "HR"."EMPLOYEES"3. You have the DDL components in the wrong order, hence it is invalid. The ON clause comes BEFORE the target schema.
    GRANT select to on hr.employees to scott;See the SQL Language doc for the GRANT statement
    http://docs.oracle.com/cd/B28359_01/server.111/b28286/statements_9013.htm
    All of the issues you have demonstrate why you should NOT be using dynamic SQL to do DDL. You don't understand the syntax so you can't write code to implement that syntax.
    The syntax is much more complex than the siimple code you are trying to use.
    Grant statements often need to include "SCHEMA.OBJECT" syntax and your code makes no provision for that.
    DDL needs to be tightly controlled and doing it in code can create huge, gaping security holes.
    Abandon your method and use prepared scripts for the DDL commands you need to execute.

  • Case statement error OBIEE

    Hi All,
    I'm getting an error with my Case statement in OBIEE. Below is the statement.
    case when @{PV_RELEASE_NAME} = 'January' then "Script Details"."Calendar Date" is between ('1/1/2012','1/31/2012') else"Script Details"."Calendar Date" end
    Please advice. Thanks for your help in advance!

    Thanks for the response , I tried with the formula u mention still I am getting the same error ..Please find the error below
    case when @{PV_RELEASE_NAME} = 'January' then "Script Details"."Calendar Date" || " is between ('1/1/2012','1/31/2012')" else"Script Details"."Calendar Date" end
    Formula syntax is invalid.
    [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 27005] Unresolved column: " is between ('1/1/2012','1/31/2012')". (HY000)
    SQL Issued: SELECT case when 0 = 'January' then "Script Details"."Calendar Date" || " is between ('1/1/2012','1/31/2012')" else"Script Details"."Calendar Date" end FROM "Test Script - Ad Hoc"
    If I use the below formula I am getting syntax error
    case when @{PV_RELEASE_NAME} = 'January' then "Script Details"."Calendar Date" is between ('1/1/2012','1/31/2012') else"Script Details"."Calendar Date" end
    Formula syntax is invalid.
    [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 27002] Near : Syntax error [nQSError: 26012] . (HY000)
    SQL Issued: SELECT case when 0 = 'January' then "Script Details"."Calendar Date" is between ('1/1/2012','1/31/2012') else"Script Details"."Calendar Date" end FROM "Test Script - Ad Hoc"

  • MDX for OLAP Universe.

    Hello!
    I have a scenario wherein I have to create a custom dimension restricting some values to be displayed. The dimension I am trying to restrict here is Quarter - [ZCALQRT].[LEVEL01], which has values like Q3 2011, Q4 2011, Q1 2012,Q2 2012 on a rolling quarter basis. My requirement is to restrict the last quarter to be displayed.  I have tried the following menthods to achieve this:
    1) Create a new dimension object with the following syntax:
    <EXPRESSION>
    WITH MEMBER [Measures].[Delta] ASu2019
    [Measures].[4J68GNRER52B7BV68B1GHWUA8]-[Measures].[4J68GNC1P7UW62S9WMWRXSWUO]u2019
    SELECT
    {[Measures].[4J68GNC1P7UW62S9WMWRXSWUO],[Measures].[4J68GNRER52B7BV68B1GHWUA8], [Measures].[Delta]} ON COLUMNS,
    NON EMPTY {[ZCALQRT].[LEVEL01].members} ON ROWS
    FROM [$Y_ZAPOH]
    WHERE (EXCEPT([ZCALQRT].[LEVEL01].[[2ZCALQRT]].[Value],[ZCALQRT].[LEVEL01].[[2ZCALQRT]].[Value].CurrentMember.LastSibling))
    </EXPRESSION>
    So, here I tried to restrict the dimension in the where clause using the EXCEPT(,) function. But on using this new custom dimension in Web I the error message I receive is "Some objects are not available in the Universe".
    2) Create a restriction for the object in the where clause:
    <EXPRESSION> (EXCEPT([ZCALQRT].[LEVEL01].[[2ZCALQRT]].[Value],[ZCALQRT].[LEVEL01].[[2ZCALQRT]].[Value].CurrentMember.LastSibling))</EXPRESSION>
    This gives and error message with MDX syntax being invalid.
    Can anyone please suggest a work around for restricting the dimension in the SELECT/ WHERE clause or a PRE-DEFINED FILTER.
    Any inputs are highly appreciated.
    Thanks,
    Vivek.

    Hi Ingo,
    Thank you for the information. I will try doing that in the SAP BEx query end. However, I found some examples with the MDX which can filter the members based on their levels. One specific example of referring to a member is as follows:
    If I need to exclude the last value in a rolling value set, I tried to use the EXCEPT(,) function and referring the member in a predefined filter:
    <EXPRESSION>EXCEPT([0CALQTR].[LEVEL01],[0CALQTR],[LEVEL01].CurrentMember.LastSibling)</EXPRESSION>
    Can you please suggest if anything is wrong with this MDX statement?
    Any inputs are highly appreciated.
    Thanks,
    Vivek.

Maybe you are looking for

  • Web Service Response

    Dear All, We have PI in our environment, but there are still few point-to-point communications. I would like to know where I can see the response coming back from the web service? Is there a log or something that I can see? No PI is being used for th

  • Oracle 9i Practice Environment

    Hello, I want to do Oracle 9i Introduction to sql (volume 1 & 2) practices; How can i prepare the Oracle 9i Practice Environment. (those scripts and inserted values to the tables) where can i found those set of scripts that need to prepare the oracle

  • Invoice date different from GL date

    I have several invoices where the GL Date is different from the Invoice Date. For example, the Invoice Date is 10-JUN-2002 and the GL Date is 01-JUL-2002. In all the invoices from another month, the Invoice Date is equal to GL Date. Anyone knows how

  • Oracle MSCA: Customization in Standard ShipLPN page

    Hi, I am trying to extend the standard ShipLPN page in Oracle MSCA, but when I am trying to run this page, after entering the value of organization id it is redirecting it to menu. Error in log file is: SM_EXCEPTION: Exception occurred with user KD34

  • Installing Photoshop problems

    I am trying to download Photoshop and Lightroom and it tells me I need to download Visual C++ Redistributable for Visual Studio 2012 Update 4, but when I attempt to at Microsoft.com nothing happens.  Any advice?